Fix label on 'Receipt printers' module

This commit is contained in:
andreubisquerra 2020-04-06 19:16:51 +02:00 committed by GitHub
parent 079bfafa26
commit bcfa752578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -615,7 +615,7 @@ class dolReceiptPrinter extends Printer
$spacestoadd = $nbcharactbyline - strlen($line->ref) - strlen($line->qty) - 10 - 1;
$spaces = str_repeat(' ', $spacestoadd);
$this->printer->text($line->ref.$spaces.$line->qty.' '.str_pad(price($line->total_ttc), 10, ' ', STR_PAD_LEFT)."\n");
$this->printer->text(strip_tags(htmlspecialchars_decode($line->desc))."\n");
$this->printer->text(strip_tags(htmlspecialchars_decode($line->product_label))."\n");
}
break;
case 'DOL_PRINT_OBJECT_TAX':