Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032853Retail ModulesWeb POSpublic2016-05-04 11:402016-06-03 15:01
shivum039 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR16Q2RR16Q2 
marvintm
Coding ( Testing )
main
No
0032853: [RR16Q2] [SERVICES] Edit Tool-Bar Buttons Are not Hidden when There is receipt with no Products Added To It.
Edit Tool-Bar Buttons Are not Hidden when There is receipt with no Products Added.
Here no Buttons Should Be Visible when Receipt without Products Added to It (See the Attached Screen Shot i.e Currect.png) . But the Buttons Are Visible (See the Attached Screen Shot incurrect.png) .
1) Login into Pos Window .

2) Click on Edit (Verify that No Buttons Are visible i.e delete,description,returnLine,Check Stock)

3) Add Product "Avalanche transceiver "

4) Click on Just Added Product .

5) Verify That All Buttons in the Edit Tool bar are Visible .

6) Delete the Receipt .

7) Click on Edit Button bar .

8) Observe the Visible Buttons in the Right side (Edit Tool Bar Buttons) .

9)Click on delete Button (Edit Tool bar)

10) Several javascript errors are shown (see attached screenshot)
Nothing should be shown (see currect.png attached screenshot)
No tags attached.
blocks defect 0032850 closed ranjith_qualiantech_com [RR16Q2] [SERVICES] Edit Tool-Bar Buttons Are not Hidden when There is receipt with no Products Added To It. 
Issue History
2016-05-04 12:52OrekariaTypedefect => backport
2016-05-04 12:52OrekariaTarget Version => RR16Q2
2016-06-03 08:05ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-06-03 08:09hgbotCheckin
2016-06-03 08:09hgbotNote Added: 0086972
2016-06-03 08:09hgbotStatusscheduled => resolved
2016-06-03 08:09hgbotResolutionopen => fixed
2016-06-03 08:09hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/d838bd868d2d1fbebb4bf5fc8effbd243f9a5815 [^]
2016-06-03 15:01marvintmReview Assigned To => marvintm
2016-06-03 15:01marvintmStatusresolved => closed
2016-06-03 15:01marvintmFixed in Version => RR16Q2

Notes
(0086972)
hgbot   
2016-06-03 08:09   
Repository: retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal
Changeset: d838bd868d2d1fbebb4bf5fc8effbd243f9a5815
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jun 03 11:38:44 2016 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/d838bd868d2d1fbebb4bf5fc8effbd243f9a5815 [^]

Fixes issue 32853 : Hide Edit tab buttons when the receipt is empty

- SelectedModels & line has to be reset whenever the receipt line length is changed. So receipt Change event has been added to verify the receipt length

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/editline.js
---