Project: 	
  | View Revisions: Issue #35376 | [ Back to Issue ] | ||
| Summary | 0035376: [SER-QA 2514]: The created order line using ExternalOrderLoader is not setting the field gross unit price. | ||
| Revision | 2017-02-28 17:59 by kchoperena | ||
| Steps To Reproduce | 1.- Create a order (layaway) using the ExternalOrderLoader | ||
| Revision | 2017-02-28 17:59 by kchoperena | ||
| Description | When we create an order (layaway) using ExternalOrderLoader, the order lines grossUnitPrice value is not setting in back-end. | ||
| Revision | 2017-02-28 16:02 by kchoperena | ||
| Steps To Reproduce | 1.- Create a layaway with EcommerceCreateOrderWS or with any service that use ExternalOrderLoader 2.- Check in 'Sales Order' window of back-end that the layaway created previously has IsDelivered='Yes'  | 
||
| Revision | 2017-02-28 16:02 by kchoperena | ||
| Description | It is impossible create a layaway using the ExternalOrderLoader. This provokes that the orderLoader set the flag IsDelivered='Y' because It recognize the layaway like an order. The problem happen because the ExternalOrderLoader is setting a orderType incorrectly protected void setOrderType(JSONObject orderJson) throws JSONException { if (orderJson.getBoolean(""isReturn"")) { orderJson.put(""orderType"", 1l); } else if (orderJson.getBoolean(""isLayaway"")) { // orderJson.put(""orderType"", 2l); orderJson.put(""orderType"", 0l); } else { orderJson.put(""orderType"", 0l); } } Then the orderLoader set newLayaway flag to 'N' newLayaway = jsonorder.has(""orderType"") && jsonorder.getLong(""orderType"") == 2; And after isDeliverd flag if (!newLayaway && !isQuotation) { order.setDelivered(true); }  | 
||
| Copyright © 2000 - 2009 MantisBT Group |