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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052225
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Gift cards and gift voucherscriticalhave not tried2023-04-25 12:002023-04-26 06:47
ReporterguilleaerView Statuspublic 
Assigned Tohcurbelo 
PrioritynormalResolutionfixedFixed in VersionRR23Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR23Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned Tomarvintm
OBNetwork customerNo
Support ticket
Regression levelProduction - QA Approved
Regression date2023-01-27
Regression introduced in release
Regression introduced by commithttps://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/f7860454aa84bf073f34ebd22e5b8d151b732e95 [^]
Triggers an Emergency PackNo
Summary

0052225: Issue prepaid order from POS2 generates and EWI if gift card module is installed

DescriptionIssue prepaid order from POS2 generates and EWI if gift card module is installed
Steps To ReproduceConfigure POS2 to use prepayments
Create an order to pickup in store
Select a customer
complete the order with a prepayment
Open the order and pay it completely
Open de order and issue the order

EWI is generated (null pointer exception)(Created does not exist)

Proposed Solutiondiff --git a/src/org/openbravo/retail/giftcards/hooks/OrderLoaderHookGiftCard.java b/src/org/openbravo/retail/giftcards/hooks/OrderLoaderHookGiftCard.java
index 018021e..1edc565 100644
--- a/src/org/openbravo/retail/giftcards/hooks/OrderLoaderHookGiftCard.java
+++ b/src/org/openbravo/retail/giftcards/hooks/OrderLoaderHookGiftCard.java
@@ -42,7 +42,7 @@ public class OrderLoaderHookGiftCard extends OrderLoaderPaymentHook {
   public void exec(JSONObject jsonorder, Order order, ShipmentInOut shipment, Invoice invoice)
       throws Exception {
     // Date Time Long Value from Order Creation
- Long localCreationDate = jsonorder.getLong("created");
+ Long localCreationDate = jsonorder.optLong("created", new Date().getTime());
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0052224 closedhcurbelo Issue prepaid order from POS2 generates and EWI if gift card module is installed 

-  Notes
(0148878)
hgbot (developer)
2023-04-26 06:47

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: b3d375d38b46c6762b2ff79492d93772af7b8087
Author: HECTOR CURBELO BARRIOS <HECTOR.CURBELO@SMFCONSULTING.ES>
Date: 25-04-2023 17:24:28
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/b3d375d38b46c6762b2ff79492d93772af7b8087 [^]

Fixed ISSUE-52225: Open order and issue the order when order is to pickup in store

---
M src/org/openbravo/retail/giftcards/hooks/OrderLoaderHookGiftCard.java
---

- Issue History
Date Modified Username Field Change
2023-04-25 12:13 guilleaer Type defect => backport
2023-04-25 12:13 guilleaer Target Version => RR23Q2
2023-04-26 06:47 hgbot Resolution open => fixed
2023-04-26 06:47 hgbot Status scheduled => resolved
2023-04-26 06:47 hgbot Note Added: 0148878
2023-04-26 06:47 marvintm Review Assigned To => marvintm
2023-04-26 06:47 marvintm Status resolved => closed
2023-04-26 06:47 marvintm Fixed in Version => RR23Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker