Rename mode_reglement_id into payment_mode_id
This commit is contained in:
parent
30a25251d9
commit
0d71350c76
@ -102,7 +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'),
|
'payment_mode_id' => array('name'=>'payment_mode_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'),
|
||||||
@ -330,7 +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:'',
|
'payment_mode_id' => $invoice->mode_reglement_id?$invoice->mode_reglement_id:'',
|
||||||
'lines' => $linesresp
|
'lines' => $linesresp
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -456,7 +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:'',
|
'payment_mode_id' => $invoice->mode_reglement_id?$invoice->mode_reglement_id:'',
|
||||||
'lines' => $linesresp
|
'lines' => $linesresp
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -521,7 +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'];
|
$newobject->mode_reglement_id = $invoice['payment_mode_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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user