Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0049286 | POS2 | POS | public | 2022-05-10 18:06 | 2022-05-20 08:56 |
Reporter | jmelin | ||||
Assigned To | Retail | ||||
Priority | urgent | Severity | critical | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0049286: JIRA 2974 - Credit note - Can't import an order with credit note payment | ||||
Description | When “Use credit note once” is checked in BO then the following error when importing the order where the credit note is used: java.lang.Exception: GCNV_ErrorGiftCardClosed:XXXD/XXXXX org.openbravo.retail.giftcards.GiftCardModel.consumeAmountGiftCard(GiftCardModel.java:283)at org.openbravo.retail.giftcards.GiftCardModel.populateGiftCardTransaction(GiftCardModel.java:503) | ||||
Steps To Reproduce | This is not reproducible on build env only customer env Create an order and do an overpayment using "Ticket CRT" Note the credit note id Create a new order and pay using the credit note (complete with other payment method if necessary) => KO, in BO, the order is not loaded because of the error java.lang.Exception: GCNV_ErrorGiftCardClosed:XXXD/XXXXX Note: If you unchecked the filed "Use credit note once" for the org, then you can import the order | ||||
Proposed Solution | The credit note closing logic was in a separate order loader hook (OrderLoaderHookCreditNote). There is another orderloader: OrderLoaderHookGiftcard, which consumes the giftcard. If this OrderLoaderHookGiftcard was executed after the OrderLoaderHookCreditNote then an error is thrown. The solution is to move the code of the OrderLoaderHookCreditNote inside the OrderLoaderHookGiftcard to control the order of execution. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-05-10 18:06 | jmelin | New Issue | |||
2022-05-10 18:06 | jmelin | Assigned To | => Retail | ||
2022-05-10 18:06 | jmelin | Triggers an Emergency Pack | => No | ||
2022-05-19 16:06 | hgbot | Note Added: 0137543 | |||
2022-05-19 17:01 | mtaal | Note Added: 0137546 | |||
2022-05-19 17:01 | mtaal | Status | new => scheduled | ||
2022-05-19 17:01 | mtaal | Status | scheduled => resolved | ||
2022-05-19 17:01 | mtaal | Resolution | open => fixed | ||
2022-05-19 20:35 | hgbot | Status | resolved => closed | ||
2022-05-19 20:35 | hgbot | Note Added: 0137547 | |||
2022-05-19 20:35 | hgbot | Note Added: 0137548 | |||
2022-05-20 08:56 | mtaal | Proposed Solution updated |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|