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

View Revisions: Issue #36481 All Revisions ] Back to Issue ]
Summary 0036481: [STORE SERVER 3094]: A fully paid layaway has isLayaway = N
Revision 2017-07-14 11:20 by jonibc
Description When we create an order using ExternalOrderLoader, if the layaway is fully paid it is never detected.

If we pay fully when the execution achieve the orderLoader, the fullypaidLayaway variable is always false because never satisfy the next condition:

fullypaidLayaway = (jsonorder.getBoolean("isLayaway") || jsonorder.optLong("orderType") == 2)
        && Math.abs(jsonorder.getDouble("payment")) >= Math.abs(jsonorder.getDouble("gross"));


This happens because ExternalOrderLoader is setting property payment to value -1
Revision 2017-07-12 18:51 by jonibc
Description When we create an order using ExternalOrderLoader, it can not has isLayaway = N. So the webPOS always recognized the order as a Layaway.

If we pay fully when the execution achieve the orderLoader, the fullypaidLayaway variable is always false because never satisfy the next condition:

fullypaidLayaway = (jsonorder.getBoolean("isLayaway") || jsonorder.optLong("orderType") == 2)
        && Math.abs(jsonorder.getDouble("payment")) >= Math.abs(jsonorder.getDouble("gross"));



Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker