init cond_reglement_id and mode_reglement_id to 0 in orders creations to avoid SQL errors
This commit is contained in:
parent
e6022527dd
commit
3c93aac071
@ -124,6 +124,8 @@ if ($action == 'order') {
|
||||
foreach ($supplier['lines'] as $line) {
|
||||
$order->lines[] = $line;
|
||||
}
|
||||
$order->cond_reglement_id = 0;
|
||||
$order->mode_reglement_id = 0;
|
||||
$id = $order->create($user);
|
||||
if ($id < 0) {
|
||||
$fail++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user