diff --git a/include/class_document.php b/include/class_document.php index b064ff6bd..e44d5a124 100644 --- a/include/class_document.php +++ b/include/class_document.php @@ -154,7 +154,7 @@ class Document rename($dirname.DIRECTORY_SEPARATOR.$file_to_parse,$_SERVER['DOCUMENT_ROOT'].$dirname.DIRECTORY_SEPARATOR.$file_to_parse); $this->SaveGenerated($_SERVER['DOCUMENT_ROOT'].$dirname.DIRECTORY_SEPARATOR.$file_to_parse); // Invoice - $ret='Document généré'; + $ret='Document généré'; return $ret; } @@ -441,6 +441,7 @@ class Document * - [CUST_ADDR_1] customer's address line 1 * - [CUST_CP] customer's ZIP code * - [CUST_CO] customer's country + * - [CUST_COUNTRY] * - [CUST_VAT] customer's VAT * - [MARCH_NEXT] end this item and increment the counter $i * - [VEN_ART_NAME] @@ -560,12 +561,6 @@ class Document $r=$tiers->strAttribut(ATTR_DEF_PAYS); break; - case 'CUST_COUNTRY': - $tiers=new fiche($this->db); - $qcode=isset($_REQUEST['qcode_dest'])?$_REQUEST['qcode_dest']:$_REQUEST['e_client']; - $tiers->getByQcode($qcode,false); - $r=$tiers->strAttribut(ATTR_DEF_PAYS); - break; // Marchandise in $_POST['e_march*'] // \see user_form_achat.php or user_form_ven.php case 'CUST_VAT':