Development #7787
Updated by Kyle Chong 3 months ago
Refer to: * docs/planning/modules/M16_POS_Setup.md * docs/planning/modules/M02_Product_Data_Sync.md applicable M07/M08/M09/M12 country/fiscal documentation * docs/planning/FPOS Implement POS Setup so the available setup sections and options are dynamically determined by Country Settings section without hardcoding every country's behaviour into the configuration applicable to the current POS/store. common POS screens. Scope: Current design includes examples such as: Turkey * Load the applicable POS/store configuration synchronized to POS+. ENPos configuration. * Determine which setup options are applicable to the current POS. * Only display setup sections/options that are relevant and enabled Customer details compulsory for that store. Refund. * Hide configuration that Customer details compulsory when applicable amount rule is not applicable to the current store. exceeded. * Do not hardcode country tabs/options into the POS Setup UI. EArchive cancellation allowed within configured days. * Do not allow Cashier to manually select or switch country profiles. Gift Card Category validation/configuration. Poland * Country/store business configuration remains controlled by the upstream configuration; POS+ only consumes the applicable result. Fiscal Printer configuration. Romania * Terminal-local setup remains configurable where required, such as: Fiscal Printer configuration. * * Printer/device binding. Print Money Return Note. * Number of copies. Scope: * Cash drawer connection. Enable applicable country configuration by Store/Country. * * EDC terminal connection. Keep country-specific settings grouped separately. * * Other terminal-specific hardware settings. * Ensure newly synchronized Route fiscal device configuration is reflected in POS Setup. * Preserve to the applicable configuration after Cashier restart/offline operation. M07/fiscal adapter. * Handle missing or invalid required configuration with a clear message. For example: Malaysia store Synced Store Configuration → Malaysia Allow future country settings to be added without redesigning the whole POS Setup only shows the setup/options applicable to that Malaysian store. page. If Poland requires a Fiscal Printer but Malaysia does not: Malaysia POS → Fiscal Printer setup hidden/not applicable Poland POS → Fiscal Printer setup available The Cashier should not see: Country Settings → Turkey → Poland → Romania and manually choose one. Done when: Country-specific POS Setup dynamically displays and applies only the configuration relevant to the current POS/store, while unrelated setup options are hidden and cannot behaviour can be configured accidentally. independently while generic modules consume the resulting settings.