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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0021274
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2012-08-01 08:542012-09-25 13:09
ReporterjecharriView Statuspublic 
Assigned Toadrianromero 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision1e333312bf29
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0021274: Wrong message when you do not have correctly defined taxes

DescriptionWrong message when you do not have correctly defined taxes
Steps To ReproduceLogin in the WebPOS with taxes bad configured and after create a receipt try to print.

When you push the button "Print", the function "calculateTaxes(callback)" is called (inside the file dataordertaxes.js).

If the function does not find any tax, the error "ERROR! Uncaught TypeError: Cannot read property 'length of null'" is shown, but the proper message will be "No Tax Rate Found"
Proposed SolutionOne idea can be, inside the file dataordertaxes.js change:

if (coll.length === 0) {
            throw 'No tax rate found';
}

for

if (coll == null || coll.length === 0) {
            throw 'No tax rate found';
}
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0021606 closedmigueldejuana It is necessary to define region and country to the store Organization and related Business Partner 

-  Notes
(0051046)
jecharri (developer)
2012-08-01 08:54

ticket 16401

15/10/2012 3:28 AM
(0051992)
hgbot (developer)
2012-09-11 14:07

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1e333312bf29d7f5bda37aaa3924a1794bec1c91
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Sep 11 14:06:40 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1e333312bf29d7f5bda37aaa3924a1794bec1c91 [^]

fixed issue 21274: Correct message is shown when taxes aren't found

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---

- Issue History
Date Modified Username Field Change
2012-08-01 08:54 jecharri New Issue
2012-08-01 08:54 jecharri Assigned To => adrianromero
2012-08-01 08:54 jecharri Note Added: 0051046
2012-08-02 10:53 jonalegriaesarte Assigned To adrianromero => jecharri
2012-08-08 08:49 jecharri Assigned To jecharri => adrianromero
2012-09-11 12:22 adrianromero Relationship added related to 0021606
2012-09-11 14:07 hgbot Checkin
2012-09-11 14:07 hgbot Note Added: 0051992
2012-09-11 14:07 hgbot Status new => resolved
2012-09-11 14:07 hgbot Resolution open => fixed
2012-09-11 14:07 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1e333312bf29d7f5bda37aaa3924a1794bec1c91 [^]
2012-09-25 13:09 adrianromero Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker