mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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(
|
||||
'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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user