mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-13 05:47:23 -04:00
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>
125 lines
8.8 KiB
PHP
125 lines
8.8 KiB
PHP
<?php
|
|
|
|
return [
|
|
'add_minus' => 'Inventario da aggiungere o sottrarre.',
|
|
'allow_alt_description' => 'Permetti Descrizione alternativa',
|
|
'amount_entry' => 'Importo Inserito',
|
|
'bulk_edit' => 'Modifica collettiva',
|
|
'buy_price_required' => 'Prezzo d\'acquisto è un campo obbligatorio.',
|
|
'cannot_be_deleted' => 'Non è possibile eliminare l\'articolo/i selezionato, uno o più sono stati inseriti nelle vendite.',
|
|
'cannot_find_item' => 'Articolo non trovato.',
|
|
'categories' => '',
|
|
'category' => 'Categoria',
|
|
'category_new' => '',
|
|
'category_required' => 'Categoria è un campo obbligatorio.',
|
|
'change_all_to_allow_alt_desc' => 'Permetti descrizione alternativa a tutti.',
|
|
'change_all_to_not_allow_allow_desc' => 'Non permettere Descrizione Alternativa a tutti.',
|
|
'change_all_to_serialized' => 'Cambia tutti a Serializzati',
|
|
'change_all_to_unserialized' => 'Cambia tutti i Non-Serializzati',
|
|
'change_image' => 'Cambia Immagine',
|
|
'confirm_bulk_edit' => 'Sei sicuro di voler modificare gl\'Articoli selezionati?',
|
|
'confirm_bulk_edit_wipe_taxes' => 'Tutte le informazioni delle tasse degli Articoli saranno sostituiti.',
|
|
'confirm_delete' => 'Sei sicuro di voler eliminare gli Articoli selezionati?',
|
|
'confirm_restore' => 'Sei sicuro di voler ripristinare gli Articoli selezionati?',
|
|
'cost_price' => 'Prezzo all\'ingrosso',
|
|
'cost_price_number' => 'Prezzo all\'Ingrosso deve essere un numero.',
|
|
'cost_price_required' => 'Prezzo all\'ingrosso è un campo obbligatorio.',
|
|
'count' => 'Aggiorna Inventario',
|
|
'csv_import_failed' => 'Importazione CSV fallita',
|
|
'csv_import_invalid_location' => 'Trovata/e locazione/i di stock non valida/e: {0}. Solo le locazioni di stock valide sono ammesse.',
|
|
'csv_import_nodata_wrongformat' => 'L\'upload del file non ha dati o non è formattato correttamente.',
|
|
'csv_import_partially_failed' => 'Si sono verificati {0} errori di importazione degli elementi nelle righe: {1}. Nessuna riga è stata importata.',
|
|
'csv_import_success' => 'Importazione CSV dell\'articolo riuscita.',
|
|
'current_quantity' => 'Quantità Corrente',
|
|
'default_pack_name' => 'Ogni',
|
|
'description' => 'Descrizione',
|
|
'details_count' => 'Dettagli Conteggio Inventario',
|
|
'do_nothing' => 'Nessuna azione',
|
|
'edit' => '',
|
|
'edit_fields_you_want_to_update' => 'Modifica il campo desiderato dell\'articolo selezionato.',
|
|
'edit_multiple_items' => 'Modifica multi-Articoli',
|
|
'empty_upc_items' => 'Svuota Codice a Barre Articoli',
|
|
'error_adding_updating' => 'Errore aggiunta/aggiornamento Articoli',
|
|
'error_updating_multiple' => 'Errore aggiornamento Articoli',
|
|
'generate_barcodes' => 'Genera Codice a Barre',
|
|
'hsn_code' => 'Nomenclatura del sistema armonizzato',
|
|
'image' => 'Avatar',
|
|
'import_items_csv' => 'Importazione Articoli da CSV',
|
|
'info_provided_by' => 'Informazioni fornite da',
|
|
'inventory' => 'Inventario',
|
|
'inventory_CSV_import_quantity' => 'Quantità importata da CSV',
|
|
'inventory_comments' => 'Commenti',
|
|
'inventory_data_tracking' => 'Tracking dei Dati Inventario',
|
|
'inventory_date' => 'Data',
|
|
'inventory_employee' => 'Impiegato',
|
|
'inventory_in_out_quantity' => 'Quantità In/Out',
|
|
'inventory_remarks' => 'Osservazioni',
|
|
'is_deleted' => 'Eliminato',
|
|
'is_printed' => '',
|
|
'is_serialized' => 'L\'Articolo ha un Numero Seriale',
|
|
'item' => 'Articolo',
|
|
'item_id' => '',
|
|
'item_number' => 'Codice a Barre',
|
|
'item_number_duplicate' => 'Numero Articolo è già presente nel database.',
|
|
'item_number_invalid' => 'Il numero articolo contiene caratteri non consentiti.',
|
|
'kit' => 'Kit',
|
|
'location' => 'Posizione',
|
|
'low_inventory_items' => 'Articoli Fuori Stock',
|
|
'low_sell_item' => 'Articolo di vendita bassa',
|
|
'manually_editing_of_quantity' => 'Modifica manualmente la Quantità',
|
|
'markup' => '',
|
|
'name' => 'Nome Articolo',
|
|
'name_required' => 'Nome Articolo è un campo obbligatorio.',
|
|
'new' => 'Nuovo Articolo',
|
|
'no_description_items' => 'Nessuna Descrizione Articolo',
|
|
'no_items_to_display' => 'Nessun Articolo da mostrare.',
|
|
'none' => 'Nessuno',
|
|
'none_selected' => 'Non hai selezionato alcun articolo da modificare',
|
|
'nonstock' => 'Non-stockato',
|
|
'number_information' => 'Numero Articolo',
|
|
'number_required' => 'Il Codice a barre è un campo obbligatorio.',
|
|
'one_or_multiple' => 'articolo/i',
|
|
'pack_name' => 'Nome confezione',
|
|
'qty_per_pack' => 'Quantità per confezione',
|
|
'quantity' => 'Quantità',
|
|
'quantity_number' => 'Quantità deve essere un numero.',
|
|
'quantity_required' => 'Quantità è un campo richiesto.',
|
|
'receiving_quantity' => 'Quantità Ricezione',
|
|
'remove_image' => 'Rimuovi Immagine',
|
|
'reorder_level' => 'Livello di Riordino',
|
|
'reorder_level_number' => 'Livello di Riordino deve essere un numero.',
|
|
'reorder_level_required' => 'Livello di Riordino è un campo richiesto.',
|
|
'retrive_item_info' => 'Recupera le informazioni sull\'articolo',
|
|
'sales_tax_1' => 'Imposte di vendita',
|
|
'sales_tax_2' => 'Imposta di Vendita 2',
|
|
'search_attributes' => 'Attributi di ricerca',
|
|
'select_image' => 'Seleziona Immagine',
|
|
'serialized_items' => 'Articoli Serializzati',
|
|
'standard' => 'Standard',
|
|
'stock' => 'Magazzino',
|
|
'stock_location' => 'Posizione Magazzino',
|
|
'stock_type' => 'Tipo Magazzino',
|
|
'successful_adding' => 'Hai correttamente aggiunto un articolo',
|
|
'successful_bulk_edit' => 'Hai correttamente aggiornato uno o più articoli selezionati',
|
|
'successful_deleted' => 'Eliminazione conclusa correttamente',
|
|
'successful_updating' => 'Hai aggiornato un articolo correttamente',
|
|
'supplier' => 'Fornitore',
|
|
'tax_1' => 'Imposta 1',
|
|
'tax_2' => 'Imposta 2',
|
|
'tax_3' => '',
|
|
'tax_category' => 'Categoria fiscale',
|
|
'tax_name_invalid' => 'Il nome dell\'imposta contiene caratteri non consentiti.',
|
|
'tax_percent' => 'Percentuale Imposta',
|
|
'tax_percent_number' => 'Percentuale Imposta deve essere un numero',
|
|
'tax_percent_required' => 'Percentuale Imposta è un campo richiesto.',
|
|
'tax_percents' => 'Percentuale Imposta(e)',
|
|
'temp' => 'Temporanea',
|
|
'type' => 'Tipo Articoli',
|
|
'unit_price' => 'Prezzo al dettaglio',
|
|
'unit_price_number' => 'Prezzo unitario deve essere un numero.',
|
|
'unit_price_required' => 'Prezzo al dettaglio è un campo obbligatorio.',
|
|
'upc_database' => 'Archivio Codice a Barre',
|
|
'update' => 'Aggiorna Articolo',
|
|
'use_inventory_menu' => 'Usa Menu Inventario',
|
|
];
|