Fix bug gDossier was missing
This commit is contained in:
parent
0de9609837
commit
fecc75ca1a
1 changed files with 2 additions and 7 deletions
|
|
@ -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='<A class="mtitle" HREF="show_document.php?d_id='.$this->d_id.'">Document généré</A>';
|
||||
$ret='<A class="mtitle" HREF="show_document.php?d_id='.$this->d_id.'&'.dossier::get().'">Document généré</A>';
|
||||
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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue