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.
This commit is contained in:
parent
ec25869ec6
commit
240371b59d
@ -325,7 +325,7 @@ $server->register(
|
|||||||
|
|
||||||
$server->register(
|
$server->register(
|
||||||
'validOrder',
|
'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
|
array('result'=>'tns:result'), // Exit values
|
||||||
$ns,
|
$ns,
|
||||||
$ns.'#validOrder',
|
$ns.'#validOrder',
|
||||||
@ -795,7 +795,7 @@ function createOrder($authentication,$order)
|
|||||||
* @param int $id Id of order to validate
|
* @param int $id Id of order to validate
|
||||||
* @return array Array result
|
* @return array Array result
|
||||||
*/
|
*/
|
||||||
function validOrder($authentication,$id='')
|
function validOrder($authentication,$id='',$id_warehouse=0)
|
||||||
{
|
{
|
||||||
global $db,$conf,$langs;
|
global $db,$conf,$langs;
|
||||||
|
|
||||||
@ -821,7 +821,8 @@ function validOrder($authentication,$id='')
|
|||||||
$db->begin();
|
$db->begin();
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$result=$order->valid($fuser);
|
|
||||||
|
$result=$order->valid($fuser,$id_warehouse);
|
||||||
|
|
||||||
if ($result >= 0)
|
if ($result >= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user