Prepare code to be compatible when we will store localtax_type into
lines.
This commit is contained in:
parent
f522b18bdc
commit
7a152c8e0b
@ -376,8 +376,8 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
|
||||
// TODO : store local taxes types into object lines and remove this
|
||||
$localtaxtmp_array=getLocalTaxesFromRate($vatrate,0,$mysoc);
|
||||
if (! isset($localtax1_type)) $localtax1_type = $localtaxtmp_array[0];
|
||||
if (! isset($localtax2_type)) $localtax2_type = $localtaxtmp_array[2];
|
||||
if ((! isset($localtax1_type)) || $localtax1_type=='') $localtax1_type = $localtaxtmp_array[0];
|
||||
if ((! isset($localtax2_type)) || $localtax2_type=='') $localtax2_type = $localtaxtmp_array[2];
|
||||
//end TODO
|
||||
|
||||
// retrieve global local tax
|
||||
|
||||
@ -378,8 +378,8 @@ class pdf_crabe extends ModelePDFFactures
|
||||
|
||||
// TODO : store local taxes types into object lines and remove this
|
||||
$localtaxtmp_array=getLocalTaxesFromRate($vatrate,0,$mysoc);
|
||||
if (! isset($localtax1_type)) $localtax1_type = $localtaxtmp_array[0];
|
||||
if (! isset($localtax2_type)) $localtax2_type = $localtaxtmp_array[2];
|
||||
if ((! isset($localtax1_type)) || $localtax1_type=='') $localtax1_type = $localtaxtmp_array[0];
|
||||
if ((! isset($localtax2_type)) || $localtax2_type=='') $localtax2_type = $localtaxtmp_array[2];
|
||||
//end TODO
|
||||
|
||||
// retrieve global local tax
|
||||
|
||||
@ -374,8 +374,8 @@ class pdf_azur extends ModelePDFPropales
|
||||
|
||||
// TODO : store local taxes types into object lines and remove this
|
||||
$localtaxtmp_array=getLocalTaxesFromRate($vatrate,0,$mysoc);
|
||||
if (! isset($localtax1_type)) $localtax1_type = $localtaxtmp_array[0];
|
||||
if (! isset($localtax2_type)) $localtax2_type = $localtaxtmp_array[2];
|
||||
if ((! isset($localtax1_type)) || $localtax1_type=='') $localtax1_type = $localtaxtmp_array[0];
|
||||
if ((! isset($localtax2_type)) || $localtax2_type=='') $localtax2_type = $localtaxtmp_array[2];
|
||||
//end TODO
|
||||
|
||||
// retrieve global local tax
|
||||
|
||||
Loading…
Reference in New Issue
Block a user