[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3218] trunk/LedgerSMB/OE.pm
- Subject: SF.net SVN: ledger-smb:[3218] trunk/LedgerSMB/OE.pm
- From: ..hidden..
- Date: Sat, 11 Jun 2011 14:15:34 +0000
Revision: 3218
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3218&view=rev
Author: ehuelsmann
Date: 2011-06-11 14:15:34 +0000 (Sat, 11 Jun 2011)
Log Message:
-----------
Fix saving of quotations and RFQs
Fixes bugs 3310335 and 3310340.
Modified Paths:
--------------
trunk/LedgerSMB/OE.pm
Modified: trunk/LedgerSMB/OE.pm
===================================================================
--- trunk/LedgerSMB/OE.pm 2011-06-11 14:01:38 UTC (rev 3217)
+++ trunk/LedgerSMB/OE.pm 2011-06-11 14:15:34 UTC (rev 3218)
@@ -282,10 +282,13 @@
else {
$quotation = "1";
$ordnumber = "quonumber";
- $numberfld =
- ( $form->{vc} eq 'customer' )
- ? "sqnumber"
- : "rfqnumber";
+ if ( $form->{vc} eq 'customer' ) {
+ $numberfld = "sqnumber";
+ $class_id = 3;
+ } else {
+ $numberfld = "rfqnumber";
+ $class_id = 4;
+ }
}
$form->{"$ordnumber"} =
$form->update_defaults( $myconfig, $numberfld, $dbh )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.