Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0057695Openbravo LocalizationsLocalization Portugalpublic2025-01-20 14:142025-01-21 10:03
frank_gonzalez 
frank_gonzalez 
normalmajoralways
closedfixed 
5
 
 
0057695: Alternate invoice proposed unexpectedly when forcing a full invoice issuing
Following the last updates regarding the POS flows for Portugal (see https://openbravo.atlassian.net/browse/RM-19552 [^]), there are some scenarios in which the full invoice is forced automatically (following thresholds, BP type, etc.).

The ‘Propose Alternate Template’ is set (flag at touchpoint type + defined template at organization level) to make the system propose an alternate template when issuing a concrete document type.

The system is not considering the full invoice automatic issuing when displaying the alternate invoice popup. It means that, even if a full invoice issuing is forced, the alternate template popup is still displayed even if not expected for full invoices.

Please consider the related issue: https://openbravo.atlassian.net/browse/RM-20425 [^]
 
- In the backoffice, mark the ‘Propose Alternate Simplified Invoice in POS’ and define an alternate template for simplified invoices in the Organization window. Make sure no alternate template is set for full invoices.
- Login a PT POS.
- Perform a sale >100€.
- You’ll be required to inform the BP Type, search/insert customer data, and you’ll be informed a full invoice is going to be issued.
- Perform the payment and complete the sale.
- Check that the alternate template popup is shown even if it is not expected.
No tags attached.
Issue History
2025-01-20 14:14frank_gonzalezNew Issue
2025-01-20 14:14frank_gonzalezAssigned To => frank_gonzalez
2025-01-20 14:21hgbotNote Added: 0174409
2025-01-21 10:03hgbotResolutionopen => fixed
2025-01-21 10:03hgbotStatusnew => closed
2025-01-21 10:03hgbotNote Added: 0174457
2025-01-21 10:03hgbotNote Added: 0174458

Notes
(0174409)
hgbot   
2025-01-20 14:21   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.portugal.fiscalization/-/merge_requests/150 [^]
(0174457)
hgbot   
2025-01-21 10:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.portugal.fiscalization [^]
Changeset: b382fee56cc25f789a51d8b1d6f332e579b62b72
Author: Frank González <f.gonzalez@orisha.com>
Date: 21-01-2025 09:03:03
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.portugal.fiscalization/-/commit/b382fee56cc25f789a51d8b1d6f332e579b62b72 [^]

Fixes ISSUE-57695: Alternate invoice proposed unexpectedly when forcing a full invoice issuing

---
A web/org.openbravo.localization.portugal.fiscalization/source/ticket/actions/CheckoutTicket.js
M src/org/openbravo/localization/portugal/fiscalization/PTFISComponentProvider.java
M web-jspack/org.openbravo.localization.portugal.fiscalization/src/events/PTFISFiscalizationEventHandler.js
---
(0174458)
hgbot   
2025-01-21 10:03   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.portugal.fiscalization/-/merge_requests/150 [^]