Merge pull request #19663 from frederic34/patch-1
add url in receipt printer options
This commit is contained in:
commit
d3b429bef6
@ -221,6 +221,7 @@ class dolReceiptPrinter extends Printer
|
||||
'dol_value_mysoc_idprof6' => 'ProfId6',
|
||||
'dol_value_mysoc_tva_intra' => 'VATIntra',
|
||||
'dol_value_mysoc_capital' => 'Capital',
|
||||
'dol_value_mysoc_url' => 'Web',
|
||||
'dol_value_vendor_lastname' => 'VendorLastname',
|
||||
'dol_value_vendor_firstname' => 'VendorFirstname',
|
||||
'dol_value_vendor_mail' => 'VendorEmail',
|
||||
@ -607,6 +608,7 @@ class dolReceiptPrinter extends Printer
|
||||
$this->template = str_replace('{dol_value_mysoc_idprof6}', $mysoc->idprof6, $this->template);
|
||||
$this->template = str_replace('{dol_value_mysoc_tva_intra}', $mysoc->tva_intra, $this->template);
|
||||
$this->template = str_replace('{dol_value_mysoc_capital}', $mysoc->capital, $this->template);
|
||||
$this->template = str_replace('{dol_value_mysoc_url}', $mysoc->url, $this->template);
|
||||
|
||||
$this->template = str_replace('{dol_value_vendor_firstname}', $user->firstname, $this->template);
|
||||
$this->template = str_replace('{dol_value_vendor_lastname}', $user->lastname, $this->template);
|
||||
@ -672,9 +674,9 @@ class dolReceiptPrinter extends Printer
|
||||
$vatarray[$line->tva_tx] += $line->total_tva;
|
||||
}
|
||||
foreach ($vatarray as $vatkey => $vatvalue) {
|
||||
$spacestoadd = $nbcharactbyline - strlen($vatkey) - 12;
|
||||
$spaces = str_repeat(' ', $spacestoadd > 0 ? $spacestoadd : 0);
|
||||
$this->printer->text($spaces.$vatkey.'% '.str_pad(price($vatvalue), 10, ' ', STR_PAD_LEFT)."\n");
|
||||
$spacestoadd = $nbcharactbyline - strlen($vatkey) - 12;
|
||||
$spaces = str_repeat(' ', $spacestoadd > 0 ? $spacestoadd : 0);
|
||||
$this->printer->text($spaces.$vatkey.'% '.str_pad(price($vatvalue), 10, ' ', STR_PAD_LEFT)."\n");
|
||||
}
|
||||
break;
|
||||
case 'DOL_PRINT_OBJECT_TAX1':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user