summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-25 20:32:34 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-25 20:32:34 +0000
commitcd91e96795a844a902297c859eb68025a8bb00a0 (patch)
tree491c9ced3009194e5cf025ada918b24f6a8c8953 /scripts
parent6ba31595b6b366423e3e5f40e64c7707f34eb006 (diff)
Setting correct entity class in vendor workflow scripts:
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1903 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vendor.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vendor.pl b/scripts/vendor.pl
index 576ddf5b..924c967a 100644
--- a/scripts/vendor.pl
+++ b/scripts/vendor.pl
@@ -47,7 +47,7 @@ sub get {
my ($request) = @_;
my $vendor = LedgerSMB::DBObject::Vendor->new(base => $request, copy => 'all');
- $vendor->set( entity_class=> '2' );
+ $vendor->set( entity_class=> '1' );
my $result = $vendor->get();
my $template = LedgerSMB::Template->new( user => $user,
@@ -62,7 +62,7 @@ sub get {
sub add_location {
my ($request) = @_;
my $vendor= LedgerSMB::DBObject::Vendor->new({base => $request, copy => 'all'});
- $vendor->set( entity_class=> '2' );
+ $vendor->set( entity_class=> '1' );
$vendor->save_location();
$vendor->get();
@@ -88,7 +88,7 @@ This method creates a blank screen for entering a vendor's information.
sub add {
my ($request) = @_;
my $vendor= LedgerSMB::DBObject::Vendor->new(base => $request, copy => 'all');
- $vendor->set( entity_class=> '2' );
+ $vendor->set( entity_class=> '1' );
_render_main_screen($vendor);
}
@@ -115,7 +115,7 @@ sub search {
# assume it's asking us to do the search, now
my $vendor = LedgerSMB::DBObject::Vendor->new(base => $request, copy => 'all');
- $vendor->set(entity_class=>2);
+ $vendor->set(entity_class=>1);
my $results = $vendor->search($vendor->{search_pattern});
my $template = LedgerSMB::Template->new( user => $user,