Spalte 'ordnumber' darf nicht NULL sein.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 17 Dec 2008 15:20:06 +0000 (15:20 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 17 Dec 2008 15:20:06 +0000 (15:20 +0000)
SL/OE.pm

index 95d60c3..f700c35 100644 (file)
--- a/SL/OE.pm
+++ b/SL/OE.pm
@@ -437,7 +437,7 @@ sub save {
          globalproject_id = ?, employee_id = ?, salesman_id = ?, cp_id = ?, transaction_description = ?, marge_total = ?, marge_percent = ?
        WHERE id = ?|;
 
-  @values = ($form->{ordnumber}, $form->{quonumber},
+  @values = ($form->{ordnumber} || '', $form->{quonumber},
              $form->{cusordnumber}, conv_date($form->{transdate}),
              conv_i($form->{vendor_id}), conv_i($form->{customer_id}),
              $amount, $netamount, conv_date($reqdate),