diff options
author | ivan <ivan> | 2011-04-15 23:02:22 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-04-15 23:02:22 +0000 |
commit | abbbf04daa6c2ceaa0ffa09ce8bb967444c0f72d (patch) | |
tree | f4323c3ba02a36441adfbe5720a8c624a6379182 /FS | |
parent | 392fb341f4ff12eb84bb4ee1d8177f8a8d0efa7a (diff) |
fix new tax report w/FS::tax_rate_location->location_sql, RT#12332
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/tax_rate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/tax_rate.pm b/FS/FS/tax_rate.pm index 43f8bbbf5..76631d7a6 100644 --- a/FS/FS/tax_rate.pm +++ b/FS/FS/tax_rate.pm @@ -1904,7 +1904,7 @@ sub generate_liability_report { my $sql = "SELECT SUM(amount) $taxwhere AND cust_bill_pkg.pkgnum = 0"; - my $x = &{$scalar_sql}($t, [ $itemdesc, $itemdesc ], $sql ); + my $x = &{$scalar_sql}($t, [ $t->itemdesc, $t->itemdesc ], $sql ); $tax += $x; $taxes{$label}->{'tax'} += $x; @@ -1916,7 +1916,7 @@ sub generate_liability_report { $sql = "SELECT SUM(cust_credit_bill_pkg.amount) ". " $creditwhere AND cust_bill_pkg.pkgnum = 0"; - my $y = &{$scalar_sql}($t, [ $Itemdesc, $itemdesc ], $sql ); + my $y = &{$scalar_sql}($t, [ $t->itemdesc, $t->itemdesc ], $sql ); $credit += $y; $taxes{$label}->{'credit'} += $y; |