Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055187Retail ModulesEvents for Clientpublic2024-04-12 14:332024-04-17 09:51
jonae 
jonae 
normalminorhave not tried
closedfixed 
5
 
 
No
0055187: Avalara Connector - trigger Avalara commit based on the creation of simplified invoice
The data to be sent to Avalara will be the same as currently, but the trigger of the transaction commit into Avalara (if the parameter “Commit Openbravo Documents“ is enabled) will be based on the creation of a simplified invoice or an Invoice.

Simplified Invoice are created at sales time, if the parameter “Generate Simplified Invoice” is selected. This parameter is located in channel touchpoint type.

Invoices are created at sales time, if the seller uses the feature “Issue Invoice”.

So the commit will be executed only at sales time and as described below, if the parameter “Commit Openbravo Documents =Y”:

an order is created in the POS at checkout we call Avalara to retrieve the sales taxes.

After payment, and only in the case when an Invoice “Simplified Invoice” or “Full Invoice” properties are not null, because any of those has been created, we commit that transaction into Avalara

We need to take into account that:

Openbravo documents will not be committed in Avalara regardless of the “Commit Openbravo Documents” = Yes, if the “Generate Aggregated Invoice” parameter is enabled. This parameter is automatically selected, if the parameter “Generate Simplified Invoice” is not selected. If “Generate Aggregated Invoice” is selected, aggregated invoices are created for all sales/return at cash up. This type of aggregated invoices must not be sent to Avalara in any case.

Openbravo will support the import of legacy information import as well as Corners (so such transactions are not committed once again in Avalara) by implementing this new capability in the Avalara connector.
The data to be sent to Avalara will be the same as currently, but the trigger of the transaction commit into Avalara (if the parameter “Commit Openbravo Documents“ is enabled) will be based on the creation of a simplified invoice or an Invoice.

Simplified Invoice are created at sales time, if the parameter “Generate Simplified Invoice” is selected. This parameter is located in channel touchpoint type.

Invoices are created at sales time, if the seller uses the feature “Issue Invoice”.

So the commit will be executed only at sales time and as described below, if the parameter “Commit Openbravo Documents =Y”:

an order is created in the POS at checkout we call Avalara to retrieve the sales taxes.

After payment, and only in the case when an Invoice “Simplified Invoice” or “Full Invoice” properties are not null, because any of those has been created, we commit that transaction into Avalara

We need to take into account that:

Openbravo documents will not be committed in Avalara regardless of the “Commit Openbravo Documents” = Yes, if the “Generate Aggregated Invoice” parameter is enabled. This parameter is automatically selected, if the parameter “Generate Simplified Invoice” is not selected. If “Generate Aggregated Invoice” is selected, aggregated invoices are created for all sales/return at cash up. This type of aggregated invoices must not be sent to Avalara in any case.

Openbravo will support the import of legacy information import as well as Corners (so such transactions are not committed once again in Avalara) by implementing this new capability in the Avalara connector.
No tags attached.
Issue History
2024-04-12 14:33jonaeNew Issue
2024-04-12 14:33jonaeAssigned To => jonae
2024-04-12 14:33jonaeTriggers an Emergency Pack => No
2024-04-12 14:36hgbotNote Added: 0163157
2024-04-17 09:51hgbotResolutionopen => fixed
2024-04-17 09:51hgbotStatusnew => closed
2024-04-17 09:51hgbotNote Added: 0163308
2024-04-17 09:51hgbotNote Added: 0163309

Notes
(0163157)
hgbot   
2024-04-12 14:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector/-/merge_requests/10 [^]
(0163308)
hgbot   
2024-04-17 09:51   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector [^]
Changeset: 1d6c6e3e87de9f8f8e03fe8b6ae0164dbf82aade
Author: Jon Alegría <jon.alegria@openbravo.com>
Date: 17-04-2024 07:51:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector/-/commit/1d6c6e3e87de9f8f8e03fe8b6ae0164dbf82aade [^]

Fixes ISSUE-55187: The commit to the avalara portal will be done only in case the invoice, full or simplified, is generated

---
M src/org/openbravo/retail/avalaraconnector/edl/OBAVCODataProcessor.java
M src/org/openbravo/retail/avalaraconnector/hooks/CancelLayawayHook.java
M src/org/openbravo/retail/avalaraconnector/hooks/SendEDLRequestHook.java
M src/org/openbravo/retail/avalaraconnector/hooks/VoidLayawayHook.java
M src/org/openbravo/retail/avalaraconnector/utils/OBAVCO_Utility.java
---
(0163309)
hgbot   
2024-04-17 09:51   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector/-/merge_requests/10 [^]