Skip to content
Snippets Groups Projects
Commit 30a25251 authored by guerinaxel's avatar guerinaxel
Browse files

Adding var mode_reglement_id to facture

Adding var mode_reglement_id to facture in order to change the payment method.
parent 28de634a
No related branches found
No related tags found
No related merge requests found
...@@ -102,6 +102,7 @@ $server->wsdl->addComplexType( ...@@ -102,6 +102,7 @@ $server->wsdl->addComplexType(
'total' => array('name'=>'total','type'=>'xsd:double'), 'total' => array('name'=>'total','type'=>'xsd:double'),
'date_start' => array('name'=>'date_start','type'=>'xsd:date'), 'date_start' => array('name'=>'date_start','type'=>'xsd:date'),
'date_end' => array('name'=>'date_end','type'=>'xsd:date'), 'date_end' => array('name'=>'date_end','type'=>'xsd:date'),
'mode_reglement_id' => array('name'=>'mode_reglement_id','type'=>'xsd:string'),
// From product // From product
'product_id' => array('name'=>'product_id','type'=>'xsd:int'), 'product_id' => array('name'=>'product_id','type'=>'xsd:int'),
'product_ref' => array('name'=>'product_ref','type'=>'xsd:string'), 'product_ref' => array('name'=>'product_ref','type'=>'xsd:string'),
...@@ -329,6 +330,7 @@ function getInvoice($authentication,$id='',$ref='',$ref_ext='') ...@@ -329,6 +330,7 @@ function getInvoice($authentication,$id='',$ref='',$ref_ext='')
'status'=> $invoice->statut, 'status'=> $invoice->statut,
'close_code' => $invoice->close_code?$invoice->close_code:'', 'close_code' => $invoice->close_code?$invoice->close_code:'',
'close_note' => $invoice->close_note?$invoice->close_note:'', 'close_note' => $invoice->close_note?$invoice->close_note:'',
'mode_reglement_id' => $invoice->mode_reglement_id?$invoice->mode_reglement_id:'',
'lines' => $linesresp 'lines' => $linesresp
)); ));
} }
...@@ -454,6 +456,7 @@ function getInvoicesForThirdParty($authentication,$idthirdparty) ...@@ -454,6 +456,7 @@ function getInvoicesForThirdParty($authentication,$idthirdparty)
'status'=> $invoice->statut, 'status'=> $invoice->statut,
'close_code' => $invoice->close_code?$invoice->close_code:'', 'close_code' => $invoice->close_code?$invoice->close_code:'',
'close_note' => $invoice->close_note?$invoice->close_note:'', 'close_note' => $invoice->close_note?$invoice->close_note:'',
'mode_reglement_id' => $invoice->mode_reglement_id?$invoice->mode_reglement_id:'',
'lines' => $linesresp 'lines' => $linesresp
); );
} }
...@@ -518,6 +521,7 @@ function createInvoice($authentication,$invoice) ...@@ -518,6 +521,7 @@ function createInvoice($authentication,$invoice)
$newobject->statut=0; // We start with status draft $newobject->statut=0; // We start with status draft
$newobject->fk_project=$invoice['project_id']; $newobject->fk_project=$invoice['project_id'];
$newobject->date_creation=$now; $newobject->date_creation=$now;
$newobject->mode_reglement_id = $invoice['mode_reglement_id'];
// Trick because nusoap does not store data with same structure if there is one or several lines // Trick because nusoap does not store data with same structure if there is one or several lines
$arrayoflines=array(); $arrayoflines=array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment