Prepare code to be compatible when we will store localtax_type into

lines.
This commit is contained in:
Laurent Destailleur 2013-03-15 17:29:18 +01:00
parent f522b18bdc
commit 7a152c8e0b
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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