Fix travis
This commit is contained in:
parent
c3bc662675
commit
c9c2869eec
@ -638,8 +638,7 @@ class dolReceiptPrinter extends Printer
|
|||||||
$this->printer->text($line->ref.$spaces.$line->qty.' '.str_pad(price($line->total_ttc), 10, ' ', STR_PAD_LEFT)."\n");
|
$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->product_label))."\n");
|
$this->printer->text(strip_tags(htmlspecialchars_decode($line->product_label))."\n");
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
$spacestoadd = $nbcharactbyline - strlen($line->description) - strlen($line->qty) - 10 - 1;
|
$spacestoadd = $nbcharactbyline - strlen($line->description) - strlen($line->qty) - 10 - 1;
|
||||||
$spaces = str_repeat(' ', $spacestoadd);
|
$spaces = str_repeat(' ', $spacestoadd);
|
||||||
$this->printer->text($line->description.$spaces.$line->qty.' '.str_pad(price($line->total_ttc), 10, ' ', STR_PAD_LEFT)."\n");
|
$this->printer->text($line->description.$spaces.$line->qty.' '.str_pad(price($line->total_ttc), 10, ' ', STR_PAD_LEFT)."\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user