projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f918ef6
)
add primary key
author
ivan
<ivan>
Sat, 1 Sep 2001 22:18:38 +0000
(22:18 +0000)
committer
ivan
<ivan>
Sat, 1 Sep 2001 22:18:38 +0000
(22:18 +0000)
FS/FS/cust_credit_bill.pm
patch
|
blob
|
history
bin/fs-setup
patch
|
blob
|
history
diff --git
a/FS/FS/cust_credit_bill.pm
b/FS/FS/cust_credit_bill.pm
index
be3d548
..
d6c4f6c
100644
(file)
--- a/
FS/FS/cust_credit_bill.pm
+++ b/
FS/FS/cust_credit_bill.pm
@@
-99,7
+99,8
@@
sub check {
my $self = shift;
my $error =
my $self = shift;
my $error =
- $self->ut_number('crednum')
+ $self->ut_numbern('creditbillnum')
+ || $self->ut_number('crednum')
|| $self->ut_number('invnum')
|| $self->ut_numbern('_date')
|| $self->ut_money('amount')
|| $self->ut_number('invnum')
|| $self->ut_numbern('_date')
|| $self->ut_money('amount')
@@
-129,7
+130,7
@@
sub check {
=head1 VERSION
=head1 VERSION
-$Id: cust_credit_bill.pm,v 1.
1 2001-09-01 21:52:19 jeff
Exp $
+$Id: cust_credit_bill.pm,v 1.
2 2001-09-01 22:18:38 ivan
Exp $
=head1 BUGS
=head1 BUGS
@@
-137,8
+138,8
@@
The delete method.
=head1 SEE ALSO
=head1 SEE ALSO
-L<FS::Record>, L<FS::cust_refund>, L<FS::cust_bill>,
schema.html from the base
-documentation.
+L<FS::Record>, L<FS::cust_refund>, L<FS::cust_bill>,
L<cust_credit>,
+
schema.html from the base
documentation.
=cut
=cut
diff --git
a/bin/fs-setup
b/bin/fs-setup
index
8fbc67e
..
71d53ef
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
7 2001-09-01 22:18:38 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' => {
@@
-420,7
+421,7
@@
sub tables_hash_hack {
],
'primary_key' => 'paynum',
'unique' => [ [] ],
],
'primary_key' => 'paynum',
'unique' => [ [] ],
- 'index' => [ [
'invnum'
] ],
+ 'index' => [ [] ],
},
'cust_bill_pay' => {
},
'cust_bill_pay' => {