summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/IS.pm1
-rw-r--r--LedgerSMB/OE.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm
index 5b82675a..78819ea4 100644
--- a/LedgerSMB/IS.pm
+++ b/LedgerSMB/IS.pm
@@ -242,6 +242,7 @@ sub invoice_details {
if ( $form->{"qty_$i"} ) {
+ $form->{discount} = [] if ref $form->{discount} ne 'ARRAY';
$form->{totalqty} += $form->{"qty_$i"};
$form->{totalship} += $form->{"qty_$i"};
$form->{totalweight} +=
diff --git a/LedgerSMB/OE.pm b/LedgerSMB/OE.pm
index e274cc03..36e21b36 100644
--- a/LedgerSMB/OE.pm
+++ b/LedgerSMB/OE.pm
@@ -1204,6 +1204,7 @@ sub order_details {
if ( $form->{"qty_$i"} ) {
+ $form->{discount} = [] if ref $form->{discount} ne 'ARRAY';
$form->{totalqty} += $form->{"qty_$i"};
$form->{totalship} += $form->{"ship_$i"};
$form->{totalweight} +=