Переглянути джерело

[Administration] Documents : nommage automatique par défaut

develop
Guillaume Bourgeois 2 тижднів тому
джерело
коміт
414a5624d4
1 змінених файлів з 3 додано та 1 видалено
  1. +3
    -1
      backend/controllers/DocumentController.php

+ 3
- 1
backend/controllers/DocumentController.php Переглянути файл

@@ -481,7 +481,9 @@ class DocumentController extends BackendController
$json['orders_update_array'] = $document ? $this->initOrdersArray($orderModule->findOrdersByUserAndDeliveryNote($user, $document)) : [];
}

if ($typeAction == 'create' && ($classDocument == 'Invoice' || $classDocument == 'DeliveryNote')) {
if ($producerModule->getSolver()->getConfig('option_document_default_naming')
&& $typeAction == 'create'
&& ($classDocument == 'Invoice' || $classDocument == 'DeliveryNote')) {
$json['name'] = $documentModule->getSolver()->getDefaultName($classDocument, $user);
}


Завантаження…
Відмінити
Зберегти