projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
show negative balances on A/R report, closes: RT#2983
[freeside.git]
/
FS
/
FS
/
prepay_credit.pm
diff --git
a/FS/FS/prepay_credit.pm
b/FS/FS/prepay_credit.pm
index
92f2a30
..
bf85dfa
100644
(file)
--- a/
FS/FS/prepay_credit.pm
+++ b/
FS/FS/prepay_credit.pm
@@
-61,7
+61,7
@@
fields are currently supported:
=item new HASHREF
=item new HASHREF
-Creates a new pre-paid credit. To add the
example
to the database, see
+Creates a new pre-paid credit. To add the
pre-paid credit
to the database, see
L<"insert">.
Note that this stores the hash reference, not a distinct copy of the hash it
L<"insert">.
Note that this stores the hash reference, not a distinct copy of the hash it
@@
-110,6
+110,9
@@
sub check {
|| $self->ut_alpha('identifier')
|| $self->ut_money('amount')
|| $self->ut_numbern('seconds')
|| $self->ut_alpha('identifier')
|| $self->ut_money('amount')
|| $self->ut_numbern('seconds')
+ || $self->ut_numbern('upbytes')
+ || $self->ut_numbern('downbytes')
+ || $self->ut_numbern('totalbytes')
|| $self->ut_foreign_keyn('agentnum', 'agent', 'agentnum')
|| $self->SUPER::check
;
|| $self->ut_foreign_keyn('agentnum', 'agent', 'agentnum')
|| $self->SUPER::check
;