Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032243Retail ModulesWeb POSpublic2016-02-15 22:042019-02-06 15:35
agete 
ranjith_qualiantech_com 
highminoralways
closedfixed 
5
 
RR16Q2 
marvintm
No
0032243: [SERQA 692] Javscript error when adding a manual discount
"Promotion and Discount: If we insert a manual amount discount without pressing ENTER or Discount, WE get a javascript error.

1. In backend create a Discount and promotion woth the following information:
- Org: *
- Discount/promotion type: User Defined Amount
- Name: Amount discount
- Starting date: 1/2/2016
Leave the other fields as thy are by default
2. In web POS create a receipt and add the product "headlamp ultralight"
3. In menu select the option Receipt discounts
4. In payment pannel select the option Amount discount
5. Check both options,
Override existing promotions
Apply to all lines
6. Click amount 12 (without pressing the button DISCOUNT or ENTER)
7. Click the button APPLY
ERROR--> a javascript error appears
Instead of the javascript error, we should have a Error message saying por example: "you must click enter or DISCOUNT before APPLY button in order to add the discount to the receipt"
SER-QA
depends on backport 0032325RR16Q1 closed ranjith_qualiantech_com [SERQA 692] Javscript error when adding a manual discount 
depends on backport 0032326RR15Q4.5 closed jorge-garcia [SERQA 692] Javscript error when adding a manual discount 
has duplicate defect 0032303 closed Retail Variable discretionary discounts with no defined percent raise an error to the user 
Issue History
2016-02-15 22:04ageteNew Issue
2016-02-15 22:04ageteAssigned To => Retail
2016-02-15 22:04ageteResolution time => 1456354800
2016-02-15 22:04ageteTriggers an Emergency Pack => No
2016-02-15 22:04ageteTag Attached: SER-QA
2016-02-16 15:15OrekariaStatusnew => acknowledged
2016-02-18 10:31ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-02-18 10:31ranjith_qualiantech_comStatusacknowledged => scheduled
2016-02-18 12:42ageteSummary[SERQA 692] Javscript error when adding a manual discount greater than the amount => [SERQA 692] Javscript error when adding a manual discount
2016-02-18 12:42ageteDescription Updatedbug_revision_view_page.php?rev_id=11161#r11161
2016-02-18 12:42ageteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11163#r11163
2016-02-18 12:42ageteProposed Solution updated
2016-02-19 12:59hgbotCheckin
2016-02-19 12:59hgbotNote Added: 0084365
2016-02-19 12:59hgbotCheckin
2016-02-19 12:59hgbotNote Added: 0084366
2016-02-19 12:59hgbotStatusscheduled => resolved
2016-02-19 12:59hgbotResolutionopen => fixed
2016-02-19 12:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/94638e56e37bc53643b40c083e5866b59792139b [^]
2016-02-24 14:14OrekariaRelationship addedrelated to 0032303
2016-02-24 14:16OrekariaRelationship replacedhas duplicate 0032303
2016-02-24 14:19OrekariaStatusresolved => new
2016-02-24 14:19OrekariaResolutionfixed => open
2016-02-24 14:19OrekariaStatusnew => scheduled
2016-02-24 14:19OrekariaStatusscheduled => resolved
2016-02-24 14:19OrekariaFixed in Version => RR16Q2
2016-02-24 14:19OrekariaResolutionopen => fixed
2016-02-25 08:09guillermogilNote Added: 0084481
2016-02-25 17:26ranjith_qualiantech_comNote Added: 0084521
2016-02-25 17:26ranjith_qualiantech_comStatusresolved => new
2016-02-25 17:26ranjith_qualiantech_comResolutionfixed => open
2016-02-25 17:26ranjith_qualiantech_comFixed in VersionRR16Q2 =>
2016-02-25 17:26ranjith_qualiantech_comStatusnew => scheduled
2016-02-28 15:12hgbotCheckin
2016-02-28 15:12hgbotNote Added: 0084578
2016-02-28 15:12hgbotStatusscheduled => resolved
2016-02-28 15:12hgbotResolutionopen => fixed
2016-02-28 15:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/94638e56e37bc53643b40c083e5866b59792139b [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dadadb16b004a0cbe512c3e29f40efd96d6755bf [^]
2016-02-29 09:36marvintmReview Assigned To => marvintm
2016-02-29 09:36marvintmStatusresolved => closed
2016-02-29 09:36marvintmFixed in Version => RR16Q2
2016-02-29 18:15marvintmSeveritymajor => minor
2016-03-07 17:27hgbotCheckin
2016-03-07 17:27hgbotNote Added: 0084790
2017-01-11 13:01hgbotCheckin
2017-01-11 13:01hgbotNote Added: 0093352
2019-02-06 15:35hgbotCheckin
2019-02-06 15:35hgbotNote Added: 0109644
2019-02-06 15:35hgbotCheckin
2019-02-06 15:35hgbotNote Added: 0109648

Notes
(0084365)
hgbot   
2016-02-19 12:59   
Repository: tools/automation/pi-mobile
Changeset: 14eb69c3773ce1c4af87e497761c4fd219f8f7b1
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Feb 19 17:28:45 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/14eb69c3773ce1c4af87e497761c4fd219f8f7b1 [^]

Verifies issue 32243: Added automated test 'I32243_VerifyProductDiscountWithVariableAmount'

---
M src-test/org/openbravo/test/mobile/common/selenium/javascript/TestId.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I32243_VerifyProductDiscountWithVariableAmount.java
---
(0084366)
hgbot   
2016-02-19 12:59   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 94638e56e37bc53643b40c083e5866b59792139b
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Feb 19 17:29:02 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/94638e56e37bc53643b40c083e5866b59792139b [^]

Fixes issue 32243 : Validating Variable Discount Amount before applying to receipt

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js
---
(0084481)
guillermogil   
2016-02-25 08:09   
requiresQty property is set to true only on variable discounts.
Instead of removing it on the if filter it is needed to review why it is set to false on those cases.
(0084521)
ranjith_qualiantech_com   
2016-02-25 17:26   
Fix Not correct, Discount attribute has to be changed from "requiredQty" to "requiresQty"
(0084578)
hgbot   
2016-02-28 15:12   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: dadadb16b004a0cbe512c3e29f40efd96d6755bf
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sun Feb 28 19:42:07 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dadadb16b004a0cbe512c3e29f40efd96d6755bf [^]

Fixes issue 32243 : Validating Variable Discount Amount before applying to receipt

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js
---
(0084790)
hgbot   
2016-03-07 17:27   
Repository: retail/backports/3.0RR15Q4.5/org.openbravo.retail.posterminal
Changeset: 19b4aa74a36b056d20bab44f85cc6cab883da2a4
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Mar 07 17:26:46 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4.5/org.openbravo.retail.posterminal/rev/19b4aa74a36b056d20bab44f85cc6cab883da2a4 [^]

Fixed issue 32326: [SERQA 692] Javscript error when adding a manual discount

Backport of issue 32243 for 3.0RR15Q4.5

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js
---
(0093352)
hgbot   
2017-01-11 13:01   
Repository: tools/automation/pi-mobile
Changeset: 771e7c08bc4523341c24f2d201d7fdc1e958d639
Author: Guillermo Gil <guillermo.gil <at> openbravo.com>
Date: Wed Jan 11 09:11:42 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/771e7c08bc4523341c24f2d201d7fdc1e958d639 [^]

Related to issue 32243: Uncommented finally

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I32243_VerifyProductDiscountWithVariableAmount.java
---
(0109644)
hgbot   
2019-02-06 15:35   
Repository: tools/automation/pi-mobile
Changeset: d006a56d606db488cab2bbff4adf4e2a73154444
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Thu Jan 31 11:05:00 2019 -0500
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/d006a56d606db488cab2bbff4adf4e2a73154444 [^]

Related to issue 32243: test has been refactored due to it no longer creates its
own sampledata

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I32243_VerifyProductDiscountWithVariableAmount.java
---
(0109648)
hgbot   
2019-02-06 15:35   
Repository: erp/pmods/org.openbravo.retail.sampledata
Changeset: 39ce8fca8a68292a62f4ae161421e9e34391aba0
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Sat Jan 26 12:31:55 2019 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sampledata/rev/39ce8fca8a68292a62f4ae161421e9e34391aba0 [^]

Related to issue 32243: added sampledata for testing purposes

---
M referencedata/sampledata/The_White_Valley_Group/M_OFFER.xml
M referencedata/sampledata/The_White_Valley_Group/M_OFFER_PRODUCT.xml
---