Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041532Retail ModulesCoupons OTFpublic2019-08-02 10:242019-08-02 14:21
inaki_garcia 
Retail 
normalmajoralways
newopen 
5
main 
 
No
0041532: [19Q3] Error popup appears when paying a ticket with products that are applicable to get an On The Fly Coupon
In spite of trying to configure an On The Fly Coupon as best as possible for a store (in this case, "Posets Store") by following the documentation and using the Retail with Modules livebuild sampledata as reference, a popup error shows saying that the template for coupons has not been defined for this store after paying a ticket with products applicable to receive the coupon. There is no clue or indication on where to do the definition of such template in the documentation.

Assuming that this configuration is correct, then the functional issue is clear: it blocks any usage of the 'On The Fly Coupons', as the coupon isn't printed. And in any case, the process should be better explained in the documentation section for this module.

The popup shown is depicted in the attached screenshot.
PRECONDITIONS: the "Coupons OTF" module, and the "Discounts and Promotions" module that it depends on must be installed.

--- Backend
0. Log in the ERP as user "Openbravo", with the "The White Valley Group Admin" role
1. Go to the "Discounts and Promotions" window and create a new record in form with the following data, and save it:
- Organization: *
- Discount/Promotion Type: Price Adjustment
- Name: OTF Coupons - Coupon 5 EUR in "Backpacks & Travel"
- Active: checked
('Filter Options' section)
- Starting Date: today's date
- Apply Next Discount/Promotion: checked
- Included Product Categories: Only those defined
- <the rest of the fields>: All excluding defined
('Definition' section)
- Discount Amount: 5.00
- Uses coupon codes: checked
('Availability' section)
- All week: checked
('OTF Coupons configuration' section)
- Is OTF Coupon: checked
2. Go to the 'Product Category' subtab, and create a new record for 'Backpacks & Travel'
3. Go to the "OTF Coupons Generation Rules" window and create a new record in form with the following data, and save it:
- Organization: Posets Store
- Applicant: Posets Store User
- Search Key: OTF_5_EUR_PS
- Promotion/Discount: OTF Coupons - Coupon 5 EUR in "Backpacks & Travel" (previously created one)
- Description: Coupon of 5 EUR in "Backpacks & Travel" purchasing 100 EUR in "Trekking & Camping"
- Request date: today's date
- Starting date: today's date
- Is one coupon per transaction: checked
- Min. Receipt Amount: 100.00
('Filter Options' section)
- Included Product Categories: Only those defined
- <the rest of the fields>: All excluding defined
('Availability of coupon generation' section)
- All: checked
4. Go to the 'Product Category' subtab, and create a new record with 'Posets Store' Organization, and 'Trekking & Camping' Product Category
5. Go to the 'Print' subtab, create a new record in form with the following data, and save it:
- Organization: Posets Store
- Language ID: English (USA)
- Print Title: 5 €
- Print Text: Coupon of 5€ in "Backpacks & Travel" purchasing 100 € in "Trekking & Camping"
- Active: checked
6. Go to back to the header tab of 'OTF Coupons Generation Rules', check the Active checkbox, and save it

--- Frontend
0. Log in the Web POS with the PS-1 terminal as user "posets"
1. Click on the "SEARCH" button, search "Compression sacks cordura" product, and add 2 units of it to the ticket
2. Search "Down sleeping bag 500", and add 1 unit of it to the ticket
3. Click on the Total to Pay button button showing "258.34"
4. Click on the tick button to pay completely with cash, and click on Done to pay the ticket
NOTICE that an error popup appears with the following message: "ERROR! The template for coupons has not been defined for this store"
No tags attached.
png coupon-has-no-template-defined-error-popup.png (279,037) 2019-08-02 10:27
https://issues.openbravo.com/file_download.php?file_id=13204&type=bug
Issue History
2019-08-02 10:24inaki_garciaNew Issue
2019-08-02 10:24inaki_garciaAssigned To => Retail
2019-08-02 10:24inaki_garciaFile Added: coupon-has-no-template-defined-error-popup.png
2019-08-02 10:24inaki_garciaTriggers an Emergency Pack => No
2019-08-02 10:26inaki_garciaFile Deleted: coupon-has-no-template-defined-error-popup.png
2019-08-02 10:26inaki_garciaFile Added: coupon-has-no-template-defined-error-popup.jpg
2019-08-02 10:26inaki_garciaFile Deleted: coupon-has-no-template-defined-error-popup.jpg
2019-08-02 10:27inaki_garciaFile Added: coupon-has-no-template-defined-error-popup.png
2019-08-02 10:31inaki_garciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19249#r19249
2019-08-02 10:56inaki_garciaSummary[19Q3] Error popup appears when paying a ticket with products that are applicable to get an On The Fly Coupon => [19Q3] Error popup appears when paying a ticket with products that are applicable to get an On The Fly Coupon on any store
2019-08-02 10:56inaki_garciaDescription Updatedbug_revision_view_page.php?rev_id=19253#r19253
2019-08-02 13:50inaki_garciaDescription Updatedbug_revision_view_page.php?rev_id=19254#r19254
2019-08-02 13:51inaki_garciaSummary[19Q3] Error popup appears when paying a ticket with products that are applicable to get an On The Fly Coupon on any store => [19Q3] Error popup appears when paying a ticket with products that are applicable to get an On The Fly Coupon
2019-08-02 14:21inaki_garciaIssue cloned0041536

There are no notes attached to this issue.