diff --git a/include/class/acc_ledger_purchase.class.php b/include/class/acc_ledger_purchase.class.php index 2c3951b66..12584484c 100644 --- a/include/class/acc_ledger_purchase.class.php +++ b/include/class/acc_ledger_purchase.class.php @@ -1335,7 +1335,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger $fClient->get_by_qcode($e_client); $e_client_label=$fClient->strAttribut(ATTR_DEF_NAME).' '. ' Adresse : '.$fClient->strAttribut(ATTR_DEF_ADRESS).' '. - $fClient->strAttribut(ATTR_DEF_CP).' '. + $fClient->strAttribut(ATTR_DEF_POSTCODE).' '. $fClient->strAttribut(ATTR_DEF_CITY).' '; @@ -1590,7 +1590,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger $client_name=h($client->getName(). ' '.$client->strAttribut(ATTR_DEF_ADRESS).' '. - $client->strAttribut(ATTR_DEF_CP).' '. + $client->strAttribut(ATTR_DEF_POSTCODE).' '. $client->strAttribut(ATTR_DEF_CITY)); $lPeriode=new Periode($this->db); if ($this->check_periode() == true) diff --git a/include/class/acc_ledger_sale.class.php b/include/class/acc_ledger_sale.class.php index ff21e3444..e013f960f 100644 --- a/include/class/acc_ledger_sale.class.php +++ b/include/class/acc_ledger_sale.class.php @@ -893,7 +893,7 @@ class Acc_Ledger_Sale extends Acc_Ledger { $client_name = $client->getName() . ' ' . $client->strAttribut(ATTR_DEF_ADRESS) . ' ' . - $client->strAttribut(ATTR_DEF_CP) . ' ' . + $client->strAttribut(ATTR_DEF_POSTCODE) . ' ' . $client->strAttribut(ATTR_DEF_CITY); $lPeriode = new Periode($this->db); if ($this->check_periode() == true) { @@ -1480,7 +1480,7 @@ EOF; $fClient->get_by_qcode($e_client); $e_client_label = $fClient->strAttribut(ATTR_DEF_NAME) . ' ' . ' Adresse : ' . $fClient->strAttribut(ATTR_DEF_ADRESS) . ' ' . - $fClient->strAttribut(ATTR_DEF_CP) . ' ' . + $fClient->strAttribut(ATTR_DEF_POSTCODE) . ' ' . $fClient->strAttribut(ATTR_DEF_CITY) . ' '; } diff --git a/include/class/document.class.php b/include/class/document.class.php index 0fa3efd61..7c195ba73 100644 --- a/include/class/document.class.php +++ b/include/class/document.class.php @@ -840,7 +840,7 @@ class Document $qcode=isset($p_array['qcode_dest'])?$p_array['qcode_dest']:$p_array['e_client']; $tiers->get_by_qcode($qcode, false); - $r=$tiers->strAttribut(ATTR_DEF_CP,0); + $r=$tiers->strAttribut(ATTR_DEF_POSTCODE,0); break; case 'CUST_CITY': @@ -857,7 +857,7 @@ class Document $qcode=isset($p_array['qcode_dest'])?$p_array['qcode_dest']:$p_array['e_client']; $tiers->get_by_qcode($qcode, false); - $r=$tiers->strAttribut(ATTR_DEF_PAYS,0); + $r=$tiers->strAttribut(ATTR_DEF_COUNTRY,0); break; // Marchandise in $p_array['e_march*'] @@ -922,7 +922,7 @@ class Document break; } $tiers->get_by_qcode($qcode, false); - $r=$tiers->strAttribut(ATTR_DEF_CP,0); + $r=$tiers->strAttribut(ATTR_DEF_POSTCODE,0); break; case 'BENEF_CITY': @@ -949,7 +949,7 @@ class Document break; } $tiers->get_by_qcode($qcode, false); - $r=$tiers->strAttribut(ATTR_DEF_PAYS,0); + $r=$tiers->strAttribut(ATTR_DEF_COUNTRY,0); break; // Marchandise in $p_array['e_march*'] diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php index 27ce929ad..b57325d90 100644 --- a/include/class/fiche.class.php +++ b/include/class/fiche.class.php @@ -1414,8 +1414,8 @@ class Fiche $r.="