Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #35376 All Revisions ] 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
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
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
Powered by Mantis Bugtracker