Projects:Product On the Fly for Phidias/Functional Specifications
Contents |
Product On the Fly for Phidias - Functional Specifications
Overview
This project is about to have the possibility of add DEA and DEEE fields when creating new products “on the fly” through the WebPOS. It depend on: Projects:Product_On_The_Fly_in_WebPOS/Functional_Specifications
Functional Requirements
WebPOS
Add following property editors in New OTF product dialog
- DEE
- DEA Quantity
- DEEE
- DEEE Quantity
Implementation
This project is implemented in a new custom module: fr.phidias.openbravo.retail.productonfly and depend on modules: fr.phidias.openbravo.retail.ecotax and org.openbravo.retail.productonthefly
Add properties editors to dialog: New OTF product
When the terminal was loaded from backend (Hook: OBPOS_TerminalLoadedFromBackend), it's added a property editors in New OTF product dialog
OBROTF.ModalProductDuplicate.prototype.newAttributes.push({ kind: 'OB.UI.renderComboProperty', name: 'phiecoDea', modelProperty: 'phiecoDea', mandatory: false, i18nLabel: 'PHIOTF_lblDEA',
..... }, { kind: 'OB.UI.renderTextProperty', name: 'phiecoDeaQty', modelProperty: 'phiecoDeaQty', mandatory: true, i18nLabel: 'PHIOTF_lblDEAQty',
..... }, { kind: 'OB.UI.renderComboProperty', name: 'phiecoDeee', modelProperty: 'phiecoDeee', mandatory: false, i18nLabel: 'PHIOTF_lblDEEE',
..... }, { kind: 'OB.UI.renderTextProperty', name: 'phiecoDeeeQty', modelProperty: 'phiecoDeeeQty', mandatory: true, i18nLabel: 'PHIOTF_lblDEEEQty',
..... });
Hooks
This module implement Hook: OBROTF_SetProductExtraProperties to remove calculate properties (phiecoDeaamnt and phiecoDeeeamnt) and properties (phiecoDea and phiecoDeee) when are empty.