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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033527
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2016-07-22 09:302016-08-01 00:14
ReporterguillermogilView Statuspublic 
Assigned Toshivum039 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision89c3e6d2156c
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

0033527: Save Delete Ticket functionality does not work if you delete an invoice

DescriptionSave Delete Ticket functionality does not work if you delete an invoice.
It goes to errors while importing window while trying to create the invoice

Caused by: java.lang.ArithmeticException: / by zero
    at java.math.BigDecimal.divideAndRound(BigDecimal.java:1424)
    at java.math.BigDecimal.divide(BigDecimal.java:1398)
    at java.math.BigDecimal.divide(BigDecimal.java:1513)
    at org.openbravo.retail.posterminal.OrderLoader.createInvoiceLine(OrderLoader.java:668)
    at org.openbravo.retail.posterminal.OrderLoader.createInvoiceLines(OrderLoader.java:834)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:383)
Steps To Reproduce* Go to the ERP / Preference Window
* Create WEBPOS Save Removed Tickets with value Y
* Login on WebPOS
* Open the menu and select Invoice this receipt
* Add a product
* Remove the ticket
* Go to the ERP / Errors While Importing

You will see there a divide by 0 error
Proposed SolutionDo not Invoice deleted tickets.
See attached diff
TagsNo tags attached.
Attached Filesdiff file icon deleteline.diff [^] (694 bytes) 2016-07-22 09:30 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0088686)
hgbot (developer)
2016-07-28 10:16

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 89c3e6d2156cb5d24cf988eb185a035591435c53
Author: Shivanand Madiwalar <shivanand.madiwalar <at> promantia.com>
Date: Thu Jul 28 13:45:36 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/89c3e6d2156cb5d24cf988eb185a035591435c53 [^]

FIxes Issue 33527 :The Proposed Approach (Attached patch) Applied To Verify "Delete Save Ticket " On Invoice .

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
(0088687)
hgbot (developer)
2016-07-28 10:16

Repository: tools/automation/pi-mobile
Changeset: 6b8fcd570a1f52fc8847d9019ab044276f55009b
Author: Shivanand Madiwalar <shivanand.madiwalar <at> promantia.com>
Date: Thu Jul 28 13:45:29 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/6b8fcd570a1f52fc8847d9019ab044276f55009b [^]

Verifies issue 33527 :The Automated Test To Verify "Delete Save Ticket" on Invoice Action .

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I33527_SaveDeleteTicketOnInvoice.java
---

- Issue History
Date Modified Username Field Change
2016-07-22 09:30 guillermogil New Issue
2016-07-22 09:30 guillermogil Assigned To => Retail
2016-07-22 09:30 guillermogil File Added: deleteline.diff
2016-07-22 09:30 guillermogil Resolution time => 1469570400
2016-07-22 09:30 guillermogil Triggers an Emergency Pack => No
2016-07-22 09:31 guillermogil Summary Delete Line functionality does not work if you delete an invoice => Save Delete Ticket functionality does not work if you delete an invoice
2016-07-22 09:31 guillermogil Description Updated View Revisions
2016-07-26 13:18 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2016-07-26 13:18 ranjith_qualiantech_com Status new => scheduled
2016-07-26 13:41 ranjith_qualiantech_com Assigned To ranjith_qualiantech_com => shivum039
2016-07-28 10:16 hgbot Checkin
2016-07-28 10:16 hgbot Note Added: 0088686
2016-07-28 10:16 hgbot Status scheduled => resolved
2016-07-28 10:16 hgbot Resolution open => fixed
2016-07-28 10:16 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/89c3e6d2156cb5d24cf988eb185a035591435c53 [^]
2016-07-28 10:16 hgbot Checkin
2016-07-28 10:16 hgbot Note Added: 0088687
2016-08-01 00:14 marvintm Review Assigned To => marvintm
2016-08-01 00:14 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker