X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill.pm;h=1b9b347929bc350e2a15634be8d716b371e0ab19;hb=a620ce3b904e9a9ba1da9c990f63f7a94acb785c;hp=4fb4a7d4758712e1ab4a869f93f56a8e2b39517f;hpb=b7d918470cb8018332c05d17ef989ed4e9740ed3;p=freeside.git diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 4fb4a7d47..1b9b34792 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -97,23 +97,19 @@ L and L for conversion functions. =back -Customer info at invoice generation time +Deprecated fields =over 4 -=item billing_balance - the customer's balance at the time the invoice was -generated (not including charges on this invoice) +=item billing_balance - the customer's balance immediately before generating +this invoice. DEPRECATED. Use the L method +to determine the customer's balance at a specific time. -=item previous_balance - the billing_balance of this customer's previous -invoice plus the charges on that invoice +=item previous_balance - the customer's balance immediately after generating +the invoice before this one. DEPRECATED. -=back - -Deprecated - -=over 4 - -=item printed - deprecated +=item printed - formerly used to track the number of times an invoice had +been printed; no longer used. =back @@ -1511,6 +1507,8 @@ sub fax_invoice { Place this invoice into the open batch (see C). If there isn't an open batch, one will be created. +HASHREF may contain any options to be passed to C. + =cut sub batch_invoice { @@ -3243,6 +3241,14 @@ sub re_X { } +sub API_getinfo { + my $self = shift; + +{ ( map { $_=>$self->$_ } $self->fields ), + 'owed' => $self->owed, + #XXX last payment applied date + }; +} + =back =head1 CLASS METHODS