Skip to content
Snippets Groups Projects
Commit 3c93aac0 authored by Cédric Salvador's avatar Cédric Salvador
Browse files

init cond_reglement_id and mode_reglement_id to 0 in orders creations to avoid SQL errors

parent e6022527
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment