summaryrefslogtreecommitdiff
path: root/LedgerSMB/DBObject/Payment.pm
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-07-07 17:37:20 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-07-07 17:37:20 +0000
commit484f4f00ff319bf97c5ca911313738aa05a63a2c (patch)
tree206cc4592d59f5b1e686295cccfef25707544b4d /LedgerSMB/DBObject/Payment.pm
parent4ffd768dbd254da2d1abeba77148ad1de648d117 (diff)
Correcting all check printing issues on my secondary testing instance
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2190 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/DBObject/Payment.pm')
-rw-r--r--LedgerSMB/DBObject/Payment.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/LedgerSMB/DBObject/Payment.pm b/LedgerSMB/DBObject/Payment.pm
index 6cc23f2e..50e7829f 100644
--- a/LedgerSMB/DBObject/Payment.pm
+++ b/LedgerSMB/DBObject/Payment.pm
@@ -61,6 +61,15 @@ sub __validate__ {
($self->{current_date}) = $self->{dbh}->selectrow_array('select current_date');
}
+sub text_amount {
+ use LedgerSMB::Num2text;
+ print STDERR "num2text\n";
+ my ($self, $value) = @_;
+ $self->{locale} = $self->{_locale};
+ $self->init();
+ return $self->num2text($value);
+}
+
sub get_metadata {
my ($self) = @_;
$self->list_open_projects();