Add country

This commit is contained in:
sparkyx 2007-10-17 19:37:10 +00:00
parent ea94a27c8e
commit 0de9609837

View file

@ -560,6 +560,14 @@ 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':
$tiers=new fiche($this->db);
$qcode=isset($_REQUEST['qcode_dest'])?$_REQUEST['qcode_dest']:$_REQUEST['e_client'];