summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-08-06 21:25:23 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-08-06 21:25:23 +0000
commit411c1385318bbdf8204bb6c968f916294de21333 (patch)
tree5d76719196ce20232bae97daece50ed64c89491a /scripts
parent87ca70bacd544f1b027cb640e9caed28323f5c8b (diff)
Adding entity/account note options
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2234 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vendor.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/vendor.pl b/scripts/vendor.pl
index 2119d46c..3f60a2c7 100644
--- a/scripts/vendor.pl
+++ b/scripts/vendor.pl
@@ -241,7 +241,6 @@ sub edit{
my $request = shift @_;
my $vendor = LedgerSMB::DBObject::Vendor->new({base => $request});
$vendor->get();
- $vendor->get_credit_id();
_render_main_screen($vendor);
}
@@ -252,6 +251,11 @@ sub _render_main_screen{
$vendor->{creditlimit} = "$vendor->{creditlimit}";
$vendor->{discount} = "$vendor->{discount}";
$vendor->{script} = "vendor.pl";
+ $vendor->{note_class_options} = [
+ {label => 'Entity', value => 1},
+ {label => 'Vendor Account', value => 3},
+ ];
+ $vendor->{threshold} = $vendor->format_amount(amount => $vendor->{threshold});
my $template = LedgerSMB::Template->new(
user => $vendor->{_user},