Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0050102 | POS2 | POS | public | 2022-08-30 00:20 | 2022-09-06 00:20 |
|
Reporter | AugustoMauch | |
Assigned To | gonzalo_fernandez | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 22Q4 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0050102: Enable different user actions for ProductButton in keymaps depending on product properties |
Description | The ProductKeymap component renders instances of ProductButton. It does not include a leftAction property so the default one (OBPOS2_AddProduct) is always used.
It would be useful if different leftActions could be selected based on the product properties. For instance, products that represent generic products (its isGeneric flag is true), would execute an action that would not add the product to the ticket but instead show in the search dialog all its product variants (i.e. OBPOS2_SearchVariantProducts action).
In this feature only the infrastructure to register and get the leftAction based on the product properties will be provided. The implementation could be very similar to the one used to determine the component to render ticket lines [1]. This [2] could be a good point to set the leftAction property of a product if it matches any of those registered in the new register.
[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/TicketLineComponentRegistry.js [^]
[2] https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/components/ProductKeymap/GetProductKeymapInfo.js#L70 [^] |
Steps To Reproduce | - |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-08-30 00:20 | AugustoMauch | New Issue | |
2022-08-30 00:20 | AugustoMauch | Assigned To | => gonzalo_fernandez |
2022-08-30 00:20 | AugustoMauch | Triggers an Emergency Pack | => No |
2022-08-30 00:23 | AugustoMauch | Description Updated | bug_revision_view_page.php?rev_id=24688#r24688 |
2022-08-30 00:23 | AugustoMauch | Severity | minor => major |
2022-08-30 08:28 | AugustoMauch | Status | new => scheduled |
2022-08-30 08:37 | AugustoMauch | Description Updated | bug_revision_view_page.php?rev_id=24689#r24689 |
2022-08-31 13:40 | hgbot | Note Added: 0140564 | |
2022-09-06 00:20 | hgbot | Resolution | open => fixed |
2022-09-06 00:20 | hgbot | Status | scheduled => closed |
2022-09-06 00:20 | hgbot | Fixed in Version | => 22Q4 |
2022-09-06 00:20 | hgbot | Note Added: 0140726 | |
2022-09-06 00:20 | hgbot | Note Added: 0140727 | |