[freeside-commits] branch FREESIDE_3_BRANCH updated. c09066ef7930f5190cc91f42ab66b33c2d15f643

Mark Wells mark at 420.am
Sat Jan 31 17:21:00 PST 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  c09066ef7930f5190cc91f42ab66b33c2d15f643 (commit)
      from  1c2774bbe1aefb37fb69c8643443c02a650282f8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c09066ef7930f5190cc91f42ab66b33c2d15f643
Author: Mark Wells <mark at freeside.biz>
Date:   Sat Jan 31 17:20:24 2015 -0800

    include discount details in Billco spool, #31273, #32959

diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 7204821..18742df 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -1909,13 +1909,18 @@ sub print_csv {
     my $lineseq = 0;
     foreach my $item ( $self->_items_pkg ) {
 
+      my $description = $item->{'description'};
+      if ( $item->{'_is_discount'} and exists($item->{ext_description}[0]) ) {
+        $description .= ': ' . $item->{ext_description}[0];
+      }
+
       $csv->combine(
         '',                     #  1 | N/A-Leave Empty            CHAR   2
         '',                     #  2 | N/A-Leave Empty            CHAR  15
         $tracctnum,             #  3 | Account Number             CHAR  15
         $self->invnum,          #  4 | Invoice Number             CHAR  15
         $lineseq++,             #  5 | Line Sequence (sort order) NUM    6
-        $item->{'description'}, #  6 | Transaction Detail         CHAR 100
+        $description,           #  6 | Transaction Detail         CHAR 100
         $item->{'amount'},      #  7 | Amount                     NUM*   9
         '',                     #  8 | Line Format Control**      CHAR   2
         '',                     #  9 | Grouping Code              CHAR   2


-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_bill.pm |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list