Openbravo Issue Tracking System - POS2
View Issue Details
0054021POS2POSpublic2023-11-24 10:572023-12-07 15:38
ifernandez 
ifernandez 
highmajoralways
closedfixed 
5
 
24Q1 
approved
No
No
0054021: Invoice can be revoked when paying a fiscalized ticket
In some of the fiscalization modules (ae: Spain/Portugal), a ticket with a total price higher than a threshold need to be sold as an invoice with some data requested to the client. This data request and invoice validation is done when clicking on the 'pay' button, before changing to the payment section.

When accessing to the payment section, this invoice can be revoked and still continue with the ticket checkout. Doing this, the ticket will be registered with the data entered in the request, but it won't be registered as an invoice.
Create a ticket using the Spain fiscalization module with more than 3000€ of total amount (20 units of Avalanche transceiver).
Click on the pay button.
Add something as name and W2024250I as Tax Id and click on OK.
In the payment window click on the X near "Issue Invoice".
Select a payment method and pay.
These are some ideas to solve this issue:

Disable this cancel Invoice on the payment window when using these modules.

Check again if the ticket is invoiced when attempting to checkout.

Don't cancel Invoice when clicking on the X, instead show a message and remain invoiced (or cancel the invoice and return to the previous window, prior to payment).
No tags attached.
png invoice.png (113,777) 2023-11-24 10:57
https://issues.openbravo.com/file_download.php?file_id=19176&type=bug
png
Issue History
2023-11-24 10:57ifernandezNew Issue
2023-11-24 10:57ifernandezAssigned To => Triage Omni OMS
2023-11-24 10:57ifernandezFile Added: invoice.png
2023-11-24 10:57ifernandezOBNetwork customer => No
2023-11-24 10:57ifernandezTriggers an Emergency Pack => No
2023-12-05 16:05hgbotMerge Request Status => open
2023-12-05 16:05hgbotNote Added: 0157970
2023-12-07 15:38hgbotMerge Request Statusopen => approved
2023-12-07 15:38hgbotResolutionopen => fixed
2023-12-07 15:38hgbotStatusnew => closed
2023-12-07 15:38hgbotFixed in Version => 24Q1
2023-12-07 15:38hgbotNote Added: 0158013
2023-12-07 15:38hgbotNote Added: 0158014
2023-12-07 15:38aferrazAssigned ToTriage Omni OMS => ifernandez

Notes
(0157970)
hgbot   
2023-12-05 16:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2279 [^]
(0158013)
hgbot   
2023-12-07 15:38   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 4c0fd309ddbe05e671d0f6b966916ad2f65f862a
Author: Íñigo Fernández <inigo.fernandez@openbravo.com>
Date: 07-12-2023 14:38:45
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/4c0fd309ddbe05e671d0f6b966916ad2f65f862a [^]

Fixes ISSUE-54021: Invoice can be revoked when paying a fiscalized ticket

---
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/IssueInvoice.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/__test__/IssueInvoice.test.js
---
(0158014)
hgbot   
2023-12-07 15:38   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2279 [^]