Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039796Retail ModulesWeb POSpublic2018-12-13 11:322018-12-24 08:50
pramodkumar 
ranjith_qualiantech_com 
normalminoralways
closedfixed 
5
 
RR19Q1 
marvintm
No
0039796: Reference OBPOS_payment.giftcard does not exist in module Web POS - 1.2.5501
In WebPOS, when using a role set to "manual", the method of payment gift card is grayed out and can not be used so the payment method is not active in pos.
The attachment shows the payment Bon d'achat is invisible.
1.Create a manual role and create a new user for it.
2.Access the pos the giftcard is disable.
The problem comes from the fact that the search key which should be used for the gift certificate payment method is not correct. Currently it is defined in the documentation as "OBPOS_payment.giftcard", and this is wrong because it belongs to the giftcard module, which has prefix GCNV.

So three changes need to be done:

- Documentation should be changed, to specify that the search key used should be "GCNV_payment.giftcard": http://wiki.openbravo.com/wiki/Retail:Gift_Cards/Gift_Certificates#POS_Terminal_Type [^]
- Gift cards module code should be changed to take this into account
- A modulescript should be added. This modulescript should update the OBPOS_APP_PAYMENT and OBPOS_PAYMENTMETHOD_TYPE "value" column to adjust existing records, changing existing 'OBPOS_payment.giftcard' to 'GCNV_payment.giftcard'
No tags attached.
png pos-screen.png (86,710) 2018-12-13 11:32
https://issues.openbravo.com/file_download.php?file_id=12432&type=bug
png
Issue History
2018-12-13 11:32pramodkumarNew Issue
2018-12-13 11:32pramodkumarAssigned To => Retail
2018-12-13 11:32pramodkumarFile Added: pos-screen.png
2018-12-13 11:32pramodkumarResolution time => 1544655600
2018-12-13 11:32pramodkumarTriggers an Emergency Pack => No
2018-12-13 15:06marvintmNote Added: 0108587
2018-12-13 15:06marvintmAssigned ToRetail => pramodkumar
2018-12-13 15:06marvintmStatusnew => feedback
2018-12-14 14:26gorkaionNote Added: 0108615
2018-12-14 15:22marvintmResolution time1544655600 => 1545951600
2018-12-14 15:22marvintmAssigned Topramodkumar => Retail
2018-12-14 15:22marvintmStatusfeedback => scheduled
2018-12-14 15:22marvintmProposed Solution updated
2018-12-14 15:23marvintmTypedesign defect => defect
2018-12-17 07:57ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-12-17 14:37hgbotCheckin
2018-12-17 14:37hgbotNote Added: 0108642
2018-12-18 11:48ranjith_qualiantech_comStatusscheduled => resolved
2018-12-18 11:48ranjith_qualiantech_comResolutionopen => fixed
2018-12-24 08:48hgbotCheckin
2018-12-24 08:48hgbotNote Added: 0108726
2018-12-24 08:50marvintmReview Assigned To => marvintm
2018-12-24 08:50marvintmStatusresolved => closed
2018-12-24 08:50marvintmFixed in Version => RR19Q1

Notes
(0108587)
marvintm   
2018-12-13 15:06   
I don't understand multiple things about this issue:
- Is it really a design defect? shouldn't it be a defect?
- The payment method is supposed to be disabled if the role is manual, unless the preference for the payment method is defined for this role. Was this preference defined?

Could you explain the problem better? As of now, we just don't know what is wrong, and what needs to be fixed
(0108615)
gorkaion   
2018-12-14 14:26   
Wiki document for Gift Certificates sets "OBPOS_payment.giftcard" as search key for the POS Terminal Type. The screenshot sets "OBPOS_giftcard"

http://wiki.openbravo.com/wiki/Retail:Gift_Cards/Gift_Certificates#POS_Terminal_Type [^]

None of them is available in the Property Configuration list to enable it in manual roles. What is the correct search key for this type of payment?
(0108642)
hgbot   
2018-12-17 14:37   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: d09cac70c16aa08d275c30c28bdd5571ad96e422
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Dec 17 19:06:41 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/d09cac70c16aa08d275c30c28bdd5571ad96e422 [^]

Related to issue 39796 : Gift Card Payment Method and Payment Type Value has been renamed with Module DB prefix

* Updated all js files to use newly updated Payment Type Value
* Added Module script to update Payment Method and Payment Type Value with Module DB prefix

---
M src/org/openbravo/retail/giftcards/AutomaticDepositInitialValidations.java
M src/org/openbravo/retail/giftcards/hooks/GiftCardHookUtils.java
M src/org/openbravo/retail/giftcards/hooks/PreOrderLoaderHook.java
M web/org.openbravo.retail.giftcards/js/components/GiftCardCertificate.js
M web/org.openbravo.retail.giftcards/js/components/GiftCardMenu.js
M web/org.openbravo.retail.giftcards/js/hooks/AddButtonToCashManagementHook.js
M web/org.openbravo.retail.giftcards/js/hooks/PreReversePaymentHook.js
M web/org.openbravo.retail.giftcards/js/hooks/preaddpaymenthook.js
M web/org.openbravo.retail.giftcards/js/hooks/preremovepaymenthook.js
M web/org.openbravo.retail.giftcards/js/hooks/printGiftCardPrePrintHook.js
M web/org.openbravo.retail.giftcards/js/model/GiftCardUtils.js
A build/classes/org/openbravo/retail/giftcards/modulescript/UpdateGiftCardPaymentMethodPrefix.class
A src-util/modulescript/src/org/openbravo/retail/giftcards/modulescript/UpdateGiftCardPaymentMethodPrefix.java
---
(0108726)
hgbot   
2018-12-24 08:48   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 92ed5e1a9967fbca973f5e86db4e21d68a44d54e
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Dec 24 08:45:59 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/92ed5e1a9967fbca973f5e86db4e21d68a44d54e [^]

Related to issue 39796. Added reflist for the gift card certificate payment method

---
M src-db/database/sourcedata/AD_REF_LIST.xml
---