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

This commit is contained in:
Cédric Salvador 2013-08-01 15:03:34 +02:00
parent e6022527dd
commit 3c93aac071

View File

@ -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++;