projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cust_refund and cust_pay get custnums
[freeside.git]
/
bin
/
fs-setup
diff --git
a/bin/fs-setup
b/bin/fs-setup
index
8fbc67e
..
5e73529
100755
(executable)
--- a/
bin/fs-setup
+++ b/
bin/fs-setup
@@
-1,6
+1,6
@@
#!/usr/bin/perl -Tw
#
#!/usr/bin/perl -Tw
#
-# $Id: fs-setup,v 1.4
6 2001-09-01 21:52:20 jeff
Exp $
+# $Id: fs-setup,v 1.4
8 2001-09-02 02:46:55 ivan
Exp $
#to delay loading dbdef until we're ready
BEGIN { $FS::Record::setup_hack = 1; }
#to delay loading dbdef until we're ready
BEGIN { $FS::Record::setup_hack = 1; }
@@
-319,14
+319,15
@@
sub tables_hash_hack {
'cust_credit_bill' => {
'columns' => [
'cust_credit_bill' => {
'columns' => [
+ 'creditbillnum', 'int', '', '',
'crednum', 'int', '', '',
'invnum', 'int', '', '',
'_date', @date_type,
'amount', @money_type,
],
'crednum', 'int', '', '',
'invnum', 'int', '', '',
'_date', @date_type,
'amount', @money_type,
],
- 'primary_key' => 'crednum',
+ 'primary_key' => 'cred
itbill
num',
'unique' => [ [] ],
'unique' => [ [] ],
- 'index' => [ ['invnum'] ],
+ 'index' => [ ['
crednum'], ['
invnum'] ],
},
'cust_main' => {
},
'cust_main' => {
@@
-411,6
+412,7
@@
sub tables_hash_hack {
'columns' => [
'paynum', 'int', '', '',
#now cust_bill_pay #'invnum', 'int', '', '',
'columns' => [
'paynum', 'int', '', '',
#now cust_bill_pay #'invnum', 'int', '', '',
+ 'custnum', 'int', '', '',
'paid', @money_type,
'_date', @date_type,
'payby', 'char', '', 4, # CARD/BILL/COMP, should be index into
'paid', @money_type,
'_date', @date_type,
'payby', 'char', '', 4, # CARD/BILL/COMP, should be index into
@@
-420,7
+422,7
@@
sub tables_hash_hack {
],
'primary_key' => 'paynum',
'unique' => [ [] ],
],
'primary_key' => 'paynum',
'unique' => [ [] ],
- 'index' => [ [
'invnum'
] ],
+ 'index' => [ [] ],
},
'cust_bill_pay' => {
},
'cust_bill_pay' => {
@@
-482,6
+484,7
@@
sub tables_hash_hack {
'columns' => [
'refundnum', 'int', '', '',
#now cust_credit_refund #'crednum', 'int', '', '',
'columns' => [
'refundnum', 'int', '', '',
#now cust_credit_refund #'crednum', 'int', '', '',
+ 'custnum', 'int', '', '',
'_date', @date_type,
'refund', @money_type,
'otaker', 'varchar', '', 8,
'_date', @date_type,
'refund', @money_type,
'otaker', 'varchar', '', 8,