X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fquotation.pm;h=47f13e6dc5a1d76487f8ce6ad79bb2f2989502ba;hb=010c8080a423af31fe92082c271ad8b261450393;hp=6d36f19d90fb001bde1c75f80c3531fdbdf6fe16;hpb=53a1130923c4905b267239c369949aadde657c7c;p=freeside.git diff --git a/FS/FS/quotation.pm b/FS/FS/quotation.pm index 6d36f19d9..47f13e6dc 100644 --- a/FS/FS/quotation.pm +++ b/FS/FS/quotation.pm @@ -185,6 +185,27 @@ sub _items_nontax { shift->cust_bill_pkg; } +sub _items_total { + my( $self, $total_items ) = @_; + + if ( $self->total_setup > 0 ) { + push @$total_items, { + 'total_item' => $self->mt( $self->total_recur > 0 ? 'Total Setup' : 'Total' ), + 'total_amount' => $self->total_setup, + }; + } + + #could/should add up the different recurring frequencies on lines of their own + # but this will cover the 95% cases for now + if ( $self->total_recur > 0 ) { + push @$total_items, { + 'total_item' => $self->mt('Total Recurring'), + 'total_amount' => $self->total_recur, + }; + } + +} + =item enable_previous =cut