Project:
View Revisions: Issue #36481 | [ Back to Issue ] | ||
Summary | 0036481: [STORE SERVER 3094]: A fully paid layaway has isLayaway = N | ||
Revision | 2017-07-14 11:20 by jonibc | ||
Steps To Reproduce | 1.- Create a layaway using EcommerceCreateOrderWS 2.- Create a payment using EcommerceCreatePaymentWS EXPECTED RESULTS: The flag isLayaway will be N, because payment is not detected. |
||
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 | ||
Steps To Reproduce | 1.- Create an order using EcommerceCreateOrderWS 2.- Create a payment using EcommerceCreatePaymentWS EXPECTED RESULTS: The flag isLayaway will be N |
||
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 |