Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032114Retail ModulesWeb POSpublic2016-02-03 20:502016-03-11 14:04
malsasua 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
20Community Appliance
 
RR16Q2 
marvintm
No
0032114: document sequence is repeated when receipts are not processed in backend
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
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
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
No tags attached.
Issue History
2016-02-03 20:50malsasuaNew Issue
2016-02-03 20:50malsasuaAssigned To => Retail
2016-02-03 20:50malsasuaTriggers an Emergency Pack => No
2016-02-04 17:41malsasuaResolution time => 1457823600
2016-02-04 17:41malsasuaSeverityminor => major
2016-02-05 13:09OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10962#r10962
2016-02-05 13:09OrekariaProposed Solution updated
2016-02-05 13:11OrekariaProposed Solution updated
2016-02-05 13:11OrekariaStatusnew => acknowledged
2016-02-16 08:06ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-02-16 08:06ranjith_qualiantech_comStatusacknowledged => scheduled
2016-02-18 05:35hgbotCheckin
2016-02-18 05:35hgbotNote Added: 0084304
2016-02-18 05:35hgbotStatusscheduled => resolved
2016-02-18 05:35hgbotResolutionopen => fixed
2016-02-18 05:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/feee81b7cb73ec2df54bffc852ba21b6bd7c28ca [^]
2016-02-18 05:36hgbotCheckin
2016-02-18 05:36hgbotNote Added: 0084305
2016-03-11 14:04marvintmReview Assigned To => marvintm
2016-03-11 14:04marvintmStatusresolved => closed
2016-03-11 14:04marvintmFixed in Version => RR16Q2

Notes
(0084304)
hgbot   
2016-02-18 05:35   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: feee81b7cb73ec2df54bffc852ba21b6bd7c28ca
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Feb 18 10:05:10 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/feee81b7cb73ec2df54bffc852ba21b6bd7c28ca [^]

Fixes issue 32114 : Updating OBPOSError Document No to Last Document no in Terminal

Same applies for Quotation also

---
M src/org/openbravo/retail/posterminal/POSUtils.java
---
(0084305)
hgbot   
2016-02-18 05:36   
Repository: tools/automation/pi-mobile
Changeset: 0673f61ffbb16b42d720e625dc674300140f8fd4
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Feb 18 10:04:32 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/0673f61ffbb16b42d720e625dc674300140f8fd4 [^]

Verifies issue 32114: Added automated test 'I32114_VerifyDocumentNoWithPOSError'

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashmanagement/I31757_CashMgmtTrxDate.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/documentno/I32114_VerifyDocumentNoWithPOSError.java
---