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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032363
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorsometimes2016-02-26 13:172016-03-17 17:25
ReporteradrianromeroView Statuspublic 
Assigned Toadrianromero 
PrioritynormalResolutionfixedFixed in VersionRR16Q2
StatusclosedFix in branchFixed in SCM revision73e38cb7b246
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0032363: If taxes calculation fails, the receipt cannot be imported in the server side

DescriptionIf the preference "Save Deleted Ticket" is activated, and an error calculating taxes appear, if the receipt is completed the order cannot be imported and the following error goes to "Errors while importing POS data"

org.openbravo.base.exception.OBException: Error in OrderLoader:
        at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:439)
        at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:206)
        at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:163)
        at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:95)
        at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:41)
        at org.openbravo.retail.posterminal.importprocess.OrderImportEntryProcessor$OrderLoaderRunnable.processEntry(OrderImportEntryProcessor.java:59)
        at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:370)
        at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:292)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:701)
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("TAD"."C_ORDERLINE"."C_TAX_ID")

The reason is that when a taxes error appears and the preference "Save Deleted Ticket" is activated, the line with the error is stored locally with taxID null and this order cannot be stored because of database constraint
Steps To Reproduce1. Activate preference "Save Deleted Ticket"
2. Go to Web POS and force a taxes calculation error
3. Solve it and in the same receipt add other products and close the receipt
4. Verify the window "Errors while importing POS Data and check the error saving the order
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0084762)
hgbot (developer)
2016-03-07 11:47

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 73e38cb7b2460bef89776aa91e653578e8eefaa4
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Feb 26 13:20:07 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/73e38cb7b2460bef89776aa91e653578e8eefaa4 [^]

Fixes issue 0032363: If taxes calculation fails, the receipt cannot be imported in the server side
* Lines deleted because of taxes error are never stored

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

- Issue History
Date Modified Username Field Change
2016-02-26 13:17 adrianromero New Issue
2016-02-26 13:17 adrianromero Assigned To => Retail
2016-02-26 13:17 adrianromero Triggers an Emergency Pack => No
2016-02-26 13:18 adrianromero Review Assigned To => marvintm
2016-02-26 13:18 adrianromero Assigned To Retail => adrianromero
2016-02-26 13:18 adrianromero Status new => scheduled
2016-03-07 11:47 hgbot Checkin
2016-03-07 11:47 hgbot Note Added: 0084762
2016-03-07 11:47 hgbot Status scheduled => resolved
2016-03-07 11:47 hgbot Resolution open => fixed
2016-03-07 11:47 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/73e38cb7b2460bef89776aa91e653578e8eefaa4 [^]
2016-03-17 17:25 marvintm Status resolved => closed
2016-03-17 17:25 marvintm Fixed in Version => RR16Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker