svn commit: r591432 - /ofbiz/trunk/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: r591432 - /ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

lektran
Author: lektran
Date: Fri Nov  2 12:41:31 2007
New Revision: 591432

URL: http://svn.apache.org/viewvc?rev=591432&view=rev
Log:
Fix transactionId problem in pos, reported by Bilgin Ibryam OFBIZ-1376

Modified:
    ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java?rev=591432&r1=591431&r2=591432&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java (original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java Fri Nov  2 12:41:31 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");
-        txLog.set("posTerminalLogId", txLogId);
+        txLog.set("posTerminalLogId", this.transactionId);
         txLog.set("posTerminalId", terminalId);
         txLog.set("transactionId", transactionId);
         txLog.set("userLoginId", session.getUserId());