Files
opensourcepos/app/Language/bg/Items.php
T
objecttothis 6db3dde491 Bugfix tax names (#4677)
bugfix(items, validation): reject unsafe tax names and fix payments temp table collision

- Add unicode_alpha_numeric_punct rule (OSPOSRules) to allow accented/CJK
  chars in text fields while blocking HTML-unsafe chars (<, >) as
  defense-in-depth against injection
- Items controller: extract validateItemFields/validateBulkUpdateFields,
  validate tax_names on save and bulk update using new rule; add shared
  validateFields helper in Secure_Controller to DRY up validation +
  JSON error response
- Escape tax_group output in sales/quote.php and receipt_email.php views
  to harden output encoding at render time
- Rename sales_payments_temp -> sales_report_payments_temp (Summary_report)
  and -> sales_search_payments_temp (Sale model) to avoid name collision
  between concurrently-created temp tables
- AGENTS.md: document alignment rule for => columns when inserting new
  language keys

Tests:
- Add ItemsControllerTest covering postSave/bulkupdate tax_names validation
- Reject <, > in tax_names on /items/save and /items/bulkupdate
- Verify unicode and apostrophe-containing tax names are accepted
- Cover CSV import helpers: header generation (basic, multiple locations,
  attributes), stock-location/attribute header builders, get_csv_file
  parsing (plain, BOM-prefixed, multi-row)
- Validate required-header detection for import templates
- Remove outdated tax name test from SalesControllerTest
- Simplify Database class references in SalesControllerTest

i18n:
- Add tax_name_invalid translation to Items.php for 20+ locales, inserted
  alphabetically after tax_category in each file
- Normalize quote style in ar-EG/Items.php to single quotes
- Add ka/Items.php Georgian locale scaffold

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-09-01 10:59:29 +04:00

125 lines
7.8 KiB
PHP

<?php
return [
'add_minus' => 'Inventory to add or subtract.',
'allow_alt_description' => 'Allow Alternate Description',
'amount_entry' => '',
'bulk_edit' => 'Bulk Edit',
'buy_price_required' => 'Purchase Price is a required field.',
'cannot_be_deleted' => 'Could not delete selected Item(s), one or more of the selected Items have sales.',
'cannot_find_item' => 'Item not found.',
'categories' => '',
'category' => 'Category',
'category_new' => '',
'category_required' => 'Category is a required field.',
'change_all_to_allow_alt_desc' => 'Allow Alternate Description for all.',
'change_all_to_not_allow_allow_desc' => 'Do not allow Alternate Description for all.',
'change_all_to_serialized' => 'Change all to Serialized',
'change_all_to_unserialized' => 'Change all to Unserialized',
'change_image' => 'Change Image',
'confirm_bulk_edit' => 'Are you sure you want to edit selected Item(s)?',
'confirm_bulk_edit_wipe_taxes' => 'All Item Tax information will be replaced.',
'confirm_delete' => 'Are you sure you want to delete selected item(s)?',
'confirm_restore' => '',
'cost_price' => 'Wholesale Price',
'cost_price_number' => 'Wholesale Price must be a number.',
'cost_price_required' => 'Wholesale Price is a required field.',
'count' => 'Update Inventory',
'csv_import_failed' => 'CSV import failed',
'csv_import_invalid_location' => '',
'csv_import_nodata_wrongformat' => 'The uploaded file has no data or is formatted incorrectly.',
'csv_import_partially_failed' => 'Item import successful with some failures:',
'csv_import_success' => 'Item import successful.',
'current_quantity' => 'Current Quantity',
'default_pack_name' => '',
'description' => 'Description',
'details_count' => 'Inventory Count Details',
'do_nothing' => 'Do Nothing',
'edit' => '',
'edit_fields_you_want_to_update' => 'Edit the desired fields for selected item(s).',
'edit_multiple_items' => 'Editing Multiple Items',
'empty_upc_items' => 'Empty Barcode Items',
'error_adding_updating' => 'Error adding/updating item',
'error_updating_multiple' => 'Error updating items',
'generate_barcodes' => 'Generate Barcodes',
'hsn_code' => '',
'image' => 'Avatar',
'import_items_csv' => 'Item Import from CSV',
'info_provided_by' => 'Information provided by',
'inventory' => 'Inventory',
'inventory_CSV_import_quantity' => '',
'inventory_comments' => 'Comments',
'inventory_data_tracking' => 'Inventory Data Tracking',
'inventory_date' => 'Date',
'inventory_employee' => 'Employee',
'inventory_in_out_quantity' => 'In/Out Quantity',
'inventory_remarks' => 'Remarks',
'is_deleted' => 'Deleted',
'is_printed' => '',
'is_serialized' => 'Item has Serial Number',
'item' => 'Item',
'item_id' => '',
'item_number' => 'Barcode',
'item_number_duplicate' => 'Item Number is already present in the database.',
'item_number_invalid' => 'Item Number contains disallowed characters.',
'kit' => 'Kit',
'location' => 'Location',
'low_inventory_items' => 'Out Of Stock Items',
'low_sell_item' => '',
'manually_editing_of_quantity' => 'Manual Edit of Quantity',
'markup' => '',
'name' => 'Item Name',
'name_required' => 'Item Name is a required field.',
'new' => 'New Item',
'no_description_items' => 'No Description Items',
'no_items_to_display' => 'No Items to display.',
'none' => 'None',
'none_selected' => 'You have not selected any Item(s) to edit',
'nonstock' => 'Non-stocked',
'number_information' => 'Item Number',
'number_required' => 'Barcode is a required field.',
'one_or_multiple' => 'item(s)',
'pack_name' => '',
'qty_per_pack' => '',
'quantity' => 'Quantity',
'quantity_number' => 'Quantity must be a number.',
'quantity_required' => 'Quantity is a required field.',
'receiving_quantity' => 'Receiving Quantity',
'remove_image' => 'Remove Image',
'reorder_level' => 'Reorder Level',
'reorder_level_number' => 'Reorder Level must be a number.',
'reorder_level_required' => 'Reorder Level is a required field.',
'retrive_item_info' => 'Retrive Item Info',
'sales_tax_1' => 'Sales Tax',
'sales_tax_2' => 'Sales Tax 2',
'search_attributes' => 'Search Attributes',
'select_image' => 'Select Image',
'serialized_items' => 'Serialized Items',
'standard' => 'Standard',
'stock' => 'Stock',
'stock_location' => 'Stock location',
'stock_type' => 'Stock Type',
'successful_adding' => 'You have successfully added item',
'successful_bulk_edit' => 'You have successfully updated the selected item(s)',
'successful_deleted' => 'You have successfully deleted',
'successful_updating' => 'You have successfully updated item',
'supplier' => 'Supplier',
'tax_1' => 'Tax 1',
'tax_2' => 'Tax 2',
'tax_3' => '',
'tax_category' => '',
'tax_name_invalid' => 'Името на данъка съдържа непозволени символи.',
'tax_percent' => 'Tax Percent',
'tax_percent_number' => '',
'tax_percent_required' => 'Tax Percent is a required field.',
'tax_percents' => 'Tax Percent(s)',
'temp' => '',
'type' => 'Item Type',
'unit_price' => 'Retail Price',
'unit_price_number' => 'Unit price must be a number.',
'unit_price_required' => 'Retail Price is a required field.',
'upc_database' => 'Barcode Database',
'update' => 'Update Item',
'use_inventory_menu' => 'Use Inventory Menu',
];