fix recipt when no dispatch
This commit is contained in:
parent
6bba249935
commit
13dfa56c2f
@ -2298,8 +2298,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
|
|
||||||
// TODO LDR01 Add a control test to accept only if ALL predefined products are received (same qty).
|
// TODO LDR01 Add a control test to accept only if ALL predefined products are received (same qty).
|
||||||
|
|
||||||
|
if (empty($error))
|
||||||
if (!$error)
|
|
||||||
{
|
{
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
@ -2320,9 +2319,10 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
// Call trigger
|
// Call trigger
|
||||||
$result = $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user);
|
$result = $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user);
|
||||||
if ($result < 0) $error++;
|
if ($result < 0) $error++;
|
||||||
|
else $result = 1;
|
||||||
// End call triggers
|
// End call triggers
|
||||||
|
|
||||||
if (!$error)
|
if (empty($error))
|
||||||
{
|
{
|
||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user