Update dolreceiptprinter.class.php
This commit is contained in:
parent
079b014b14
commit
bc8be62809
@ -680,9 +680,7 @@ class dolReceiptPrinter extends Printer
|
|||||||
foreach ($object->lines as $line) {
|
foreach ($object->lines as $line) {
|
||||||
$total_localtax1 += $line->total_localtax1;
|
$total_localtax1 += $line->total_localtax1;
|
||||||
}
|
}
|
||||||
foreach ($vatarray as $vatkey => $vatvalue) {
|
$this->printer->text(str_pad(price($total_localtax1), 10, ' ', STR_PAD_LEFT)."\n");
|
||||||
$this->printer->text(str_pad(price($total_localtax1), 10, ' ', STR_PAD_LEFT)."\n");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'DOL_PRINT_OBJECT_TAX2':
|
case 'DOL_PRINT_OBJECT_TAX2':
|
||||||
//var_dump($object);
|
//var_dump($object);
|
||||||
@ -690,9 +688,7 @@ class dolReceiptPrinter extends Printer
|
|||||||
foreach ($object->lines as $line) {
|
foreach ($object->lines as $line) {
|
||||||
$total_localtax2 += $line->total_localtax2;
|
$total_localtax2 += $line->total_localtax2;
|
||||||
}
|
}
|
||||||
foreach ($vatarray as $vatkey => $vatvalue) {
|
$this->printer->text(str_pad(price($total_localtax2), 10, ' ', STR_PAD_LEFT)."\n");
|
||||||
$this->printer->text(str_pad(price($total_localtax2), 10, ' ', STR_PAD_LEFT)."\n");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'DOL_PRINT_OBJECT_TOTAL':
|
case 'DOL_PRINT_OBJECT_TOTAL':
|
||||||
$title = $langs->trans('TotalHT');
|
$title = $langs->trans('TotalHT');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user