From a8dd913fcc2f77382d0064bdf93f96bfa54f6ed7 Mon Sep 17 00:00:00 2001
From: Philip Reetz
Date: Thu, 10 Nov 2005 15:16:49 +0000
Subject: [PATCH] Fehler beim Speichern von Rechnungen und Angeboten/Auftraegen
wenn keine Preisgruppen vorhanden
---
SL/IS.pm | 1 +
SL/OE.pm | 1 +
2 files changed, 2 insertions(+)
diff --git a/SL/IS.pm b/SL/IS.pm
index a547fa945..540c874e5 100644
--- a/SL/IS.pm
+++ b/SL/IS.pm
@@ -554,6 +554,7 @@ print STDERR "IS.pm-post_invoice\n";
# get pricegroup_id and save ist
($null, my $pricegroup_id) = split /--/, $form->{"sellprice_drag_$i"};
+ $pricegroup_id *= 1;
# save detail record in invoice table
$query = qq|INSERT INTO invoice (trans_id, parts_id, description, qty,
diff --git a/SL/OE.pm b/SL/OE.pm
index 334355d28..d5d1aa7ba 100644
--- a/SL/OE.pm
+++ b/SL/OE.pm
@@ -313,6 +313,7 @@ sub save {
# get pricegroup_id and save ist
($null, my $pricegroup_id) = split /--/, $form->{"sellprice_drag_$i"};
+ $pricegroup_id *= 1;
# save detail record in orderitems table
$query = qq|INSERT INTO orderitems (|;
--
2.20.1