diff options
| author | ivan <ivan> | 2001-09-01 20:11:07 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2001-09-01 20:11:07 +0000 | 
| commit | cdd5aa1d86cd5b266e02bed58570c97c2d7698ba (patch) | |
| tree | f83c2929f38cc9c334332059afe7afec338f6796 /bin/fs-setup | |
| parent | d70e3f97ae64081dc724c77e64d71f3747fdddf1 (diff) | |
cust_bill_pay and cust_credit_refund.
payments can apply to multiple invoices and refunds can apply to multiple
credits.
Diffstat (limited to 'bin/fs-setup')
| -rwxr-xr-x | bin/fs-setup | 34 | 
1 files changed, 31 insertions, 3 deletions
| diff --git a/bin/fs-setup b/bin/fs-setup index faa0e07f1..2cba840ef 100755 --- a/bin/fs-setup +++ b/bin/fs-setup @@ -1,6 +1,6 @@  #!/usr/bin/perl -Tw  # -# $Id: fs-setup,v 1.44 2001-08-29 08:45:04 ivan Exp $ +# $Id: fs-setup,v 1.45 2001-09-01 20:11:07 ivan Exp $  #to delay loading dbdef until we're ready  BEGIN { $FS::Record::setup_hack = 1; } @@ -398,7 +398,7 @@ sub tables_hash_hack {      'cust_pay' => {        'columns' => [          'paynum',   'int',    '',   '', -        'invnum',   'int',    '',   '', +        #now cust_bill_pay #'invnum',   'int',    '',   '',          'paid',     @money_type,          '_date',    @date_type,          'payby',    'char',   '',     4, # CARD/BILL/COMP, should be index into @@ -411,6 +411,19 @@ sub tables_hash_hack {        'index' => [ ['invnum'] ],      }, +    'cust_bill_pay' => { +      'column' => [ +        'billpaynum', 'int',     '',   '', +        'invnum',  'int',     '',   '', +        'paynum',  'int',     '',   '', +        'amount',  @money_type, +        '_date',   @date_type +      ], +      'primary_key' => 'billpaynum' +      'unique' => [ [] ], +      'index' => [ [ 'paynum', 'invnum' ] ], +    }, +      'cust_pay_batch' => { #what's this used for again?  list of customers                            #in current CARD batch? (necessarily CARD?)        'columns' => [ @@ -456,7 +469,7 @@ sub tables_hash_hack {      'cust_refund' => {        'columns' => [          'refundnum',    'int',    '',   '', -        'crednum',      'int',    '',   '', +        #now cust_credit_refund #'crednum',      'int',    '',   '',          '_date',        @date_type,          'refund',       @money_type,          'otaker',       'varchar',   '',   8, @@ -464,12 +477,27 @@ sub tables_hash_hack {          'payby',        'char',   '',     4, # CARD/BILL/COMP, should be index                                               # into payment type table.          'payinfo',      'varchar',   'NULL', 16,  #see cust_main above +        'paybatch',     'varchar',   'NULL', $char_d,        ],        'primary_key' => 'refundnum',        'unique' => [ [] ],        'index' => [ ['crednum'] ],      }, +    'cust_credit_refund' => { +      'column' => [ +        'creditrefundnum', 'int',     '',   '', +        'crednum',  'int',     '',   '', +        'refundnum',  'int',     '',   '', +        'amount',  @money_type, +        '_date',   @date_type +      ], +      'primary_key' => 'creditrefundnum' +      'unique' => [ [] ], +      'index' => [ [ 'crednum', 'refundnum' ] ], +    }, + +      'cust_svc' => {        'columns' => [          'svcnum',    'int',    '',   '', | 
