FIX: deposit payment terms: langs

This commit is contained in:
Marc de Lima Lucio 2021-10-05 13:00:25 +02:00
parent cd1eb3b992
commit 4059b64288
4 changed files with 4 additions and 4 deletions

View File

@ -2018,7 +2018,7 @@ if ($action == 'create') {
'type' => 'checkbox',
'tdclass' => 'showonlyifsigned',
'name' => 'generate_deposit',
'label' => $form->textwithpicto($langs->trans('GenerateDeposit', $object->deposit_percent), $langs->trans('PaymentConditionPermitsDepositGenerationSelected'))
'label' => $form->textwithpicto($langs->trans('GenerateDeposit', $object->deposit_percent), $langs->trans('DepositGenerationPermittedByThePaymentTermsSelected'))
);
$formquestion[] = array(

View File

@ -2028,7 +2028,7 @@ if ($action == 'create' && $usercancreate) {
'type' => 'checkbox',
'tdclass' => '',
'name' => 'generate_deposit',
'label' => $form->textwithpicto($langs->trans('GenerateDeposit', $object->deposit_percent), $langs->trans('PaymentConditionPermitsDepositGenerationSelected'))
'label' => $form->textwithpicto($langs->trans('GenerateDeposit', $object->deposit_percent), $langs->trans('DepositGenerationPermittedByThePaymentTermsSelected'))
);
$formquestion[] = array(

View File

@ -1423,7 +1423,7 @@ class Facture extends CommonInvoice
global $conf, $langs, $hookmanager, $action;
if (! in_array($origin->element, array('propal', 'commande'))) {
$origin->error = 'ErrorCanOnlyAutomaticallyGenerateADepositFromProposalOrOrder'; // TRAD
$origin->error = 'ErrorCanOnlyAutomaticallyGenerateADepositFromProposalOrOrder';
return null;
}

View File

@ -426,7 +426,7 @@ VarAmount=Variable amount (%% tot.)
VarAmountOneLine=Variable amount (%% tot.) - 1 line with label '%s'
VarAmountAllLines=Variable amount (%% tot.) - all lines from origin
DepositPercent=Deposit %%
PaymentConditionPermitsDepositGenerationSelected=You can generate a deposit invoice with the payment conditions you selected
DepositGenerationPermittedByThePaymentTermsSelected=This is permitted by the payment terms selected
GenerateDeposit=Generate a %s%% deposit invoice
ValidateGeneratedDeposit=Validate the generated deposit
DepositGenerated=Deposit generated