[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2808] trunk/scripts



Revision: 2808
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2808&view=rev
Author:   aurynn_cmd
Date:     2009-12-07 21:31:39 +0000 (Mon, 07 Dec 2009)

Log Message:
-----------
Resolves issue where a user could not save a new customer or vendor due to violation of the "entity_credit_account_check" constraint on the entity_credit_acount table.

Modified Paths:
--------------
    trunk/scripts/customer.pl
    trunk/scripts/vendor.pl

Modified: trunk/scripts/customer.pl
===================================================================
--- trunk/scripts/customer.pl	2009-12-07 19:40:13 UTC (rev 2807)
+++ trunk/scripts/customer.pl	2009-12-07 21:31:39 UTC (rev 2808)
@@ -26,11 +26,13 @@
 sub set_entity_class {
     my ($null, $request) = @_;
     $request->{entity_class} = 2;
+    $request->{account_class} = $request->{entity_class};
     return 1;
 }
 
 sub new_company {
     my ($null, $request) = @_;
+    
     return LedgerSMB::DBObject::Customer->new(base=> $request, copy => 'all');
 }
 

Modified: trunk/scripts/vendor.pl
===================================================================
--- trunk/scripts/vendor.pl	2009-12-07 19:40:13 UTC (rev 2807)
+++ trunk/scripts/vendor.pl	2009-12-07 21:31:39 UTC (rev 2808)
@@ -28,6 +28,7 @@
 sub set_entity_class {
     my ($null, $request) = @_;
     $request->{entity_class} = 1;
+    $request->{account_class} = $request->{entity_class};
     return 1;
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.