Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041154Retail ModulesWeb POSpublic2019-06-24 12:302019-07-12 08:14
ngarcia 
rqueralta 
highminoralways
closedfixed 
5
 
RR19Q4 
adrianromero
No
0041154: "Tax" field in the order's JSON is wrong when including a compound tax rate in a layaway, it is loaded and paid
"Tax" field in the order's JSON is wrong when including a compound tax rate in a layaway, it is loaded and paid

If you create the same order and pay it, the tax field includes the identifier of the parent tax (this is correct).
In the backoffice:
   Create the following three tax rates:
   1) Common parameters:
      Tax Category: IVA Normal
      Valid From: today
      Country: Spain
      Destination Country: Spain
      Sales/Purchase Type: Sales
   2) Specific parameters:
   2.1) PARENT
      Summary Level: Y
      Default: Y
   2) CHILD1
      Rate: 53
      Parent Tzx Rate: PARENT
   3) CHILD2
      Rate: 16
      Base Amount: Line Net Amount + Tax Amount
      Line: 20
      Parent Tax Rate: PARENT
      Tax Base: CHILD1 (you should save the record before to get the tax in the combo)

In the POS:
   Select Layaway this Receipt option
   Add a product
   Check the previously created taxes have been selected
   Layaway

   Open Receipt
   Select previously created layaway
   Pay it

In the backoffice:
   Check the Sales Order created has the correct tax rate in its lines (PARENT)
   Check the JSON of the layaway Data Import Entry window:
      The taxlines and taxes sections are correct
      The tax field includes the identifier the parent tax
   Check the JSON of the order in Data Import Entry window:
      The taxlines and taxes sections are correct
      The tax field includes the identifier of a child tax instead of the identifier of the parent tax
No tags attached.
related to defect 0038967 closed rqueralta Sum of linenet plus tax can be different than gross 
related to defect 0034856 closed ranjith_qualiantech_com Issues in Payment Method discount calculation 
diff 41154_19Q2.diff (1,242) 2019-07-04 18:34
https://issues.openbravo.com/file_download.php?file_id=13088&type=bug
Issue History
2019-06-24 12:30ngarciaNew Issue
2019-06-24 12:30ngarciaAssigned To => Retail
2019-06-24 12:30ngarciaTriggers an Emergency Pack => No
2019-06-24 12:30ngarciaIssue Monitored: networkb
2019-06-24 12:41ngarciaRelationship addedrelated to 0038967
2019-06-26 16:19ngarciaResolution time => 1563314400
2019-06-27 19:53matias-bernalIssue Monitored: matias-bernal
2019-07-04 13:58ngarciaRelationship addedrelated to 0034856
2019-07-04 18:34marvintmFile Added: 41154_19Q2.diff
2019-07-08 15:32rqueraltaAssigned ToRetail => rqueralta
2019-07-08 15:32rqueraltaStatusnew => scheduled
2019-07-10 14:46hgbotCheckin
2019-07-10 14:46hgbotNote Added: 0113254
2019-07-10 14:46hgbotStatusscheduled => resolved
2019-07-10 14:46hgbotResolutionopen => fixed
2019-07-10 14:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0cea844b849b68dfb81927e57b294cb20ebb565c [^]
2019-07-11 11:05adrianromeroReview Assigned To => adrianromero
2019-07-11 11:05adrianromeroNote Added: 0113268
2019-07-11 11:05adrianromeroStatusresolved => closed
2019-07-11 11:05adrianromeroFixed in Version => RR19Q4
2019-07-11 15:32hgbotCheckin
2019-07-11 15:32hgbotNote Added: 0113290
2019-07-11 15:32hgbotStatusclosed => resolved
2019-07-11 15:32hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0cea844b849b68dfb81927e57b294cb20ebb565c [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/0cea844b849b68dfb81927e57b294cb20ebb565c [^]
2019-07-12 08:14guilleaerNote Deleted: 0113290
2019-07-12 08:14guilleaerNote Added: 0113320
2019-07-12 08:14guilleaerStatusresolved => closed

Notes
(0113254)
hgbot   
2019-07-10 14:46   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0cea844b849b68dfb81927e57b294cb20ebb565c
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Mon Jul 08 17:23:49 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0cea844b849b68dfb81927e57b294cb20ebb565c [^]

Fixed issue 41154: "Tax" field in the order's JSON is wrong when including a
compound tax rate in a layaway, it is loaded and paid

- Added taxId property into the hql query

---
M src/org/openbravo/retail/posterminal/PaidReceiptLinesProperties.java
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---
(0113268)
adrianromero   
2019-07-11 11:05   
Verified
(0113320)
guilleaer   
2019-07-12 08:14   
reclosed