Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0017888 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Java Client POS] (No Category) | minor | always | 2011-07-05 11:29 | 2014-04-02 09:04 | |||
Reporter | adrianromero | View Status | public | |||||
Assigned To | adrianromero | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | f24c6f2c173f | ||||
Projection | none | ETA | none | Target Version | 2.40 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Regression date | ||||||||
Regression introduced by commit | ||||||||
Regression level | ||||||||
Review Assigned To | ||||||||
Regression introduced in release | ||||||||
Summary | 0017888: Taxes are calculated only when closing the receipt | |||||||
Description | Taxes must be calculated not only when closing the receipt but also when printing the receipt preview or other general actions in the receipt. | |||||||
Steps To Reproduce | * Edit the template Printer.TicketPreview and add: #foreach ($taxinfo in $taxes) #set( $taxline = $ticket.getTaxLine($taxinfo)) <line> <text align ="left" length="18">${taxline.getTaxInfo()}</text> <text align ="right" length="12">${taxline.printSubTotal()}</text> <text align ="right" length="12">${taxline.printTax()}</text> </line> #end * Restart the application * Go to the sales panel and press the button "Print" * It appears the following error because taxes has not been calculated yet: com.openbravo.pos.scripting.ScriptException: Invocation of method 'getTaxLine' in class com.openbravo.pos.ticket.TicketInfo threw exception java.lang.NullPointerException @ log[115,34] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTaxLine' in class com.openbravo.pos.ticket.TicketInfo threw exception java.lang.NullPointerException @ log[115,34] java.lang.NullPointerException: null | |||||||
Proposed Solution | call in JPanelTicket the function that calculates taxes also when executing scripting actions | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0039195) hgbot (developer) 2011-07-18 18:56 |
Repository: pos/devel/pi Changeset: f24c6f2c173f05faccfdc5dbc5e70aceb42f28d7 Author: Adrián Romero <adrianromero <at> openbravo.com> Date: Mon Jul 18 18:56:19 2011 +0200 URL: http://code.openbravo.com/pos/devel/pi/rev/f24c6f2c173f05faccfdc5dbc5e70aceb42f28d7 [^] Fixes issue 0017888: Taxes are calculated only when closing the receipt It has been modified the business logic to invoke the taxes calculation also when pressing button actions like printing the ticket preview --- M src-pos/com/openbravo/pos/sales/JPanelTicket.form M src-pos/com/openbravo/pos/sales/JPanelTicket.java --- |
(0039196) adrianromero (manager) 2011-07-18 18:59 |
* Testing the issue Kindly follow the steps to test and verify that now when printing the ticket preview no error is raised and the taxes are properly calculated and displayed in the ticket preview. * Other areas affected It has only been modified the moment when calculating taxes in the sales panel. No other areas affected. |
(0041578) thesubmitter (reporter) 2011-10-11 05:24 |
Not sure if this is the same bug but I noticed in 2.30_2 stable the preview doesn't print out the individual taxes. I tried to backport this code the stable version and still had no luck. |
(0066030) plujan (manager) 2014-04-02 09:04 |
Closed as it was in Resolved for too long |
Issue History | |||
Date Modified | Username | Field | Change |
2011-07-05 11:29 | adrianromero | New Issue | |
2011-07-05 11:29 | adrianromero | Assigned To | => adrianromero |
2011-07-18 18:56 | hgbot | Checkin | |
2011-07-18 18:56 | hgbot | Note Added: 0039195 | |
2011-07-18 18:56 | hgbot | Status | new => resolved |
2011-07-18 18:56 | hgbot | Resolution | open => fixed |
2011-07-18 18:56 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/pos/devel/pi/rev/f24c6f2c173f05faccfdc5dbc5e70aceb42f28d7 [^] |
2011-07-18 18:59 | adrianromero | Note Added: 0039196 | |
2011-10-11 05:24 | thesubmitter | Note Added: 0041578 | |
2012-11-07 09:40 | priyam | Category | 01 - General => (No Category) |
2014-04-02 09:04 | plujan | Note Added: 0066030 | |
2014-04-02 09:04 | plujan | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |