Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0032114 | Retail Modules | Web POS | public | 2016-02-03 20:50 | 2016-03-11 14:04 |
Reporter | malsasua | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | Community Appliance | |
Product Version | |||||
Target Version | Fixed in Version | RR16Q2 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | OBPS | ||||
Support ticket | 40482 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0032114: document sequence is repeated when receipts are not processed in backend | ||||
Description | when the receipts are not processed in backend (they are stored in errors while importing window), and the cache of terminal is cleaned, the next document number calculated to the next receipt is repeated | ||||
Steps To Reproduce | A) . execute this query in the db: update c_bpartner set invoicerule=null where c_bpartner_id = 'ABD91C9D3BC94175B876FBBE9CACA008'; . create a new receipt, add a product, finish it . verify that in the 'errors while importing data' windows, there is a new error B) in backoffice . close the period, so the receipts will not be processed and they will be stored in errors while importing window in webpos . create and paid new receipt (doc no: X) . create and paid new receipt (doc no: X+1) . create and paid new receipt (doc no: X+2) the receipts are synced with backoffice . clean the terminal cache . create new receipt: the new receipt is created with the document number: X | ||||
Proposed Solution | There is supposed to be some logic to get the docno from the errors while importing data table There is a variable that keeps the lastDocumentNumber in the server This should also be verified for quotations Test suggestions To create the test, implement a try finally block: boolean isTestSuccessful = false try { execute "update c_bpartner set invoicerule = null where c_bpartner_id = 'ABD91C9D3BC94175B876FBBE9CACA008' and name ='"VBS Customer';" create a sale with the default VBS Customer verify that there is an error in the import table restoreDatabase() create a new sale verify that the docno has increased properly } finally { if(!isTestSuccessful) { restoreDatabase() } } void restoreDatabase() { execute "update c_bpartner set invoicerule = 'I' where c_bpartner_id = 'ABD91C9D3BC94175B876FBBE9CACA008' and name ='"VBS Customer'" } Create the same test with quotations | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-02-03 20:50 | malsasua | New Issue | |||
2016-02-03 20:50 | malsasua | Assigned To | => Retail | ||
2016-02-03 20:50 | malsasua | OBNetwork customer | => Yes | ||
2016-02-03 20:50 | malsasua | Support ticket | => 40482 | ||
2016-02-03 20:50 | malsasua | Triggers an Emergency Pack | => No | ||
2016-02-04 17:41 | malsasua | Resolution time | => 1457823600 | ||
2016-02-04 17:41 | malsasua | Severity | minor => major | ||
2016-02-05 13:09 | Orekaria | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=10962#r10962 | ||
2016-02-05 13:09 | Orekaria | Proposed Solution updated | |||
2016-02-05 13:11 | Orekaria | Proposed Solution updated | |||
2016-02-05 13:11 | Orekaria | Status | new => acknowledged | ||
2016-02-16 08:06 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2016-02-16 08:06 | ranjith_qualiantech_com | Status | acknowledged => scheduled | ||
2016-02-18 05:35 | hgbot | Checkin | |||
2016-02-18 05:35 | hgbot | Note Added: 0084304 | |||
2016-02-18 05:35 | hgbot | Status | scheduled => resolved | ||
2016-02-18 05:35 | hgbot | Resolution | open => fixed | ||
2016-02-18 05:35 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/feee81b7cb73ec2df54bffc852ba21b6bd7c28ca [^] | ||
2016-02-18 05:36 | hgbot | Checkin | |||
2016-02-18 05:36 | hgbot | Note Added: 0084305 | |||
2016-03-11 14:04 | marvintm | Review Assigned To | => marvintm | ||
2016-03-11 14:04 | marvintm | Status | resolved => closed | ||
2016-03-11 14:04 | marvintm | Fixed in Version | => RR16Q2 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|