Openbravo Issue Tracking System - POS2
View Issue Details
0052922POS2POSpublic2023-07-04 15:002023-07-11 08:19
nicolasuriz 
sreehari 
urgentmajoralways
closedfixed 
5
 
 
No
0052922: While using the "Mandatory Issuance" at product category level, it is not working in the POS
With the development done in the Mantis: https://issues.openbravo.com/view.php?id=52650 [^]

The flag "Mandatory Issuance" it is not working as expected, it is possible to click on "None" while on "Receipt Deliver Options". It should be mandatory to print or send by email, avoiding the possibility of going out of the store without sending or printing the receipt.
At product category level, set the Checkbox of "Mandatory Issuance" to yes for an specific product category.

The "Deliver Receipt Options" must be checked to yes at "Touchpoint Type" level.

1. Then it is just to load the POS with the changes applied and add a product from the the product category defined with the mandatory issuance to yes.
2. Fully pay the ticket and in the Print options, select the "None"
3. It should not be possible to do that, it has to force the user to either print or send by email or both but not allowing the user to click on "None" option.
No tags attached.
related to feature request 0052650 closed pniam Retail Modules Mandatory issuance of specific products 
depends on backport 005294523Q3 closed sreehari POS2 While using the "Mandatory Issuance" at product category level, it is not working in the POS 
Issue History
2023-07-04 15:00nicolasurizNew Issue
2023-07-04 15:00nicolasurizAssigned To => Retail
2023-07-04 15:00nicolasurizTriggers an Emergency Pack => No
2023-07-04 15:01guillermogilNote Added: 0152106
2023-07-04 15:02guillermogilSeveritycritical => major
2023-07-04 15:03guillermogilNote Edited: 0152106bug_revision_view_page.php?bugnote_id=0152106#r26401
2023-07-04 15:15guillermogilAssigned ToRetail => sreehari
2023-07-06 13:44guillermogilRelationship addedrelated to 0052650
2023-07-07 13:10sreehariStatusnew => scheduled
2023-07-10 15:36hgbotNote Added: 0152273
2023-07-11 08:17sreehariStatusscheduled => acknowledged
2023-07-11 08:17sreehariStatusacknowledged => scheduled
2023-07-11 08:19hgbotNote Added: 0152300
2023-07-11 08:19hgbotResolutionopen => fixed
2023-07-11 08:19hgbotStatusscheduled => closed
2023-07-11 08:19hgbotFixed in Version => RR23Q4
2023-07-11 08:19hgbotNote Added: 0152301

Notes
(0152106)
guillermogil   
2023-07-04 15:01   
(edited on: 2023-07-04 15:03)
It seems that the column isMandatoryIssuance is not getting properly loaded in React although in enyo it is.

Code is disabling the none button:

      isDisabled:
        OB.App.State.getState().Ticket &&
        OB.App.State.getState().Ticket.lines.some(
          line => line.product.isMandatoryIssuance === true
        ),

Althought the value gets always loaded to false:
OB.App.State.getState().Ticket
isMandatoryIssuance: false

(0152273)
hgbot   
2023-07-10 15:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1276 [^]
(0152300)
hgbot   
2023-07-11 08:19   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1276 [^]
(0152301)
hgbot   
2023-07-11 08:19   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 24c704e03ae6042023c84b003a5ee5e74fe51ccb
Author: Sreehari Venkataraman <sreehari@qualiantech.com>
Date: 11-07-2023 11:32:35
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/24c704e03ae6042023c84b003a5ee5e74fe51ccb [^]

Fixes ISSUE-52922: Added productCategory incrementalUpdateCriteria for Products
*When changing Product Category, related product should loaded in the incremental refresh

---
M src/org/openbravo/retail/posterminal/master/Product.java
---