Fix transactionId problem in pos, reported by Bilgin Ibryam OFBIZ-1376

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@591432 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Scott Gray
2007-11-02 19:41:31 +00:00
parent c3ddd05100
commit 7376515bd0
@@ -108,7 +108,6 @@ public class PosTransaction implements Serializable {
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 @@ public class PosTransaction implements Serializable {
}
// 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());