Merge pull request #1148 from csalvador/replenish-fix
init cond_reglement_id and mode_reglement_id to 0 in orders creations to...
This commit is contained in:
commit
298a35a347
@ -124,6 +124,8 @@ if ($action == 'order') {
|
|||||||
foreach ($supplier['lines'] as $line) {
|
foreach ($supplier['lines'] as $line) {
|
||||||
$order->lines[] = $line;
|
$order->lines[] = $line;
|
||||||
}
|
}
|
||||||
|
$order->cond_reglement_id = 0;
|
||||||
|
$order->mode_reglement_id = 0;
|
||||||
$id = $order->create($user);
|
$id = $order->create($user);
|
||||||
if ($id < 0) {
|
if ($id < 0) {
|
||||||
$fail++;
|
$fail++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user