Openbravo Issue Tracking System - Retail Modules
View Issue Details
0024993Retail ModulesQuotationspublic2013-10-23 07:272013-12-05 12:10
sureshbabu 
guilleaer 
normalminoralways
closedfixed 
5
 
RMP28 
marvintm
No
No
0024993: RMP28: Tax amount wrongly calculated when sales order is created from quotation without selecting the option "Firm Quotation"
Tax amount wrongly calculated when sales order is created from quotation without selecting the option "Firm Quotation"
  Login to POS terminal, go to the login URL: http://{server}/{context}/web/org.openbravo.retail.posterminal/?VBS-1 [^]

Enter login credentials:

"Username": vallblanca
"Password": openbravo
The POS window will appear.

From menu options, select “Create Quotation”

Verify “Quotation –Draft” text appears in the receipt

To add product click “Browse” button

Then select “Backpacks & Travel” category

And from the product list select

Product: Adhesive body warmers
Quantity: 5 numbers
And verify the below details

Product: Adhesive body warmers
Quantity: 5
Unit Price: 3.60
Total line amount: 18.00
Total Gross Amount: 18.00
Tax Breakdown

Tax percentage: Entregas IVA 21%
Taxable Amount: 14.88
Total Tax amount: 3.12
Then change the price of the product from “3.60” to “3.00”

And verify the below details in the POS screen

Product: Adhesive body warmers
Quantity: 5
Unit Price: 3.00
Total line amount: 15.00
Total Gross Amount: 15.00
Tax Breakdown

Tax percentage: Entregas IVA 21%
Taxable Amount: 12.40
Total Tax amount: 2.60
To complete the Quotation tap on the “Total” amount

Verify status of the quotation changes from “Quotation –Draft” to “Quotation –Under Evaluation”

 Verify the success message appears in the screen

SUCCESS
Quotation no: xxxxx/yyyyyyyy has been created successfully
Then from main menu, select “Create Sales order” option

Then in the popup,

Uncheck “Firm Quotation” option
Click “Create Sales Order” to confirm the action
 Verify the success message appears in the screen

SUCCESS
A Sales order has been created from quotation successfully
Verify sales order document details

Product: Adhesive body warmers
Quantity: 5
Unit Price: 3.60 (price details will be picked from the pricelist from the backend system, instead of from quotation)
Total line amount: 18.00
Total Gross Amount: 18.00
Tax Breakdown

Defect: Tax amount wrongly calculated

Expected Tax amount:

Tax percentage: Entregas IVA 21%
Taxable Amount: 14.88
Total Tax amount: 3.12

Actual Tax amount:
Tax percentage: Entregas IVA 21%
Taxable Amount: 12.40
Total Tax amount: 5.60
No tags attached.
png Tax amount is wrongly calculated, when sales order is created from quotation after unselecting the option “Firm Quotation”.png (188,408) 2013-10-23 07:27
https://issues.openbravo.com/file_download.php?file_id=6457&type=bug
png
Issue History
2013-10-23 07:27sureshbabuNew Issue
2013-10-23 07:27sureshbabuAssigned To => guilleaer
2013-10-23 07:27sureshbabuFile Added: Tax amount is wrongly calculated, when sales order is created from quotation after unselecting the option “Firm Quotation”.png
2013-10-23 07:27sureshbabuOBNetwork customer => No
2013-10-23 07:27sureshbabuTriggers an Emergency Pack => No
2013-10-25 13:06guilleaerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5154#r5154
2013-10-25 14:10guilleaerStatusnew => scheduled
2013-10-25 14:10guilleaerfix_in_branch => pi
2013-10-25 14:10guilleaerNote Added: 0061906
2013-10-25 14:10guilleaerStatusscheduled => resolved
2013-10-25 14:10guilleaerFixed in Version => RMP28
2013-10-25 14:10guilleaerResolutionopen => fixed
2013-10-25 16:46guilleaerNote Added: 0061908
2013-10-29 17:29marvintmReview Assigned To => marvintm
2013-10-29 17:29marvintmNote Added: 0061945
2013-10-29 17:29marvintmStatusresolved => closed
2013-10-31 18:15hgbotCheckin
2013-10-31 18:15hgbotNote Added: 0062007
2013-11-18 12:53hgbotCheckin
2013-11-18 12:53hgbotNote Added: 0062191
2013-12-05 12:10hgbotCheckin
2013-12-05 12:10hgbotNote Added: 0062559

Notes
(0061906)
guilleaer   
2013-10-25 14:10   
Resolved by this commit
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1d46b5f15ff4 [^]
(0061908)
guilleaer   
2013-10-25 16:46   
this commit also affects to this issue
http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fa29b692d3940002932a219bd577b6c8b0dda26e [^]
(0061945)
marvintm   
2013-10-29 17:29   
Now the fix is correct. It's important to mention that in fact the expected (and after the fix, obtained) results are actually the following:


Tax percentage: Entregas IVA 21%
Taxable Amount: 14.90
Total Tax amount: 3.10
(0062007)
hgbot   
2013-10-31 18:15   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: fe0d08a06c4a12cd18b4f5358db34576140ae611
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Oct 31 16:18:14 2013 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fe0d08a06c4a12cd18b4f5358db34576140ae611 [^]

fixed issue 25055, related to issue 24994, related to issue 24993: quotation with discounts is working fine

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0062191)
hgbot   
2013-11-18 12:53   
Repository: erp/pmods/org.openbravo.retail.posterminal-splitlines
Changeset: fe0d08a06c4a12cd18b4f5358db34576140ae611
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Oct 31 16:18:14 2013 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-splitlines/rev/fe0d08a06c4a12cd18b4f5358db34576140ae611 [^]

fixed issue 25055, related to issue 24994, related to issue 24993: quotation with discounts is working fine

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0062559)
hgbot   
2013-12-05 12:10   
Repository: erp/pmods/org.openbravo.retail.posterminal.cirque
Changeset: fe0d08a06c4a12cd18b4f5358db34576140ae611
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Oct 31 16:18:14 2013 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.cirque/rev/fe0d08a06c4a12cd18b4f5358db34576140ae611 [^]

fixed issue 25055, related to issue 24994, related to issue 24993: quotation with discounts is working fine

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---