* Refactor default data logic to new DefaultDataServer module
Introduced the DefaultDataServer common module to encapsulate logic for default data retrieval and creation, moving related methods from FOServer. Updated references in catalogs, partners, user settings, and functional option settings to use DefaultDataServer. Added new form and module for functional option settings, and extended localization for functional option groups. Registered the new module in the configuration.
* #IRP-722 - add new FO handler, block editing FO without handler
* Enhance functional options
Moved the Taxes subsystem from Settings to MasterData, updating all related references and file locations. Enhanced the FunctionalOptionSettings form by adding 'Save and Close', 'Check All', and 'Uncheck All' buttons with corresponding handlers. Cleaned up functional option and subsystem content assignments, and improved error handling in FOServer module for functional option value retrieval.
* #IRP-723 Refactor default data update logic
Refactored the UpdateDefaultsAtTransaction procedure in DefaultDataServer module by splitting logic into modular procedures for updating default catalog values. Added a new 'Update defaults' button and command to the FunctionalOptionSettings NewForm, with corresponding client and server handlers to trigger the update. Improved code maintainability and enabled users to update default values directly from the form.
* #IRP-721 new subordinations
* Refactor and split order/cash constants and options
Renamed and split 'UseOrders' into 'UsePurchaseOrders' and 'UseSalesOrders', 'UseCashTransaction' into 'UseCashTransactions', and introduced 'UsePaymentOrders' and related constants, functional options, and rights. Updated all references, forms, modules, and configuration files to use the new names and structure, improving clarity and separation of purchase, sales, and payment order logic.
* fix features
* Refactor functional options and update related content
Reorganized and cleaned up functional options in configuration and module files, removing redundant and outdated content references. Added new report links to planned receipt reservation, purchase orders, and sales orders options. Adjusted subordination arrays and groupings in FOServer, and updated form attributes for agreements. These changes improve modularity and maintainability of functional options.
* Add and update report references in functional options
Added new report references to multiple functional option .mdo files to enhance reporting capabilities across modules such as Aging, Finance, Landed Cost, Purchase, Retail, Sales, and Stores. Also updated or removed some report references to ensure correct feature mapping and avoid duplication.
* Update 001_TestDataBaseSmoke.feature
* #IRP-722 fix features
* Update feature files for table columns and test steps
Adjusted table column order and content in several feature files to align with updated business logic. Added and removed steps in scenarios to streamline functional option settings and test data preparation. Corrected expected values in cash transaction scenarios for accuracy.
* Update incident and accounting feature setup steps
* Update storage volume setup in test features
---------
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* #IRP-568 Add shift number support to fiscal printer modules
Introduces handling of shift numbers in fiscal printer client, server, and API modules. Adds ShiftNumber fields to relevant structures, document objects, and information registers. Updates logic to store and retrieve shift numbers alongside check numbers for improved traceability and compliance.
* Add FiscalResponse to CorrectionData and refactor VAT handling
* Add PaymentInFiscalPrinterMode attribute and logic
Introduces the PaymentInFiscalPrinterMode boolean attribute to hardware catalog, retail sales receipt document, and payment forms. Updates UI forms to display and edit this attribute, and modifies payment processing logic to account for payments made in fiscal printer mode, including visibility and validation changes. Also refines cashier name retrieval in the fiscal printer server module.
* Update _8510FiscalPrinter.feature
* Add PaymentInFiscalPrinterMode attribute and update payment logic
* Add 'DocumentPostingAfterPrinting' option for receipts
Introduces the 'DocumentPostingAfterPrinting' boolean attribute to hardware and point of sale forms, allowing receipts to be posted after printing based on this setting. Updates business logic to handle postponed posting, including new procedures for posting and canceling transactions, and adjusts status handling throughout the payment and return process. Also refines data handling in HardwareServer and validation in EquipmentFiscalPrinterClient to support the new attribute.
* Fix nested attribute extraction in GetAttributesFromRef
Updated GetAttributesFromRef to correctly handle nested attribute names using dot notation. Extended unit tests to cover extraction of nested attributes from empty references, ensuring proper structure and default values are returned.
* Fix handling of undefined ConsolidatedRetailSales document
* Show user message if fiscal printer is not set
Added a call to display a user message when attempting to reconnect the fiscal printer and it is not configured. This improves user feedback in cases where the fiscal printer is missing.
---------
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* #IRP-717
* #IRP-717
* #IRP-717
* #IRP-717
* #IRP-717
* #IRP-717 Add PLSections catalog test data and PL report scenario
Introduces test data creation for the PLSections catalog in the external test database feature. Adds a new scenario to check the P&L report, including setup, report generation, and result validation in the internal accounting settings feature.
* #IRP-717
---------
Co-authored-by: Andrey Vorobyov <andrey.vorobyov@mail.com>
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* #SDR-418 Add secure data storage for integration settings
Introduces secure storage for sensitive integration settings via a new information register and module. Adds the StoreInSecureStorage attribute to IntegrationSettings, updates forms and logic to support storing and retrieving hidden values securely, and configures roles and access rights for secure data management.
* Fix typo and add SecureDataStorage access key module
Corrects the typo 'PalceHolder' to 'PlaceHolder' in SecureDataStorage modules and updates all references. Adds ManagerModule for SecureDataStorage information register with GetAccessKey function. Excludes SecureDataStorage from access key checks in Unit_AccessSubsystem.
* Restrict SecureDataStorage read access for roles
Added or updated read rights for InformationRegister.SecureDataStorage in multiple role definitions, setting access to true but restricting it with a WHERE FALSE condition to effectively deny access. This change standardizes the handling of SecureDataStorage read permissions across BasicRole, FullAccess, FullAccessNoAdminFunctions, and FullAccessOnlyRead roles.
* Update _2000LoadCurrencyRate.feature
* Update connection setting retrieval in FillByDefaultAtServer
Replaced GetConnectionSetting() with IntegrationServer.ConnectionSettingTemplate using Object.IntegrationType and Object to obtain connection settings. This change ensures the correct template is used based on the integration type.
* Rename parameter in Unit_SendRequestClientServer
Changed the parameter name from ConnectionSetting to ConnectionSettingData in Unit_SendRequestClientServer and assigned its Value to ConnectionSetting. This clarifies the source of the connection settings and improves code readability.
* Handle ConnectionSettingData without Value property
Updated Unit_SendRequestClientServer to support cases where ConnectionSettingData may not have a Value property or is not a Structure. This improves robustness when handling different types of input for connection settings.
* Exclude SecureDataStorage from tree population
Updated the FillTree procedure to skip the InformationRegisters.SecureDataStorage entry when populating the tree. This prevents SecureDataStorage from being included in the form's metadata tree.
---------
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* #IRP-592 add numbering subsystem
* #IRP-592 unit test edits
* #IRP-592 add new attributes to document forms
* fix bug
* #IRP-592 add catalogs to numbering
* #IRP-592 using basic parts in final number template
* #IRP-592 add internal command to show/hide numerator
* #IRP-592 clear number when copy
* resource renamed
* fix bug
* #IRP-234 add new attributes and new catalog Incoterms
* #IRP-234 access for incoterms, filters for LNC
* #IRP-234 fix unit test
* #IRP-234 enable code editing for Incoterms
* #IRP-234 add new features + features refact
* Update ImportData.feature
* Update _00504CompaniesCatalog.feature
---------
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>