diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-10-05 14:43:05 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-10-05 14:43:05 -0700 |
commit | cace897d9c5fbe1f80277b0cb14e85c9d2272cf1 (patch) | |
tree | 05f2ccf032fecaf1572eda229612bc25c38da487 /FS/FS/Template_Mixin.pm | |
parent | d942f94119fdc54dc416e309f36d385652fb5272 (diff) | |
parent | 323d6a0c3ee3d7752225b712f5bdcfbb1581d61f (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'FS/FS/Template_Mixin.pm')
-rw-r--r-- | FS/FS/Template_Mixin.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 206c03cde..1a3217c44 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -684,7 +684,12 @@ sub print_generic { my( $pr_total, @pr_cust_bill ) = $self->previous; #previous balance # my( $cr_total, @cr_cust_credit ) = $self->cust_credit; #credits #my $balance_due = $self->owed + $pr_total - $cr_total; - my $balance_due = $self->owed + $pr_total; + my $balance_due = $self->owed; + if ( $self->enable_previous ) { + $balance_due += $pr_total; + } + # otherwise the previous balance is not shown, so including it in the + # balance due is just confusing # the sum of amount owed on all invoices # (this is used in the summary & on the payment coupon) |