[freeside-commits] freeside/FS/FS Schema.pm,1.105,1.106

Ivan,,, ivan at wavetail.420.am
Wed Sep 10 00:55:04 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv18622

Modified Files:
	Schema.pm 
Log Message:
better (?) place to put display and taxation data than overloading real line items

Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- Schema.pm	9 Sep 2008 08:19:25 -0000	1.105
+++ Schema.pm	10 Sep 2008 07:55:01 -0000	1.106
@@ -522,6 +522,39 @@
       'index' => [ [ 'billpkgnum' ], [ 'pkgnum', 'invnum' ] ],
     },
 
+    #instead of 'duplicate',  'char', 'NULL', 1, '', '',
+    # that way we keep display vs *TOTALLY* out of the table for actual
+    #  finanancial line items
+    'cust_bill_pkg_display' => {
+      'columns' => [
+        'billpkgdisplaynum', 'serial', '', '', '', '', 
+        'billpkgnum', 'int', '', '', '', '', 
+        'section',  'varchar', 'NULL', $char_d, '', '', 
+        #override the linked real one?#'unitsetup', @money_typen, '', '', 
+        #this too?#'unitrecur', @money_typen, '', '', 
+        'post_total', 'char', 'NULL', 1, '', '',
+        'type',       'char', 'NULL', 1, '', '',
+        #any other fields we need to control this display-only line item...
+      ],
+      'primary_key' => 'billpkgdisplaynum',
+      'unique' => [],
+      'index' => [ ['billpkgnum'], ],
+    },
+
+    #and this, to break down a line item into slices for taxation purposes
+    #(instead of creating usage line items for each usage class)
+    'cust_bill_pkg_slice' => {
+      'columns' => [
+        'slicenum', 'serial', '', '', '', '', 
+        'billpkgnum', 'int', '', '', '', '',
+        'amount',  @money_typen, '', '', 
+        'classnum', 'int', '', '', '', '',
+      ],
+      'primary_key' => 'slicenum',
+      'unique'      => [],
+      'index'       => [ [ 'billpkgnum' ], [ 'classnum' ], ],
+    },
+
     'cust_credit' => {
       'columns' => [
         'crednum',  'serial', '', '', '', '', 



More information about the freeside-commits mailing list