mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-26 14:47:06 -04:00
* Add `reference_code` to sale payment queries and group by statements Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * Refactor `Sales` controller to improve payment handling readability and replace snake_case with camelCase variables Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * Add missing translations for `Sales` language file and include new keys like `must_enter_rrn` and `reference_code` Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * Refactor `Sales` payment handling to use camelCase and extend `addPayment` with `referenceCode` support Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * Refactor `Sales` models, controllers, and libraries to adopt camelCase naming conventions and improve readability Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * Add translations and updates for `must_enter_reference_code` and `reference_code` across language files and update `Sales` controller to replace `must_enter_rrn` with the new key Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * feat(sales): add reference code input and payment type helper - Add `get_reference_code_payment_types()` to locale_helper as single source of truth for card-requiring payment types - Add reference code row to register view, shown/hidden via JS based on selected payment type - Fix payment type dropdown width to 100% for consistent layout - Add min-width to payment buttons and right-padding to button group Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * feat(config): add payment reference code length configuration - Add payment_reference_code_min and payment_reference_code_max fields to Config controller save logic - Add translation keys for reference code length limits across all language files (min/max label + section header) - Align array key formatting in Config controller for readability Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * style(lang): normalize string delimiters to single quotes across all language files Convert double-quoted array keys and values to single quotes in all app/Language/*/Config.php and app/Language/*/Sales.php variants. No translation content changed — formatting only. Also add Localization section to AGENTS.md documenting language file conventions for new keys and fallback behavior. Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * feat(lang): add payment reference code length translations Add localized strings for payment_reference_code_length_limits, payment_reference_code_length_max_label, and payment_reference_code_length_min_label across all supported locales. Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * test(config,sales): add payment reference code min/max validation tests - Add baseLocalePayload() helper in ConfigTest for postSaveLocale tests - Add testSaveLocale_AcceptsValidReferenceCodeMinMax and related boundary tests - Add Sale_libPaymentTest for payment reference code validation in Sale_lib Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * fix(sales): add type-specific validation for amount_tendered Gift card payments use amount_tendered as giftcard number (integer); cash/other payments require decimal_locale format. Apply correct validation rule per payment type instead of generic required. Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * fix(lang): replace self-closing </br> with <br> in all locales Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * fix(sales): use configurable precision in discount comparison Replace hardcoded precision 2 with totals_decimals() when comparing discount against item total via bccomp/bcmul, so discount validation respects the configured decimal precision setting. Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * fix(lang): correct Azerbaijani translations in Config.php Replace placeholder/mismatched strings with accurate translations: - email_mailpath, email_smtp_pass, invoice_email_message - number_locale_invalid/required, receipt_template - reward_configuration, right, tax_decimals, theme Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * feat(sales): add reference code support to payment edit flow - Add reference_code field to new payment row in sale edit form - Persist reference_code on insert in Sale model - Validate reference_code_new in Sales controller using configurable min/max length rules Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * feat(lang): add Georgian (ka) language stubs for Config and Sales Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * Match the fallback maximum reference_code length to the maximum of the field in the db Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> * Bug fixes - Add validation of UI settings to prevent overridden values from being passed. - Correct maximum value in JS for payment_reference_code maximum length to 40. - Fix bug causing copy_entire_sale() to incorrectly copy the reference code and cash_adjustment Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> --------- Signed-off-by: Travis Garrison <travis@chiraqbookstore.com> Co-authored-by: Travis Garrison <travis@chiraqbookstore.com>
236 lines
15 KiB
PHP
236 lines
15 KiB
PHP
<?php
|
|
|
|
return [
|
|
'account_number' => 'Account #',
|
|
'add_payment' => 'Betaling toevoegen',
|
|
'amount_due' => 'Te betalen bedrag',
|
|
'amount_tendered' => 'Betaald bedrag',
|
|
'authorized_signature' => 'Geautoriseerde handtekening',
|
|
'cancel_sale' => 'Annuleren',
|
|
'cash' => 'Contant',
|
|
'cash_1' => '',
|
|
'cash_2' => '',
|
|
'cash_3' => '',
|
|
'cash_4' => '',
|
|
'cash_adjustment' => 'Contant correctie',
|
|
'cash_deposit' => 'Contact storting',
|
|
'cash_filter' => 'Contant',
|
|
'change_due' => 'Wisselgeld tegoed',
|
|
'change_price' => 'Verkoopprijs wijzigen',
|
|
'check' => 'Cheque',
|
|
'check_balance' => 'Cheque restant',
|
|
'check_filter' => 'Cheque',
|
|
'close' => '',
|
|
'comment' => 'Opmerking',
|
|
'comments' => 'Opmerkingen',
|
|
'company_name' => '',
|
|
'complete' => '',
|
|
'complete_sale' => 'Voltooien',
|
|
'confirm_cancel_sale' => 'Weet u zeker dat u deze verkoop wilt wissen? Alle artikelen worden gewist.',
|
|
'confirm_delete' => 'Weet u zeker dat u de geselecteerde verko(o)p(en) wilt verwijderen?',
|
|
'confirm_restore' => 'Weet u zeker dat u de geselecteerde verko(o)p(en) wilt herstellen?',
|
|
'credit' => 'Creditcard',
|
|
'credit_deposit' => 'Krediet storting',
|
|
'credit_filter' => 'Creditcard',
|
|
'current_table' => '',
|
|
'customer' => 'Klant',
|
|
'customer_address' => 'Adres',
|
|
'customer_discount' => 'Korting',
|
|
'customer_email' => 'E-mail',
|
|
'customer_location' => 'Locatie',
|
|
'customer_mailchimp_status' => 'MailChimp Status',
|
|
'customer_optional' => '(Vereist voor te betalen betalingen)',
|
|
'customer_required' => '(Vereist)',
|
|
'customer_total' => 'Totaal',
|
|
'customer_total_spent' => '',
|
|
'customers_available_points' => 'Beschikbare punten',
|
|
'daily_sales' => '',
|
|
'date' => 'Verkoopdatum',
|
|
'date_range' => 'Datumbereik',
|
|
'date_required' => 'Een juiste datum moet ingevuld worden.',
|
|
'date_type' => 'Datum is een vereist veld.',
|
|
'debit' => 'Betaalpas',
|
|
'debit_filter' => '',
|
|
'delete' => 'Verwijderen toestaan',
|
|
'delete_confirmation' => 'Weet u zeker dat u deze verkoop wilt verwijderen? Deze actie kan niet ongedaan worden gemaakt.',
|
|
'delete_entire_sale' => 'Volledige verkoop verwijderen',
|
|
'delete_successful' => 'Verkoop verwijderd.',
|
|
'delete_unsuccessful' => 'Verkoop verwijderen mislukt.',
|
|
'description_abbrv' => 'Beschr.',
|
|
'discard' => 'Negeren',
|
|
'discard_quote' => '',
|
|
'discount' => 'Krtng',
|
|
'discount_exceeds_item_total' => '',
|
|
'discount_included' => '% korting',
|
|
'discount_percent_exceeds_100' => '',
|
|
'discount_short' => '%',
|
|
'due' => 'Te betalen',
|
|
'due_filter' => 'Te betalen',
|
|
'edit' => 'Bewerken',
|
|
'edit_item' => 'Artikel bewerken',
|
|
'edit_sale' => 'Verkoop bewerken',
|
|
'email_receipt' => 'E-mail kassabon',
|
|
'employee' => 'Werknemer',
|
|
'entry' => 'Vermelding',
|
|
'error_editing_item' => 'Fout bij artikel bewerken',
|
|
'find_or_scan_item' => 'Artikel zoeken of scannen',
|
|
'find_or_scan_item_or_receipt' => 'Artikel of kassabon vinden of scannen',
|
|
'giftcard' => 'Cadeaubon',
|
|
'giftcard_balance' => 'Cadeaubon saldo',
|
|
'giftcard_filter' => '',
|
|
'giftcard_number' => 'Cadeaubonnummer',
|
|
'group_by_category' => 'Groeperen op categorie',
|
|
'group_by_type' => 'Groeperen op soort',
|
|
'hsn' => 'HSN',
|
|
'id' => 'Verkoop ID',
|
|
'include_prices' => 'Prijzen opnemen?',
|
|
'invoice' => 'Factuur',
|
|
'invoice_confirm' => 'Deze factuur zal verzonden worden naar',
|
|
'invoice_enable' => 'Factuurnummer',
|
|
'invoice_filter' => 'Facturen',
|
|
'invoice_no_email' => 'Deze klant bevat geen geldig e-mailadres.',
|
|
'invoice_number' => 'Factuur #',
|
|
'invoice_number_duplicate' => 'Factuurnummer {0} moet uniek zijn.',
|
|
'invoice_sent' => 'Factuur verzonden naar',
|
|
'invoice_total' => 'Factuurtotaal',
|
|
'invoice_type_custom_invoice' => 'Aangepaste factuur (custom_invoice.php)',
|
|
'invoice_type_custom_tax_invoice' => 'Aangepaste belastingfactuur (custom_tax_invoice.php)',
|
|
'invoice_type_invoice' => 'Factuur (invoice.php)',
|
|
'invoice_type_tax_invoice' => 'Belastingfactuur (tax_invoice.php)',
|
|
'invoice_unsent' => 'Fout bij verzenden van factuur naar',
|
|
'invoice_update' => 'Opnieuw tellen',
|
|
'item_insufficient_of_stock' => 'Artikel heeft onvoldoende voorraad.',
|
|
'item_name' => 'Artikelnaam',
|
|
'item_number' => 'Artikel #',
|
|
'item_out_of_stock' => 'Artikel is niet voorradig.',
|
|
'key_browser' => 'Handige snelkoppelingen',
|
|
'key_cancel' => 'Cancels Current Quote/Invoice/Sale',
|
|
'key_customer_search' => 'Customer Search',
|
|
'key_finish_quote' => 'Voltooi Offerte/Factuur zonder betaling',
|
|
'key_finish_sale' => 'Add Payment and Complete Invoice/Sale',
|
|
'key_full' => 'Openen in volledig scherm',
|
|
'key_function' => 'Function',
|
|
'key_help' => 'Shortcuts',
|
|
'key_help_modal' => 'Open Shortcuts Window',
|
|
'key_in' => 'Inzoomen',
|
|
'key_item_search' => 'Item Search',
|
|
'key_out' => 'Uitzoomen',
|
|
'key_payment' => 'Add Payment',
|
|
'key_print' => 'Huidige pagina afdrukken',
|
|
'key_restore' => 'Originele weergave/grootte herstellen',
|
|
'key_search' => '',
|
|
'key_suspend' => 'Suspend Current Sale',
|
|
'key_suspended' => 'Show Suspended Sales',
|
|
'key_system' => '',
|
|
'key_tendered' => 'Edit Amount Tendered',
|
|
'key_title' => 'Sales Keyboard Shortcuts',
|
|
'mc' => '',
|
|
'mode' => 'Registratie modus',
|
|
'must_enter_numeric' => 'Betaald bedrag moet een getal zijn.',
|
|
'must_enter_numeric_giftcard' => 'Cadeaubonnummer moet een getal zijn.',
|
|
'must_enter_reference_code' => 'Referentie-/ophaalnummer moet worden ingevoerd.',
|
|
'negative_discount_invalid' => '',
|
|
'negative_price_invalid' => '',
|
|
'negative_quantity_invalid' => '',
|
|
'negative_total_invalid' => '',
|
|
'new_customer' => 'Nieuwe klant',
|
|
'new_item' => 'Nieuw artikel',
|
|
'no_description' => 'Geen beschrijving',
|
|
'no_filter' => 'Alles',
|
|
'no_items_in_cart' => 'Geen artikelen in de winkelwagen.',
|
|
'no_sales_to_display' => 'Geen verkopen om te weergeven.',
|
|
'none_selected' => 'Geen verko(o)p(en) geselecteerd om te verwijderen.',
|
|
'nontaxed_ind' => ' ',
|
|
'not_authorized' => 'Deze actie is niet geautoriseerd.',
|
|
'one_or_multiple' => 'Verko(o)p(en)',
|
|
'payment' => 'Betalingssoort',
|
|
'payment_amount' => 'Bedrag',
|
|
'payment_not_cover_total' => 'Betaalde bedrag moet groter of gelijk zijn aan totaal.',
|
|
'payment_type' => 'Soort',
|
|
'payments' => '',
|
|
'payments_total' => 'Betalingstotaal',
|
|
'price' => 'Prijs',
|
|
'print_after_sale' => 'Afdrukken na verkoop',
|
|
'quantity' => 'Hoeveelheid',
|
|
'quantity_less_than_reorder_level' => 'Waarschuwing: gewenste hoeveelheid is lager dan het opnieuw bestellen niveau voor dit artikel.',
|
|
'quantity_less_than_zero' => 'Waarschuwing: gewenste hoeveelheid is onvoldoende. De verkoop kan nog steeds verwerkt worden, maar controleer de voorraad.',
|
|
'quantity_of_items' => 'Hoeveelheid van {0} artikelen',
|
|
'quote' => 'Offerte',
|
|
'quote_number' => 'Offertenummer',
|
|
'quote_number_duplicate' => 'Offertenummer moet uniek zijn.',
|
|
'quote_sent' => 'Offerte verzonden naar',
|
|
'quote_unsent' => 'Offerte niet verzonden naar',
|
|
'receipt' => 'Kassabon',
|
|
'receipt_no_email' => 'Deze klant bevat geen geldig e-mailadres.',
|
|
'receipt_number' => 'Verkoop #',
|
|
'receipt_sent' => 'Kassabon verzonden naar',
|
|
'receipt_unsent' => 'Kassabon niet verzonden naar',
|
|
'reference_code' => 'Betalingsreferentiecode',
|
|
'reference_code_invalid_characters' => 'De betalingsreferentiecode mag alleen letters en cijfers bevatten.',
|
|
'reference_code_length_error' => 'De lengte van de betalingsreferentiecode is ongeldig.',
|
|
'refund' => 'Terugbetaling soort',
|
|
'register' => 'Verkoopregister',
|
|
'remove_customer' => 'Klant verwijderen',
|
|
'remove_discount' => '',
|
|
'return' => 'Retourneren',
|
|
'rewards' => 'Beloningspunten',
|
|
'rewards_balance' => 'Beloningspunten balans',
|
|
'rewards_package' => 'Beloningen',
|
|
'rewards_remaining_balance' => 'Resterende beloningspunten waarde is ',
|
|
'sale' => 'Verkoop',
|
|
'sale_by_invoice' => 'Verkopen op factuur',
|
|
'sale_for_customer' => 'Klant:',
|
|
'sale_time' => 'Tijd',
|
|
'sales_tax' => 'BTW',
|
|
'sales_total' => '',
|
|
'select_customer' => 'Klant selecteren',
|
|
'send_invoice' => 'Factuur verzenden',
|
|
'send_quote' => 'Offerte verzenden',
|
|
'send_receipt' => 'Kassabon verzenden',
|
|
'send_work_order' => 'Werkorder verzenden',
|
|
'serial' => 'Serieel',
|
|
'service_charge' => '',
|
|
'show_due' => '',
|
|
'show_invoice' => 'Factuur weergeven',
|
|
'show_receipt' => 'Kassabon weergeven',
|
|
'start_typing_customer_name' => 'Begin met typen klantgegevens...',
|
|
'start_typing_item_name' => 'Begin met typen artikelnaam of scan streepjescode...',
|
|
'stock' => 'Voorraad',
|
|
'stock_location' => 'Voorraadlocatie',
|
|
'sub_total' => 'Subtotaal',
|
|
'successfully_deleted' => 'U heeft verwijderd',
|
|
'successfully_restored' => 'U heeft hersteld',
|
|
'successfully_suspended_sale' => 'Verkoop gesluimerd.',
|
|
'successfully_updated' => 'Verkoop bijgewerkt.',
|
|
'suspend_sale' => 'Sluimeren',
|
|
'suspended_doc_id' => 'Document',
|
|
'suspended_sale_id' => 'ID',
|
|
'suspended_sales' => 'Gesluimerd',
|
|
'table' => 'Tafel',
|
|
'takings' => 'Dagelijkse verkopen',
|
|
'tax' => 'Belasting',
|
|
'tax_id' => 'Belasting ID',
|
|
'tax_invoice' => 'Belastingfactuur',
|
|
'tax_percent' => 'Belasting %',
|
|
'taxed_ind' => 'B',
|
|
'total' => 'Totaal',
|
|
'total_tax_exclusive' => 'Belasting uitsluiten',
|
|
'transaction_failed' => 'Verkooptransactie mislukt.',
|
|
'unable_to_add_item' => 'Artikel toevoegen aan verkoop mislukt',
|
|
'unsuccessfully_deleted' => 'Verko(o)p(en) verwijderen mislukt.',
|
|
'unsuccessfully_restored' => 'Verko(o)p(en) herstellen mislukt.',
|
|
'unsuccessfully_suspended_sale' => 'Verkoop sluimeren mislukt.',
|
|
'unsuccessfully_updated' => 'Verkoop bijwerken mislukt.',
|
|
'unsuspend' => 'Ontsluimeren',
|
|
'unsuspend_and_delete' => 'Actie',
|
|
'update' => 'Bijwerken',
|
|
'upi' => 'UPI',
|
|
'visa' => '',
|
|
'wholesale' => '',
|
|
'work_order' => 'Werkorder',
|
|
'work_order_number' => 'Werkordernummer',
|
|
'work_order_number_duplicate' => 'Werkordernummer moet uniek zijn.',
|
|
'work_order_sent' => 'Werkorder verzonden naar',
|
|
'work_order_unsent' => 'Werkorder niet verzonden naar',
|
|
];
|