Author: jacopoc
Date: Fri Feb 23 01:54:11 2007
New Revision: 510892
URL:
http://svn.apache.org/viewvc?view=rev&rev=510892Log:
Fix/synch between ORG and ANY for po id storing logics.
Part of issue #13306
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java?view=diff&rev=510892&r1=510891&r2=510892==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java Fri Feb 23 01:54:11 2007
@@ -656,6 +656,22 @@
// ====================================================================================
if (mode != null && (mode.equals("ship") || mode.equals("options"))) {
+ String internalNote = request.getParameter("internalNote");
+ String publicNote = request.getParameter("note");
+ String correspondingPoId = request.getParameter("corresponding_po_id");
+ if (UtilValidate.isNotEmpty(internalNote)) {
+ cart.getInternalOrderNotes().clear();
+ cart.addInternalOrderNote(internalNote);
+ }
+ if (UtilValidate.isNotEmpty(publicNote)) {
+ cart.getOrderNotes().clear();
+ cart.addOrderNote(publicNote);
+ }
+ if (UtilValidate.isNotEmpty(correspondingPoId)) {
+ cart.setPoNumber(correspondingPoId);
+ } else {
+ cart.setPoNumber(null);
+ }
Map callResult = ServiceUtil.returnSuccess();
List errorMessages = new ArrayList();
Map errorMaps = new HashMap();