Skip to content
Snippets Groups Projects
Commit 240371b5 authored by cam.lafit's avatar cam.lafit
Browse files

UPDATE : add warehouse information on order creation

* If stock management is enabled we must done information about warehouse source
If any warehouse is provided, client must send 0.
parent ec25869e
No related branches found
No related tags found
No related merge requests found
......@@ -325,7 +325,7 @@ $server->register(
$server->register(
'validOrder',
array('authentication'=>'tns:authentication','id'=>'xsd:string'), // Entry values
array('authentication'=>'tns:authentication','id'=>'xsd:string','id_warehouse'=>'xsd:string'), // Entry values
array('result'=>'tns:result'), // Exit values
$ns,
$ns.'#validOrder',
......@@ -795,7 +795,7 @@ function createOrder($authentication,$order)
* @param int $id Id of order to validate
* @return array Array result
*/
function validOrder($authentication,$id='')
function validOrder($authentication,$id='',$id_warehouse=0)
{
global $db,$conf,$langs;
......@@ -821,7 +821,8 @@ function validOrder($authentication,$id='')
$db->begin();
if ($result > 0)
{
$result=$order->valid($fuser);
$result=$order->valid($fuser,$id_warehouse);
if ($result >= 0)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment