svn commit: r596069 - /ofbiz/branches/release4.0/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r596069 - /ofbiz/branches/release4.0/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

jleroux@apache.org
Author: jleroux
Date: Sun Nov 18 01:34:58 2007
New Revision: 596069

URL: http://svn.apache.org/viewvc?rev=596069&view=rev
Log:
Applied fix from trunk for revision: 591432

Modified:
    ofbiz/branches/release4.0/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

Modified: ofbiz/branches/release4.0/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java?rev=596069&r1=596068&r2=596069&view=diff
==============================================================================
--- ofbiz/branches/release4.0/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java (original)
+++ ofbiz/branches/release4.0/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java Sun Nov 18 01:34:58 2007
@@ -108,7 +108,6 @@
         this.locale = (Locale) session.getAttribute("locale");
 
         this.cart = new ShoppingCart(session.getDelegator(), productStoreId, locale, currency);
-        this.transactionId = session.getDelegator().getNextSeqId("PosTerminalLog");
         this.ch = new CheckOutHelper(session.getDispatcher(), session.getDelegator(), cart);
         cart.setChannelType("POS_SALES_CHANNEL");
         cart.setTransactionId(transactionId);
@@ -119,9 +118,9 @@
         }
 
         // setup the TX log
-        String txLogId = session.getDelegator().getNextSeqId("PosTerminalLog");
+        this.transactionId = session.getDelegator().getNextSeqId("PosTerminalLog");
         txLog = session.getDelegator().makeValue("PosTerminalLog", null);
-        txLog.set("posTerminalLogId", txLogId);
+        txLog.set("posTerminalLogId", this.transactionId);
         txLog.set("posTerminalId", terminalId);
         txLog.set("transactionId", transactionId);
         txLog.set("userLoginId", session.getUserId());