Openbravo Issue Tracking System - Java Client POS | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0017888 | Java Client POS | (No Category) | public | 2011-07-05 11:29 | 2014-04-02 09:04 |
| Reporter | adrianromero | ||||
| Assigned To | adrianromero | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | 2.40 | Fixed in Version | |||
| Regression date | |||||
| Regression introduced by commit | |||||
| Regression level | |||||
| Review Assigned To | |||||
| OBNetwork customer | OBPS | ||||
| Support ticket | 11699 | ||||
| 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 | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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-05 13:10 | adrianromero | OBNetwork customer | => Yes | ||
| 2011-07-05 13:10 | adrianromero | Support ticket | => 11699 | ||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||