diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-17 17:28:29 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-17 17:28:29 +0000 |
commit | e4bae61c5b3176c3b84b4840f77d5cb432847edc (patch) | |
tree | 549e00a590918a2e3ba8d5a8432eafbcc449701a /LedgerSMB | |
parent | b85dd91eabe25cd1bb56248b0e11cfd21a36adfa (diff) |
Adding project list Payment method
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1623 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rw-r--r-- | LedgerSMB/DBObject/Payment.pm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/LedgerSMB/DBObject/Payment.pm b/LedgerSMB/DBObject/Payment.pm index 0cd63c38..79dfc129 100644 --- a/LedgerSMB/DBObject/Payment.pm +++ b/LedgerSMB/DBObject/Payment.pm @@ -161,3 +161,23 @@ sub get_all_contact_invoices { } return @{$self->{contacts}}; } + +=over + +=item list_open_projects + +This method uses the $payment->{date} attribute, and provides a list of open +projects. The list is attached to $payment->{projects} and returned by the +function. + +=back + +=cut + +sub list_open_projects { + my ($self) = @_; + @{$self->{projects}} = $self->exec_method('project_list_open'); + return @{$self->{projects}}; +} + +1; |