FIX: deposit payment terms: susbstitute percentage in payment term label with bespoke substitution key
This commit is contained in:
parent
92c22dc9cf
commit
fb13b666b8
@ -3921,7 +3921,7 @@ class Form
|
||||
$label = $arrayconditions['label'];
|
||||
|
||||
if (! empty($arrayconditions['deposit_percent'])) {
|
||||
$label = sprintf($label, $deposit_percent > 0 ? $deposit_percent : $arrayconditions['deposit_percent']);
|
||||
$label = str_replace('__DEPOSIT_PERCENT__', $deposit_percent > 0 ? $deposit_percent : $arrayconditions['deposit_percent'], $label);
|
||||
}
|
||||
|
||||
print $label;
|
||||
@ -5169,7 +5169,7 @@ class Form
|
||||
$label = $this->cache_conditions_paiements[$selected]['label'];
|
||||
|
||||
if (! empty($this->cache_conditions_paiements[$selected]['deposit_percent'])) {
|
||||
$label = sprintf($label, $deposit_percent > 0 ? $deposit_percent : $this->cache_conditions_paiements[$selected]['deposit_percent']);
|
||||
$label = str_replace('__DEPOSIT_PERCENT__', $deposit_percent > 0 ? $deposit_percent : $this->cache_conditions_paiements[$selected]['deposit_percent'], $label);
|
||||
}
|
||||
|
||||
print $label;
|
||||
|
||||
@ -735,7 +735,7 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
$lib_condition_paiement = $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) != ('PaymentCondition'.$object->cond_reglement_code) ? $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) : $outputlangs->convToOutputCharset($object->cond_reglement_doc ? $object->cond_reglement_doc : $object->cond_reglement_label);
|
||||
$lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement);
|
||||
if ($object->deposit_percent > 0) {
|
||||
$lib_condition_paiement = sprintf($lib_condition_paiement, $object->deposit_percent);
|
||||
$lib_condition_paiement = str_replace('__DEPOSIT_PERCENT__', $object->deposit_percent, $lib_condition_paiement);
|
||||
}
|
||||
$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
|
||||
|
||||
|
||||
@ -951,7 +951,7 @@ class pdf_eratosthene extends ModelePDFCommandes
|
||||
$lib_condition_paiement = $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) != ('PaymentCondition'.$object->cond_reglement_code) ? $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) : $outputlangs->convToOutputCharset($object->cond_reglement_doc ? $object->cond_reglement_doc : $object->cond_reglement_label);
|
||||
$lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement);
|
||||
if ($object->deposit_percent > 0) {
|
||||
$lib_condition_paiement = sprintf($lib_condition_paiement, $object->deposit_percent);
|
||||
$lib_condition_paiement = str_replace('__DEPOSIT_PERCENT__', $object->deposit_percent, $lib_condition_paiement);
|
||||
}
|
||||
$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
|
||||
|
||||
|
||||
@ -932,7 +932,7 @@ class pdf_azur extends ModelePDFPropales
|
||||
$lib_condition_paiement = $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) != ('PaymentCondition'.$object->cond_reglement_code) ? $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) : $outputlangs->convToOutputCharset($object->cond_reglement_doc ? $object->cond_reglement_doc : $object->cond_reglement_label);
|
||||
$lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement);
|
||||
if ($object->deposit_percent > 0) {
|
||||
$lib_condition_paiement = sprintf($lib_condition_paiement, $object->deposit_percent);
|
||||
$lib_condition_paiement = str_replace('__DEPOSIT_PERCENT__', $object->deposit_percent, $lib_condition_paiement);
|
||||
}
|
||||
$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
|
||||
|
||||
|
||||
@ -1070,7 +1070,7 @@ class pdf_cyan extends ModelePDFPropales
|
||||
$lib_condition_paiement = $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) != ('PaymentCondition'.$object->cond_reglement_code) ? $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) : $outputlangs->convToOutputCharset($object->cond_reglement_doc ? $object->cond_reglement_doc : $object->cond_reglement_label);
|
||||
$lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement);
|
||||
if ($object->deposit_percent > 0) {
|
||||
$lib_condition_paiement = sprintf($lib_condition_paiement, $object->deposit_percent);
|
||||
$lib_condition_paiement = str_replace('__DEPOSIT_PERCENT__', $object->deposit_percent, $lib_condition_paiement);
|
||||
}
|
||||
$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user