mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v19 Fix label of option
This commit is contained in:
parent
2a7a47d3ad
commit
f3ce7a2a93
|
|
@ -1595,17 +1595,17 @@ if ($action == 'create') {
|
|||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
// Status of generated invoices
|
||||
// Status of auto generated invoices
|
||||
print '<tr><td>';
|
||||
if ($action == 'auto_validate' || $object->frequency > 0) {
|
||||
print $form->editfieldkey($langs->trans("StatusOfGeneratedInvoices"), 'auto_validate', $object->auto_validate, $object, $user->hasRight('facture', 'creer'));
|
||||
print $form->editfieldkey($langs->trans("StatusOfAutoGeneratedInvoices"), 'auto_validate', $object->auto_validate, $object, $user->hasRight('facture', 'creer'));
|
||||
} else {
|
||||
print $langs->trans("StatusOfGeneratedInvoices");
|
||||
print $langs->trans("StatusOfAutoGeneratedInvoices");
|
||||
}
|
||||
print '</td><td>';
|
||||
$select = 'select;0:'.$langs->trans('BillStatusDraft').',1:'.$langs->trans('BillStatusValidated');
|
||||
if ($action == 'auto_validate' || $object->frequency > 0) {
|
||||
print $form->editfieldval($langs->trans("StatusOfGeneratedInvoices"), 'auto_validate', $object->auto_validate, $object, $user->hasRight('facture', 'creer'), $select);
|
||||
print $form->editfieldval($langs->trans("StatusOfAutoGeneratedInvoices"), 'auto_validate', $object->auto_validate, $object, $user->hasRight('facture', 'creer'), $select);
|
||||
}
|
||||
print '</td>';
|
||||
// Auto generate documents
|
||||
|
|
|
|||
|
|
@ -1053,14 +1053,14 @@ if ($action == 'create') {
|
|||
print "</td></tr>";
|
||||
|
||||
// Auto validate the invoice
|
||||
print "<tr><td>" . $langs->trans("StatusOfGeneratedInvoices") . "</td><td>";
|
||||
print "<tr><td>" . $langs->trans("StatusOfAutoGeneratedInvoices") . "</td><td>";
|
||||
$select = array('0' => $langs->trans('BillStatusDraft'), '1' => $langs->trans('BillStatusValidated'));
|
||||
print $form->selectarray('auto_validate', $select, GETPOST('auto_validate'));
|
||||
print "</td></tr>";
|
||||
|
||||
// Auto generate document
|
||||
if (getDolGlobalString('INVOICE_REC_CAN_DISABLE_DOCUMENT_FILE_GENERATION')) {
|
||||
print "<tr><td>" . $langs->trans("StatusOfAutoGeneratedDocuments") . "</td><td>";
|
||||
print "<tr><td>" . $langs->trans("StatusOfGeneratedDocuments") . "</td><td>";
|
||||
$select = array('0' => $langs->trans('DoNotGenerateDoc'), '1' => $langs->trans('AutoGenerateDoc'));
|
||||
print $form->selectarray('generate_pdf', $select, GETPOST('generate_pdf'));
|
||||
print "</td></tr>";
|
||||
|
|
@ -1484,14 +1484,14 @@ if ($action == 'create') {
|
|||
// Status of generated invoices
|
||||
print '<tr><td>';
|
||||
if ($action == 'auto_validate' || $object->frequency > 0) {
|
||||
print $form->editfieldkey($langs->trans("StatusOfGeneratedInvoices"), 'auto_validate', $object->auto_validate, $object, $usercancreate);
|
||||
print $form->editfieldkey($langs->trans("StatusOfAutoGeneratedInvoices"), 'auto_validate', $object->auto_validate, $object, $usercancreate);
|
||||
} else {
|
||||
print $langs->trans("StatusOfGeneratedInvoices");
|
||||
print $langs->trans("StatusOfAutoGeneratedInvoices");
|
||||
}
|
||||
print '</td><td>';
|
||||
$select = 'select;0:' . $langs->trans('BillStatusDraft') . ',1:' . $langs->trans('BillStatusValidated');
|
||||
if ($action == 'auto_validate' || $object->frequency > 0) {
|
||||
print $form->editfieldval($langs->trans("StatusOfGeneratedInvoices"), 'auto_validate', $object->auto_validate, $object, $usercancreate, $select);
|
||||
print $form->editfieldval($langs->trans("StatusOfAutoGeneratedInvoices"), 'auto_validate', $object->auto_validate, $object, $usercancreate, $select);
|
||||
}
|
||||
print '</td>';
|
||||
// Auto generate documents
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user