NEW: deposit payment terms: show percentage on proposal/order PDFs
This commit is contained in:
parent
47b9941203
commit
b06857136a
@ -734,6 +734,9 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
$pdf->SetXY($posxval, $posy);
|
||||
$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);
|
||||
}
|
||||
$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
|
||||
|
||||
$posy = $pdf->GetY() + 3;
|
||||
|
||||
@ -950,6 +950,9 @@ class pdf_eratosthene extends ModelePDFCommandes
|
||||
$pdf->SetXY($posxval, $posy);
|
||||
$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);
|
||||
}
|
||||
$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
|
||||
|
||||
$posy = $pdf->GetY() + 3;
|
||||
|
||||
@ -931,6 +931,9 @@ class pdf_azur extends ModelePDFPropales
|
||||
$pdf->SetXY($posxval, $posy);
|
||||
$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);
|
||||
}
|
||||
$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
|
||||
|
||||
$posy = $pdf->GetY() + 3;
|
||||
|
||||
@ -1069,6 +1069,9 @@ class pdf_cyan extends ModelePDFPropales
|
||||
$pdf->SetXY($posxval, $posy);
|
||||
$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);
|
||||
}
|
||||
$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
|
||||
|
||||
$posy = $pdf->GetY() + 3;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user