Files
opensourcepos/app/Language/de-CH/Items.php
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.6 KiB
PHP

<?php
return [
'add_minus' => 'Bestandsänderung',
'allow_alt_description' => 'Erlaube Alt. Bez.',
'amount_entry' => '',
'bulk_edit' => 'Sammeländerung',
'buy_price_required' => 'Einkaufspreis ist erforderlich',
'cannot_be_deleted' => 'Gewählte Artikel können nicht gelöscht werden, einer odere mehrere weisen Verkäufe auf',
'cannot_find_item' => 'Konnte Artikel nicht finden',
'categories' => '',
'category' => 'Kategorie',
'category_new' => '',
'category_required' => 'Kategorie ist erforderlich',
'change_all_to_allow_alt_desc' => 'Ändere alle zu Erlaube Alt. Bez.',
'change_all_to_not_allow_allow_desc' => 'Ändere alle zu NICHT Erlaube Alt. Bez.',
'change_all_to_serialized' => 'Ändere alle zu serialisiert',
'change_all_to_unserialized' => 'Ändere alle zu nicht serialisiert',
'change_image' => 'Change Image',
'confirm_bulk_edit' => 'Wollen Sie alle gewählten Artikel ändern?',
'confirm_bulk_edit_wipe_taxes' => 'All item tax information will be replaced!',
'confirm_delete' => 'Wollen Sie alle gewählten Artikel löschen?',
'confirm_restore' => '',
'cost_price' => 'Einstandspreis',
'cost_price_number' => 'Einstandspresi muss eine Zahl sein',
'cost_price_required' => 'Einstandspreis ist erforderlich',
'count' => 'Ändere Bestand',
'csv_import_failed' => 'CSV Import fehlerhaft',
'csv_import_invalid_location' => '',
'csv_import_nodata_wrongformat' => 'Your uploaded file has no data or wrong format',
'csv_import_partially_failed' => 'Most Items imported. But some were not, here is the list',
'csv_import_success' => 'Import of Items successful',
'current_quantity' => 'Aktuelle Menge',
'default_pack_name' => '',
'description' => 'Bezeichnung',
'details_count' => 'Lagerbestandsdetails',
'do_nothing' => 'Tue nichts',
'edit' => '',
'edit_fields_you_want_to_update' => 'Ändern Sie die Felder für ALLE gewählten Artikel?',
'edit_multiple_items' => 'Sammeländerung',
'empty_upc_items' => 'Leere UPC Artikel',
'error_adding_updating' => 'Fehler beim Hinzufügen/Ändern',
'error_updating_multiple' => 'Fehler beim Ändern',
'generate_barcodes' => 'Generiere Barcodes',
'hsn_code' => '',
'image' => 'Bild',
'import_items_csv' => 'Importiere Artikel mit CSV Datei',
'info_provided_by' => 'Info provided by',
'inventory' => 'Lagerbestand',
'inventory_CSV_import_quantity' => '',
'inventory_comments' => 'Bemerkungen',
'inventory_data_tracking' => '',
'inventory_date' => '',
'inventory_employee' => '',
'inventory_in_out_quantity' => '',
'inventory_remarks' => '',
'is_deleted' => 'Gelöscht',
'is_printed' => '',
'is_serialized' => 'Artikel hat Serien-Nr.',
'item' => 'Artikel',
'item_id' => '',
'item_number' => 'UPC/EAN/ISBN',
'item_number_duplicate' => 'Die Artikelnummer existiert bereits in der Datenbank',
'item_number_invalid' => 'Die Artikelnummer enthält nicht zulässige Zeichen.',
'kit' => '',
'location' => 'Ort',
'low_inventory_items' => 'nicht am Lager',
'low_sell_item' => '',
'manually_editing_of_quantity' => 'Manuelle Bestandesänderung',
'markup' => '',
'name' => 'Artikelname',
'name_required' => 'Artikelname ist erforderlich',
'new' => 'Neuer Artikel',
'no_description_items' => 'Artikel ohne Bezeichnung',
'no_items_to_display' => 'Keine Artikel zum Anzeigen',
'none' => 'Nichts',
'none_selected' => 'Sie haben keine Artikel zum Ändern gewählt',
'nonstock' => '',
'number_information' => 'Artikelnummer',
'number_required' => 'UPC/EAN/ISBN ist erforderlich',
'one_or_multiple' => 'Artikel',
'pack_name' => '',
'qty_per_pack' => '',
'quantity' => 'Menge',
'quantity_number' => 'Menge muss eine Zahl sein',
'quantity_required' => 'Menge ist erforderlich',
'receiving_quantity' => 'Eingangsmenge',
'remove_image' => 'Remove Image',
'reorder_level' => 'Mindestbestand',
'reorder_level_number' => 'Mindestbestand muss eine Zahl sein',
'reorder_level_required' => 'Mindestbestand ist erforderlich',
'retrive_item_info' => 'Artikelinformation',
'sales_tax_1' => 'Umsatzsteuer 1',
'sales_tax_2' => 'Umsatzsteuer 2',
'search_attributes' => 'Suche in Zusatzfeldern',
'select_image' => 'Select Image',
'serialized_items' => 'Serialisierte Artikel',
'standard' => '',
'stock' => '',
'stock_location' => 'Lagerort',
'stock_type' => '',
'successful_adding' => 'Artikel erfolgreich hinzugefügt',
'successful_bulk_edit' => 'Die gewählten Artikel wurden erforlgreich geändert',
'successful_deleted' => 'Löschung erfolgreich',
'successful_updating' => 'Änderung erfolgreich',
'supplier' => 'Lieferant',
'tax_1' => 'MWSt 1',
'tax_2' => 'MWSt 2',
'tax_3' => '',
'tax_category' => '',
'tax_name_invalid' => 'Der Steuername enthält nicht erlaubte Zeichen.',
'tax_percent' => 'MWSt %',
'tax_percent_number' => '',
'tax_percent_required' => 'MWSt % ist erforderlich',
'tax_percents' => 'Steuerprozent(e)',
'temp' => '',
'type' => '',
'unit_price' => 'Preis',
'unit_price_number' => 'Preis muss eine Zahl sein',
'unit_price_required' => 'Preis ist erforderlich',
'upc_database' => 'UPC Datenbank',
'update' => 'Ändere Artikel',
'use_inventory_menu' => 'Verwende Bestandesmenu',
];