Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031113Retail ModulesWeb POSpublic2015-10-08 17:562015-10-23 14:38
daniOpenbravo 
Orekaria 
highmajoralways
closedfixed 
3014.04
pi 
RR16Q1 
marvintm
No
0031113: Error shown in Web POS when loading quotations/layaways/receipts when Sales Representative is null.
An error is shown in Web POS when we try to load a quotation/layaway/receipt if in backend the field Sales Representative is empty.
A)
0. log into the webpos
1. create a new receipt with an empty sales representative
2. pay the receipt
3. in the menu, open the receipt option. open the previously created receipt
4. verify that the webpos is blocked in the loading screen

B)
1. Log in Web POS (user vallblanca).
2. Go to menu and select "Create quotation" option.
3. Click on search button and add a product.
4. Validate the quotation.
5. Log in the ERP.
6. Go to Sales Quotation window and search the quotation created on step 4.
7. Left Sales Representative field empty and save the record.
8. Log in again in Web POS (user vallblanca).
9. Go to menu and select "Quotation" option.
10. Load the quotation created on step 4.
11. Check that an error is shown and Web POS is blocked.

In PaidReceipts.java file, when the code get the orderId, try to join with SalesRepresentative or in PaidReceiptProperties file, replace the following line: add(new HQLProperty("ord.salesRepresentative.id", "salesRepresentative"));
with this code:
add(new HQLProperty("case when ord.salesRepresentative is null then '' else ord.salesRepresentative.id end", "salesRepresentative"));
No tags attached.
depends on defect 0030806 closed jorge-garcia The default sales representative is by default the current logged user, even if it not a Sales representative 
png errorPOS.png (289,801) 2015-10-08 17:56
https://issues.openbravo.com/file_download.php?file_id=8545&type=bug
patch 5260.patch (2,684) 2015-10-19 17:55
https://issues.openbravo.com/file_download.php?file_id=8580&type=bug
Issue History
2015-10-08 17:56daniOpenbravoNew Issue
2015-10-08 17:56daniOpenbravoAssigned To => Retail
2015-10-08 17:56daniOpenbravoFile Added: errorPOS.png
2015-10-08 17:56daniOpenbravoTriggers an Emergency Pack => No
2015-10-08 17:57guillermogilResolution time => 1444860000
2015-10-08 17:59guillermogilRelationship addedrelated to 0030806
2015-10-08 18:35OrekariaRelationship replaceddepends on 0030806
2015-10-08 18:36OrekariaStatusnew => acknowledged
2015-10-08 18:38OrekariaSeveritymajor => minor
2015-10-08 18:38OrekariaStatusacknowledged => scheduled
2015-10-08 18:39OrekariaStatusscheduled => resolved
2015-10-08 18:39OrekariaResolutionopen => fixed
2015-10-08 18:39OrekariaStatusresolved => new
2015-10-08 18:39OrekariaResolutionfixed => open
2015-10-08 18:41OrekariaAssigned ToRetail => dbaz
2015-10-14 12:00OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9691#r9691
2015-10-14 12:00OrekariaAssigned Todbaz => Retail
2015-10-14 12:07OrekariaSeverityminor => major
2015-10-14 12:07OrekariaStatusnew => acknowledged
2015-10-19 14:50OrekariaFile Added: 5260.patch
2015-10-19 17:55OrekariaFile Deleted: 5260.patch
2015-10-19 17:55OrekariaFile Added: 5260.patch
2015-10-20 15:45hgbotCheckin
2015-10-20 15:45hgbotNote Added: 0081138
2015-10-20 15:45hgbotStatusacknowledged => resolved
2015-10-20 15:45hgbotResolutionopen => fixed
2015-10-20 15:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6f7f3eef8cced471c003e0e98f2ea667936fbb42 [^]
2015-10-20 15:45hgbotCheckin
2015-10-20 15:45hgbotNote Added: 0081139
2015-10-20 15:46OrekariaReview Assigned To => marvintm
2015-10-23 10:29marvintmAssigned ToRetail => Orekaria
2015-10-23 14:38marvintmStatusresolved => closed
2015-10-23 14:38marvintmFixed in Version => RR16Q1

Notes
(0081138)
hgbot   
2015-10-20 15:45   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6f7f3eef8cced471c003e0e98f2ea667936fbb42
Author: Rafa Alonso <ral <at> openbravo.com>
Date: Mon Oct 19 17:53:41 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6f7f3eef8cced471c003e0e98f2ea667936fbb42 [^]

Fixes issue 31113: Allow empty sales representatives when retrying paid receipts

---
M src/org/openbravo/retail/posterminal/PaidReceiptProperties.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0081139)
hgbot   
2015-10-20 15:45   
Repository: tools/automation/pi-mobile
Changeset: 07eab1519a47ec1466a3e7bad3688a725b25d2d0
Author: Rafa Alonso <ral <at> openbravo.com>
Date: Mon Oct 19 15:55:25 2015 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/07eab1519a47ec1466a3e7bad3688a725b25d2d0 [^]

Verifies issue 31113: Added the 'I31113_RetrieveReceiptWithEmptySalesRepresentative' test

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