Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033836
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2016-08-03 12:562016-10-05 12:39
ReportermalsasuaView Statuspublic 
Assigned Tomigueldejuana 
PriorityimmediateResolutionfixedFixed in VersionRR16Q2.3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR16Q2.3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression levelProduction - Confirmed Stable
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033836: wrong "net unit price" with tax include taxes and price precision 6

Descriptionwhen the pricelist is configured with price include taxes, the tax is set as "Document based amount by rate" in "Document based amount by rate" field, the price precision is 6, POS precision 2, then the "net unit price" calculated in sales order line is wrong.

For this reason, the invoice created by cashup is set as not paid, with outstanding amount 0.01$


Steps To Reproducein backoffice:
. price list version: "The White Valley Group Sale Price List Version"
  . product Alpine Poles: unit price and list price: 117
  . product Alpine Ski Boot: unit price and list price: 117
. as system administrator, go to Currency window:
 . currency EUR: price precision: 6
                 POS precision: 2

in POS
. new receipt:
 . Alpine Poles: 1 unit
 . Alpine Ski Poles: 3 units
. pay it
. do cashup

in backoffice:
. go to sales order window, receipt created in above step
line1: "net unit price": 96.69
line2: "net unit price": 96.70
>>>Error: the "net unit price" should be 96.69 in the two lines, as it is explained in http://wiki.openbravo.com/wiki/How_Price_Including_Taxes_are_Calculated [^]

. go to sales invoice window, invoice created by cashup
>>>Error: invoice is set as payment complete: No, outstanding amt 0.01, total gross amount is wrong.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0033611 closedmigueldejuana wrong "net unit price" with tax include taxes and price precision 6 

-  Notes
(0090158)
hgbot (developer)
2016-09-22 12:21

Repository: retail/backports/3.0RR16Q2.3/pi-mobile
Changeset: ddf5d9469812411523fe4381bcba681613a29ebe
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Sep 22 12:14:58 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.3/pi-mobile/rev/ddf5d9469812411523fe4381bcba681613a29ebe [^]

Related to issue 0033836: wrong "net unit price" with tax include taxes and price precision 6

- Checking invoice, check also: totalNet + totalTaxAmount = totalGross

---
M src-test/org/openbravo/test/mobile/common/selenium/database/InvoiceLinesOfDocumentnoRow.java
M src-test/org/openbravo/test/mobile/common/selenium/database/WebPOSDatabaseHelper.java
---
(0090159)
hgbot (developer)
2016-09-22 12:21

Repository: retail/backports/3.0RR16Q2.3/pi-mobile
Changeset: ac890f93aaedc398fee9ba01e938958ff65b97f6
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Sep 22 12:15:32 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.3/pi-mobile/rev/ac890f93aaedc398fee9ba01e938958ff65b97f6 [^]

Related to issue 0033836: wrong "net unit price" with tax include taxes and price precision 6

- Allow to check invoice with more than one line
- Add the test

---
M src-test/org/openbravo/test/mobile/common/selenium/database/WebPOSDatabaseHelper.java
---
(0090160)
hgbot (developer)
2016-09-22 12:21

Repository: retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal
Changeset: c93525e5e52c32f724aa9721a9275c3aede8250d
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Sep 22 12:01:25 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal/rev/c93525e5e52c32f724aa9721a9275c3aede8250d [^]

Fixed to issue 0033836: wrong "net unit price" with tax include taxes and price precision 6

- If totalines + totalTaxAmount != grandTotalAmount we have to adjust taxes so we choose the tax with more amount to adjust the invoice

---
M src/org/openbravo/retail/posterminal/OrderGroupingProcessor.java
---
(0090493)
hgbot (developer)
2016-10-05 12:39

Repository: tools/automation/pi-mobile
Changeset: ddf5d9469812411523fe4381bcba681613a29ebe
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Sep 22 12:14:58 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/ddf5d9469812411523fe4381bcba681613a29ebe [^]

Related to issue 0033836: wrong "net unit price" with tax include taxes and price precision 6

- Checking invoice, check also: totalNet + totalTaxAmount = totalGross

---
M src-test/org/openbravo/test/mobile/common/selenium/database/InvoiceLinesOfDocumentnoRow.java
M src-test/org/openbravo/test/mobile/common/selenium/database/WebPOSDatabaseHelper.java
---
(0090494)
hgbot (developer)
2016-10-05 12:39

Repository: tools/automation/pi-mobile
Changeset: ac890f93aaedc398fee9ba01e938958ff65b97f6
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Sep 22 12:15:32 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/ac890f93aaedc398fee9ba01e938958ff65b97f6 [^]

Related to issue 0033836: wrong "net unit price" with tax include taxes and price precision 6

- Allow to check invoice with more than one line
- Add the test

---
M src-test/org/openbravo/test/mobile/common/selenium/database/WebPOSDatabaseHelper.java
---

- Issue History
Date Modified Username Field Change
2016-08-29 10:30 migueldejuana Type defect => backport
2016-08-29 10:30 migueldejuana Target Version => RR16Q2.3
2016-09-22 12:21 hgbot Checkin
2016-09-22 12:21 hgbot Note Added: 0090158
2016-09-22 12:21 hgbot Checkin
2016-09-22 12:21 hgbot Note Added: 0090159
2016-09-22 12:21 hgbot Checkin
2016-09-22 12:21 hgbot Note Added: 0090160
2016-09-22 13:37 migueldejuana Status scheduled => resolved
2016-09-22 13:37 migueldejuana Resolution open => fixed
2016-09-27 09:27 guilleaer Review Assigned To adrianromero => guilleaer
2016-09-27 09:27 guilleaer Status resolved => closed
2016-09-27 09:27 guilleaer Fixed in Version => RR16Q2.3
2016-10-05 12:39 hgbot Checkin
2016-10-05 12:39 hgbot Note Added: 0090493
2016-10-05 12:39 hgbot Checkin
2016-10-05 12:39 hgbot Note Added: 0090494


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker