Files
opensourcepos/app/Language/nl-BE/Sales.php
objecttothis 9c542efaf6 Feature: Payment reference code (#4587)
* 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>
2026-07-10 13:49:05 +04:00

236 lines
14 KiB
PHP

<?php
return [
'account_number' => 'Btw-nummer',
'add_payment' => 'Betaal',
'amount_due' => 'Te betalen',
'amount_tendered' => 'Ontvangen bedrag',
'authorized_signature' => 'Handtekening',
'cancel_sale' => 'Annuleer',
'cash' => 'Contant',
'cash_1' => '',
'cash_2' => '',
'cash_3' => '',
'cash_4' => '',
'cash_adjustment' => 'Liquiditeitsaanpassing',
'cash_deposit' => 'Cash',
'cash_filter' => 'Contant',
'change_due' => 'Wisselgeld terug',
'change_price' => 'Wijzig Verkoopprijs',
'check' => 'Waardebon',
'check_balance' => 'Waardebon terug',
'check_filter' => 'Waardebon',
'close' => '',
'comment' => 'Commentaar',
'comments' => 'Commentaar',
'company_name' => '',
'complete' => '',
'complete_sale' => 'Bevestig',
'confirm_cancel_sale' => 'Weet u zeker dat u deze verkoop wilt annuleren? Alle items zullen worden gewist.',
'confirm_delete' => 'Bent u zeker dat u de geselecteerde aankopen wil verwijderen?',
'confirm_restore' => 'Bent u zeker dat u de geselecteerde aankopen wil verwijderen?',
'credit' => 'Kredietkaart',
'credit_deposit' => 'Credit',
'credit_filter' => 'Kredietkaart',
'current_table' => '',
'customer' => 'Klant',
'customer_address' => 'Customer Address',
'customer_discount' => 'Korting',
'customer_email' => 'Customer Email',
'customer_location' => 'Customer Location',
'customer_mailchimp_status' => 'MailChimp staat',
'customer_optional' => '(Optioneel)',
'customer_required' => '(Vereist)',
'customer_total' => 'Totaal',
'customer_total_spent' => '',
'customers_available_points' => 'Beschikbare Punten',
'daily_sales' => '',
'date' => 'Datum',
'date_range' => 'Periode',
'date_required' => 'Gelieve een correcte datum in te vullen.',
'date_type' => 'Er moet een correcte datum ingevuld worden.',
'debit' => 'Bancontact',
'debit_filter' => '',
'delete' => 'Verwijderen Toegestaan',
'delete_confirmation' => 'Weet u zeker dat u deze verkoop wilt verwijderen? Deze actie kan niet ongedaan worden gemaakt.',
'delete_entire_sale' => 'Verwijder',
'delete_successful' => 'De geselecteerde verko(o)p(en) werden verwijderd.',
'delete_unsuccessful' => 'De geselecteerde aankopen konden niet worden verwijderd.',
'description_abbrv' => 'Omschr.',
'discard' => 'Annuleer',
'discard_quote' => '',
'discount' => 'Korting',
'discount_exceeds_item_total' => '',
'discount_included' => '% Korting',
'discount_percent_exceeds_100' => '',
'discount_short' => '%',
'due' => 'Tegoed',
'due_filter' => 'Tegoed',
'edit' => 'Bewerk',
'edit_item' => 'Bewaar',
'edit_sale' => 'Bewerk Ticket',
'email_receipt' => 'Email Ticket',
'employee' => 'Werknemer',
'entry' => 'Rij',
'error_editing_item' => 'Fout bij bewerken',
'find_or_scan_item' => 'Zoek/Scan Product',
'find_or_scan_item_or_receipt' => 'Zoek/Scan Product of Ticket',
'giftcard' => 'Cadeaubon',
'giftcard_balance' => 'Cadeaubon Resterend',
'giftcard_filter' => '',
'giftcard_number' => 'Cadeaubon nummer',
'group_by_category' => 'Per Categorie',
'group_by_type' => 'Per Type',
'hsn' => 'HSN',
'id' => 'Verkoop ID',
'include_prices' => 'Prijzen inclusief?',
'invoice' => 'Factuur',
'invoice_confirm' => 'Deze factuur zal verstuurd worden naar',
'invoice_enable' => 'Maak Factuur',
'invoice_filter' => 'Facturen',
'invoice_no_email' => 'Er werd geen email adres gevonden voor deze klant.',
'invoice_number' => 'Factuur #',
'invoice_number_duplicate' => 'Vul een uniek factuurnummer in.',
'invoice_sent' => 'Factuur verstuurd naar',
'invoice_total' => 'Totaal Factuur',
'invoice_type_custom_invoice' => 'Factuur (custom_invoice.php)',
'invoice_type_custom_tax_invoice' => 'Factuur (custom_tax_invoice.php)',
'invoice_type_invoice' => 'Factuur (invoice.php)',
'invoice_type_tax_invoice' => 'Factuur (tax_invoice.php)',
'invoice_unsent' => 'Fout bij het versturen van factuur naar',
'invoice_update' => 'Hernummer',
'item_insufficient_of_stock' => 'Product is niet meer in voorraad.',
'item_name' => 'Naam',
'item_number' => 'Product #',
'item_out_of_stock' => 'Product is niet meer in voorraad.',
'key_browser' => 'Handige Snelkoppelingen',
'key_cancel' => 'Annuleert Huidige Offerte/Factuur/Verkoop',
'key_customer_search' => 'Klant Zoeken',
'key_finish_quote' => 'Beëindig Offerte/Factuur zonder betaling',
'key_finish_sale' => 'Betaling Toevoegen en Factuur/Verkoop Voltooien',
'key_full' => 'Openen op Volledig Scherm',
'key_function' => 'Function',
'key_help' => 'Sneltoetsen',
'key_help_modal' => 'Open Sneltoetsen Venster',
'key_in' => 'Inzoomen',
'key_item_search' => 'Artikel Zoeken',
'key_out' => 'Uitzoomen',
'key_payment' => 'Betaalmiddel Toevoegen',
'key_print' => 'Huidige Pagina Afdrukken',
'key_restore' => 'Originele Weergave/Vergroting Herstellen',
'key_search' => 'Zoeken in Rapporten Tabellen',
'key_suspend' => 'Huidige Verkoop Uitstellen',
'key_suspended' => 'Toon Uitgestelde Verkopen',
'key_system' => 'Systeem Sneltoetsen',
'key_tendered' => 'Wijziging Aangeboden Bedrag',
'key_title' => 'Sneltoetsen Verkoop',
'mc' => '',
'mode' => 'Type Registratie',
'must_enter_numeric' => 'Het ontvangen bedrag moet een numerieke waarde zijn.',
'must_enter_numeric_giftcard' => 'Er moet een geldige code worden ingevuld voor de cadeaubon.',
'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 Product',
'no_description' => 'Geen',
'no_filter' => 'Alle',
'no_items_in_cart' => 'Er zijn geen verkopen geselecteerd.',
'no_sales_to_display' => 'Er werden geen verkopen gevonden.',
'none_selected' => 'U hebt geen verkopen geselecteerd.',
'nontaxed_ind' => ' . ',
'not_authorized' => 'Deze actie is niet toegestaan.',
'one_or_multiple' => 'Verkoop(en)',
'payment' => 'Betaalmethode',
'payment_amount' => 'Bedrag',
'payment_not_cover_total' => 'Betaalde hoeveelheid is onvoldoende.',
'payment_type' => 'Type',
'payments' => '',
'payments_total' => 'Betaald bedrag',
'price' => 'Prijs',
'print_after_sale' => 'Print Ticket',
'quantity' => 'Aantal',
'quantity_less_than_reorder_level' => 'Waarschuwing, de gewenste hoeveelheid stock is overschreden.',
'quantity_less_than_zero' => 'Waarschuwing: Gewenste hoeveelheid is onvoldoende. U kunt de verkoop nog steeds verwerken, maar controleer uw inventaris.',
'quantity_of_items' => 'Hoeveelheid van {0} items',
'quote' => 'Offerte',
'quote_number' => 'Offertenummer',
'quote_number_duplicate' => 'Offertenummer moet uniek zijn.',
'quote_sent' => 'Offerte verzonden naar',
'quote_unsent' => 'Offerte kon niet verzonden worden naar',
'receipt' => 'Ticket #',
'receipt_no_email' => 'De klant heeft geen geldig email adres.',
'receipt_number' => 'Ticket #',
'receipt_sent' => 'Ticket verstuurd naar',
'receipt_unsent' => 'Fout bij het versturen van ticket 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' => 'Type Terugbetaling',
'register' => 'Kassa',
'remove_customer' => 'Verwijder Klant',
'remove_discount' => '',
'return' => 'Retour',
'rewards' => 'Punten',
'rewards_balance' => 'Punten Balans',
'rewards_package' => 'Spaarpunten',
'rewards_remaining_balance' => 'Saldo Spaarpunten is ',
'sale' => 'Verkoop',
'sale_by_invoice' => 'Verkoop op Factuur',
'sale_for_customer' => 'Klant:',
'sale_time' => 'Datum',
'sales_tax' => 'VAT',
'sales_total' => '',
'select_customer' => 'Selecteer Klant',
'send_invoice' => 'Verstuur Factuur',
'send_quote' => 'Verstuur Offerte',
'send_receipt' => 'Verstuur Ticket',
'send_work_order' => 'Verstuur Werkorder',
'serial' => 'Nummer',
'service_charge' => '',
'show_due' => '',
'show_invoice' => 'Toon Factuur',
'show_receipt' => 'Toon Ticket',
'start_typing_customer_name' => 'Typ naam klant...',
'start_typing_item_name' => 'Typ naam product of barcode...',
'stock' => 'Voorraad',
'stock_location' => 'Stock Locatie',
'sub_total' => 'Subtotaal',
'successfully_deleted' => 'Uw aankoop werd verwijderd',
'successfully_restored' => 'U hebt hersteld',
'successfully_suspended_sale' => 'Wijzigingen bewaard voor verkoop.',
'successfully_updated' => 'Verkoop Update Geslaagd.',
'suspend_sale' => 'Bewaar',
'suspended_doc_id' => 'Document',
'suspended_sale_id' => 'ID',
'suspended_sales' => 'Bewaarde Aankopen',
'table' => 'Tafel',
'takings' => 'Overzicht',
'tax' => 'VAT',
'tax_id' => 'Tax id',
'tax_invoice' => 'Vat Factuur',
'tax_percent' => 'VAT %',
'taxed_ind' => 'T',
'total' => 'Totaal',
'total_tax_exclusive' => 'Totaal',
'transaction_failed' => 'Transactie mislukt.',
'unable_to_add_item' => 'Artikel toevoegen aan Verkoop mislukt',
'unsuccessfully_deleted' => 'De aankoop kon niet verwijderd worden.',
'unsuccessfully_restored' => 'De verkoop kon niet hersteld worden.',
'unsuccessfully_suspended_sale' => 'Uw verkoop werd niet bewaard.',
'unsuccessfully_updated' => 'Fout bij het bewaren van verkoop.',
'unsuspend' => 'Hervat',
'unsuspend_and_delete' => 'Actie',
'update' => 'Bewerk',
'upi' => 'UPI',
'visa' => '',
'wholesale' => '',
'work_order' => 'Werkorder',
'work_order_number' => 'Werkorder Nummer',
'work_order_number_duplicate' => 'Werkorder Nummer moet uniek zijn.',
'work_order_sent' => 'Werkorder verzonder naar',
'work_order_unsent' => 'Werkorder kon niet verzonden worden naar',
];