Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0052708Openbravo LocalizationsLocalization Portugalpublic2023-06-09 08:102023-06-30 15:44
normalminorhave not tried
0052708: Simplified invoice threshold and customer data request implementation
For the Portugal certification new validations are needed when the checkout (pay button) is performed:
- The cashier needs to choose a type of customer when the amount of the ticket is more than a threshold and the full invoice has not been issued. Depending on the type of customer the cashier will be requested to generate the full invoice.
- Once the invoice has been issued, the cashier will be requested to provide some information about the customer:
Customer Name
Customer Tax ID - It adds a validation for the tax id
Customer Invoice Address
Address 1
Address 2
Zip code
- Create a new ticket
- Add a product
- Pay it
- The customer type pop up will be provided.
- If the total amount is more or equals to 1000 and the type is Final Consumer, a message requesting for issuing and invoice will be requested. If the total amount is more or equals to 100 and the customer type is not final consumer, the same message will be provided.
- Issue the invoice.
- Pay it
- A new popup requesting for the customer information will be provided. If the tax id provided is not a Portugal valid tax id, the system will provide and information message and the information will be requested again.
No tags attached.
depends on feature request 0052730 closed jonae Retail Modules Adding checkout event to fiscalization API 
blocks feature request 0052780 closed jonae Openbravo Localizations The export saft process has to get the information from the data provided and stored by the fiscalization API 
Issue History
2023-06-09 08:10jonaeNew Issue
2023-06-09 08:10jonaeAssigned To => jonae
2023-06-09 08:14hgbotNote Added: 0150970
2023-06-21 14:54aferrazRelationship addeddepends on 0052730
2023-06-21 14:54aferrazRelationship addedblocks 0052780
2023-06-26 14:28hgbotNote Added: 0151645
2023-06-26 14:29hgbotNote Added: 0151646
2023-06-30 15:40hgbotResolutionopen => fixed
2023-06-30 15:40hgbotStatusnew => resolved
2023-06-30 15:40hgbotNote Added: 0151985
2023-06-30 15:40hgbotNote Added: 0151986
2023-06-30 15:44aferrazStatusresolved => closed

2023-06-09 08:14   
Merge Request created: [^]
2023-06-26 14:28   
Merge request closed: [^]
2023-06-26 14:29   
Merge Request created: [^]
2023-06-30 15:40   
Repository: [^]
Changeset: d28a216f3d8c70a5124718e227828a057e9e67a2
Author: jonalegria <>
Date: 30-06-2023 15:39:21
URL: [^]

Fixes ISSUE-52708: Adding threshold and issue invoice validations using the fiscalization API.

A src-db/database/sourcedata/AD_MESSAGE.xml
A src-db/database/sourcedata/AD_MODULE.xml
A src-db/database/sourcedata/AD_MODULE_DBPREFIX.xml
A src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
A src-db/database/sourcedata/AD_PACKAGE.xml
A src/org/openbravo/localization/portugal/fiscalization/
A web-test/ticket/SetupTicketUtils.js
A web-test/ticket/TicketUtils-getSimplifiedInvoiceThresholdExceededDependingOnType.test.js
A web-test/ticket/TicketUtils-isPortugueseTaxId.test.js
A web-test/ticket/TicketUtils-needToValidateAmountThreshold.test.js
A web/org.openbravo.localization.portugal.fiscalization/app/model/business-object/fiscalizationEventHandler/PTFISFiscalizationEventHandler.js
A web/org.openbravo.localization.portugal.fiscalization/app/model/business-object/ticket/TicketUtils.js
2023-06-30 15:40   
Merge request merged: [^]