* #IRP-778 Изменил CurrencyMovementType по умолчанию
При создании нового договора в момент заполнения карточки партнера CurrencyMovementType заполняется по следующему алгоритму:
Если в системе есть лишь один CurrencyMovementType с типом Agreement то берется он.
Если в системе несколько CurrencyMovementType с типом Agreement то этот реквизит в договоре остается пустым, что бы его заполнил пользователь.
* Update _00519PartnersCatalog.feature
---------
Co-authored-by: gagmaz <gulnara@bilist.com.tr>
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* #IRP-783 add new FO - UseInventory
* Update feature files for UI interaction improvements
Adjusted steps in _9001UseSimpleMode.feature to use more precise checkbox labels and added an 'Update defaults' button click. Modified _9504LockDataModification.feature to open system settings via hyperlink instead of command interface for more direct navigation.
* Add CommonCommand report links to functional options
Added CommonCommand.OpenReport entries to multiple functional option .mdo files to enable direct access to related reports. Also adjusted FO groupings in FOServer module to move 'UseInventory' and 'UseStores' to a different group. This improves navigation and accessibility of reports from the UI.
---------
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* #IRP-747 list form appearance for date
* #ERP-747 from A to G
* fix features
* fix features
* #ERP-747 from I to O
* #ERP-747 from P to W
* fix features
---------
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* 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-779 fix bug with aging
* Added new test
* Update number formatting in aging feature tests
Changed decimal and thousand separators in CustomersAging and VendorsAging feature files to use comma for decimals and non-breaking space for thousands, aligning with localized number formatting standards.
---------
Co-authored-by: gagmaz <gulnara@bilist.com.tr>
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* #IRP-773 work with RLS in ConsolidatedRetailSales
* #IRP-773 set Privileged mod for RowID checking
* #IRP-773 set Privileged mod before fiscal status writing
* #IRP-773 refactoring in Update Manager
* #IRP-773 roles refactoring
* #IRP-773 add CRS start date
* #IRP-765
Removed 'IsQuantityInBaseUnitChanged' from the recalculation conditions in StepItemListCalculations_Without_SpecialOffers and StepItemListCalculations_StockDocuments, but retained it in StepItemListCalculations. This refines when recalculations for NetAmount, TotalAmount, and TaxAmount are triggered, likely to improve calculation accuracy and performance.
* Handle IsQuantityInBaseUnitChanged in calculation steps
Added explicit handling for the 'IsQuantityInBaseUnitChanged' case in StepItemListCalculations, StepItemListCalculations_Without_SpecialOffers, and StepItemListCalculations_StockDocuments procedures. This prevents raising an error for this specific change, ensuring the procedures do nothing when this value changes.
* Add quantity calculation steps for ItemList
Introduces new procedures and logic for calculating ItemList quantities, including handling for various document types and calculation scenarios. Updates calculation options and execution to support both Quantity and QuantityInBaseUnit, ensuring correct recalculation and propagation of quantity changes throughout the chain.
* Refactor item quantity binding and update notifications
Replaces 'StepItemListCalculateQuantityInBaseUnit' with 'BindVoid' in BindItemListQuantity. Adds explicit setters for ItemList.Quantity and ItemList.QuantityInBaseUnit in SetItemListCalculations. Refactors calculation procedures to initialize QuantityOptions fields once per row. Removes assignment of calculated quantities back to options in ModelClientServer_V2. Extends OnSetItemListQuantityNotify in ViewClient_V2 to update related entities and handle additional document types.
* fix bug
* add default step
* fix bugs
* #IRP-764
Introduced new ListForm and ChoiceForm for the RetailCustomers catalog, including their form definitions, modules, and user settings. Updated QuickSearch form to add a Select command and handler. Set the new forms as default in the catalog metadata.
* Update item selection logic in CodeOnChange procedure
* fix new item writing
* Update _00521RetailCustomersCatalog.feature
---------
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
Updated the CloseSession procedure to check for filled ConsolidatedRetailSales and handle postponed receipts more robustly. Now, if no postpone options are available, it cancels postponed receipts and notifies the user; otherwise, it opens the postponed receipt as before.
* Add support for PaymentInFiscalPrinterMode flag
Introduces the PaymentInFiscalPrinterMode property to payment data structures and processing logic. Updates modules to handle payments in fiscal printer mode, adjusts extraction and form logic, and ensures correct handling in payment processing and UI.
* Enhance receipt data handling for fiscal printer
Updated FillCheckPackageByRetailReceipt to support RetailReturnReceipt and improved correction data population. Added documentation for new payment array in Fiscal Printer API and clarified parameter types in CommonFunctionsClientServer.
* Add Price field to fiscal string structure
Introduced a new 'Price' field to the fiscal string structure and updated related functions to populate this value. This change ensures that the price per product unit is explicitly tracked and available for fiscal operations.
* Add CRS, ShortName, and Barcode to fiscal data structures
Extended fiscal correction and item structures to include CRS (ConsolidatedRetailSales), ShortName, and Barcode fields. Updated server logic to populate these fields from source data, improving traceability and item identification in fiscal operations.
* Optimize system attribute updates and UI enablement
Improves batch processing in RunUpdate_UpdateSystemAttributesValue by adding pagination and status notifications. Updates RunUpdate_DBMigration_IRP680 to handle empty data sets more gracefully. Enables previously disabled UI elements in the POS payment form. Adjusts register records in GoodsReceipt and ShipmentConfirmation documents for correct posting. Adds Catalog.Items to UseItemKey functional option.
* Add support for PaymentInFiscalPrinterMode flag
Introduces the PaymentInFiscalPrinterMode property to payment data structures and processing logic. Updates modules to handle payments in fiscal printer mode, adjusts extraction and form logic, and ensures correct handling in payment processing and UI.
* Enhance receipt data handling for fiscal printer
Updated FillCheckPackageByRetailReceipt to support RetailReturnReceipt and improved correction data population. Added documentation for new payment array in Fiscal Printer API and clarified parameter types in CommonFunctionsClientServer.
* Add Price field to fiscal string structure
Introduced a new 'Price' field to the fiscal string structure and updated related functions to populate this value. This change ensures that the price per product unit is explicitly tracked and available for fiscal operations.
* Add CRS, ShortName, and Barcode to fiscal data structures
Extended fiscal correction and item structures to include CRS (ConsolidatedRetailSales), ShortName, and Barcode fields. Updated server logic to populate these fields from source data, improving traceability and item identification in fiscal operations.
Introduces the PaymentInFiscalPrinterMode property to payment data structures and processing logic. Updates modules to handle payments in fiscal printer mode, adjusts extraction and form logic, and ensures correct handling in payment processing and UI.
* #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>
* Update multiple common picture icons
Replaces or updates the PNG images for various icons in IRP/src/CommonPictures. This may include visual improvements, refreshed designs, or other graphical changes to the application's icon set.
* Add and update common pictures and command icons
Introduced new common pictures and their metadata for various UI elements, updated references to use these new images in forms and modules, and replaced several standard and old icons with custom ones for improved consistency. Also set certain payment form fields to disabled and adjusted command order in configuration.
* Update form icons to use CommonPicture references
Replaced various StdPicture image references with CommonPicture equivalents across multiple form XML files for consistency and improved maintainability. This affects document forms, data processors, and common forms, updating icons for actions such as accounting edits, quantity edits, linking/unlinking documents, and row calculations.
* Disable search and view additions in POS form
Set 'enabled' to false for multiple searchStringAddition, viewStatusAddition, and searchControlAddition elements throughout the PointOfSale Form. Also updated header picture reference and disabled certain controls to restrict user interaction and visibility.
* Update page icons in POS form
Added 'CashOk' icon to a page group and changed another page group's icon from 'Purchase' to 'AddItem' in the PointOfSale Form. This improves visual identification of actions within the form.
* Add dashboard settings and update demo features
Added DashboardSettings.json. Updated LoadDemoBD.feature and Podgotovka.feature for External, and _9999 DemoDB.feature
* Update RowIDs catalog objects in LoadDemoBD.feature
* #IRP-578
* Add tests for stock correction with source of origin
Introduced new test scenario for landed cost stock correction involving source of origin in LandedCost.feature. Added related data preparation steps and a new .mxl template for batch balance verification.
* Update LandedCost.feature
---------
Co-authored-by: Andrey Vorobyov <andrey.vorobyov@mail.com>
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
Introduced a mechanism to filter internal commands based on functional options in InternalCommandsServer. Added support for 'FunctionalOptions' in command descriptions and implemented the corresponding check. Also added 'IsUseNumberingRules' to FOServer and updated ShowNumerator_GetCommandDescription to use the new functional option.
* #IRP-483
* #IRP-483
* Add tests for negative balance control by registers
Added new feature files for actual and free stock control, serial lot number stock control, and stock inventory control under Internal/_8800 Negative balance control by registers. Extended ImportData.feature with scenarios for creating UserSettings records for various stock and cash controls.
* Add tests for cash on hand and other period expense/revenue control
Added a new feature file to test negative balance control for cash and bank accounts, as well as other period expense and revenue controls.
* fix features
---------
Co-authored-by: Andrey Vorobyov <andrey.vorobyov@mail.com>
Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
* Update configuration and rights for PLSections and reports
Moved Catalog.PLSections and related enums and reports in Configuration.mdo to correct sections. Added and updated rights for Catalog.PLSections and predefined data actions in FullAccess and FullAccessNoAdminFunctions roles. Removed explicit rights for several reports from FullAccessNoAdminFunctions and added additional administrative rights restrictions.
* Add new access groups and profiles to demo DB
Introduced a new access group and corresponding access profile for 'Admin without admin functions' in the demo database. Updated related tabular sections for profiles and users, corrected language for 'Admin_EN' user, and added steps to change CI password and database status in the internal demo DB feature.
* Update _9999 DemoDB.feature
---------
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>