Files
opensourcepos/app/Language/tr/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
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
return [
'account_number' => 'Hesap Numarası',
'add_payment' => 'Ödeme Ekle',
'amount_due' => 'Kalan Ödeme',
'amount_tendered' => 'Ödenen Tutar',
'authorized_signature' => 'Yetkili İmza',
'cancel_sale' => 'İptal Et',
'cash' => 'Nakit',
'cash_1' => '',
'cash_2' => '',
'cash_3' => '',
'cash_4' => '',
'cash_adjustment' => 'Nakit Düzeltimi',
'cash_deposit' => 'Nakit Depozito',
'cash_filter' => 'Nakit',
'change_due' => 'Para Üstü',
'change_price' => 'Satış Fiyatını Değiştir',
'check' => 'Çek',
'check_balance' => 'Çek bakiyesi',
'check_filter' => 'Çek',
'close' => '',
'comment' => 'Yorum',
'comments' => 'Yorumlar',
'company_name' => '',
'complete' => '',
'complete_sale' => 'Satışı Tamamla',
'confirm_cancel_sale' => 'Bu satışı temizlemek istiyor musunuz? Tüm ürünler temizlenecek.',
'confirm_delete' => 'Seçilen satışları silmek istediğinize emin misiniz?',
'confirm_restore' => 'Seçilen satışları kurtarmak istediğinize emin misiniz?',
'credit' => 'Kredi Kartı',
'credit_deposit' => 'Kredi Depozito',
'credit_filter' => 'Kredi Kartı',
'current_table' => '',
'customer' => 'Müşteri',
'customer_address' => 'Customer Address',
'customer_discount' => 'İskonto',
'customer_email' => 'E-Posta',
'customer_location' => 'Konum',
'customer_mailchimp_status' => 'MailChimp durumu',
'customer_optional' => '(Geciken Ödemeler İçin Gerekli)',
'customer_required' => '(Gerekli)',
'customer_total' => 'Total',
'customer_total_spent' => '',
'customers_available_points' => 'Var Olan Puanlar',
'daily_sales' => '',
'date' => 'Satış Tarihi',
'date_range' => 'Tarih Aralığı',
'date_required' => 'Doğru tarih girilmelidir.',
'date_type' => 'Tarih alanı zorunludur.',
'debit' => 'Banka Kartı',
'debit_filter' => '',
'delete' => 'Silmeye izin ver',
'delete_confirmation' => 'Satışı silmek istediğinize emin misiniz, bu işlem geri alınamaz.',
'delete_entire_sale' => 'Satışın tamamını sil',
'delete_successful' => 'Satışı sildiniz.',
'delete_unsuccessful' => 'Satışı silemediniz.',
'description_abbrv' => 'Tanım.',
'discard' => 'İptal et',
'discard_quote' => '',
'discount' => 'İsko',
'discount_exceeds_item_total' => '',
'discount_included' => '% İskonto',
'discount_percent_exceeds_100' => '',
'discount_short' => '%',
'due' => 'Vade',
'due_filter' => 'Vade',
'edit' => 'Düzenle',
'edit_item' => 'Düzenle',
'edit_sale' => 'Satışı Düzenle',
'email_receipt' => 'Fişi E-Postala',
'employee' => 'Personel',
'entry' => 'Girdi',
'error_editing_item' => 'Ürün düzenleme hatası',
'find_or_scan_item' => 'Ürün Bul/Oku',
'find_or_scan_item_or_receipt' => 'Ürün yada Fiş Bul/Oku',
'giftcard' => 'Hediye Çeki',
'giftcard_balance' => 'Hediye Çeki Bakiyesi',
'giftcard_filter' => '',
'giftcard_number' => 'Hediye Çeki No',
'group_by_category' => 'Kategoriye göre gurupla',
'group_by_type' => 'Tipe göre gurupla',
'hsn' => 'HSN',
'id' => 'Satış No',
'include_prices' => 'Fiyat Dahil?',
'invoice' => 'Fatura',
'invoice_confirm' => 'Bu fatura şuna gönderilecek',
'invoice_enable' => 'Fatura Numarası',
'invoice_filter' => 'Faturalar',
'invoice_no_email' => 'Bu müşterinin geçerli e-posta adresi yok.',
'invoice_number' => 'Fatura #',
'invoice_number_duplicate' => 'Fatura Numarası {0} eşsiz olmalıdır.',
'invoice_sent' => 'Fatura gönderildi:',
'invoice_total' => 'Fatura Toplamı',
'invoice_type_custom_invoice' => 'Özel Fatura (custom_invoice.php)',
'invoice_type_custom_tax_invoice' => 'Özel Vergi Fatura (custom_tax_invoice.php)',
'invoice_type_invoice' => 'Fatura (invoice.php)',
'invoice_type_tax_invoice' => 'Vergi Faturası (tax_invoice.php)',
'invoice_unsent' => 'Fatura gönderilemedi',
'invoice_update' => 'Yeniden Say',
'item_insufficient_of_stock' => 'Ürün Stoğu Yetersiz.',
'item_name' => 'Ürün Adı',
'item_number' => 'Ürün No',
'item_out_of_stock' => 'Ürün stokta yok.',
'key_browser' => '',
'key_cancel' => 'Cancels Current Quote/Invoice/Sale',
'key_customer_search' => 'Customer Search',
'key_finish_quote' => 'Finish Quote/Invoice witdout payment',
'key_finish_sale' => 'Add Payment and Complete Invoice/Sale',
'key_full' => '',
'key_function' => 'Function',
'key_help' => 'Shortcuts',
'key_help_modal' => 'Open Shortcuts Window',
'key_in' => '',
'key_item_search' => 'Item Search',
'key_out' => '',
'key_payment' => 'Add Payment',
'key_print' => '',
'key_restore' => '',
'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' => 'Kayıt Kipi',
'must_enter_numeric' => 'Ödenen Tutar sayı olmalıdır.',
'must_enter_numeric_giftcard' => 'Hediye Çeki Numarası sayı olmalıdır.',
'must_enter_reference_code' => 'Referans/Alım numarası girilmelidir.',
'negative_discount_invalid' => '',
'negative_price_invalid' => '',
'negative_quantity_invalid' => '',
'negative_total_invalid' => '',
'new_customer' => 'Yeni Müşteri',
'new_item' => 'Yeni Ürün',
'no_description' => 'Açıklama yok',
'no_filter' => 'Tümü',
'no_items_in_cart' => 'Sepette ürün yok.',
'no_sales_to_display' => 'Gösterilecek satış yok.',
'none_selected' => 'Silinecek satış seçmediniz.',
'nontaxed_ind' => ' ',
'not_authorized' => 'Bu işlem için yetkisiz.',
'one_or_multiple' => 'Satış(lar)',
'payment' => 'Ödeme Türü',
'payment_amount' => 'Tutar',
'payment_not_cover_total' => 'Ödemeler toplam tutarı karşılamıyor.',
'payment_type' => 'Tür',
'payments' => '',
'payments_total' => 'Ödemeler Toplamı',
'price' => 'Fiyat',
'print_after_sale' => 'Satıştan sonra yazdır',
'quantity' => 'Adet',
'quantity_less_than_reorder_level' => 'Dikkat: İlgili Öge için İstenen Stok, Yeniden Düzenleme Düzeyinin altında.',
'quantity_less_than_zero' => 'Dikkat: İstenen Stok yetersiz. Satışı sürdürebilirsiniz ama stoğunuzu gözden geçirin.',
'quantity_of_items' => '{0} Ögenin Miktarı',
'quote' => 'Teklif',
'quote_number' => 'Teklif Sayısı',
'quote_number_duplicate' => 'Teklif Sayısı eşsiz olmalıdır.',
'quote_sent' => 'Teklif şuna gönderildi:',
'quote_unsent' => 'Teklif şuna gönderilemedi:',
'receipt' => 'Satış Fişi',
'receipt_no_email' => 'Müşteriye ait geçerli e-posta adresi yok.',
'receipt_number' => 'Fiş #',
'receipt_sent' => 'Fiş gönderildi:',
'receipt_unsent' => 'Fiş gönderilemedi:',
'reference_code' => 'Ödeme Referans Kodu',
'reference_code_invalid_characters' => 'Referans kodu yalnızca harf ve rakam içermelidir.',
'reference_code_length_error' => 'Referans kodunun uzunluğu geçersiz.',
'refund' => 'Geri Ödeme Türü',
'register' => 'Satış Kaydı',
'remove_customer' => 'Müşteriyi Kaldır',
'remove_discount' => '',
'return' => 'İade',
'rewards' => 'Ödül Puanları',
'rewards_balance' => 'Ödül Puanı Bakiyesi',
'rewards_package' => 'Ödüller',
'rewards_remaining_balance' => 'Ödül Puanı kalan değeri ',
'sale' => 'Satış',
'sale_by_invoice' => 'Faturalı Satış',
'sale_for_customer' => 'Müşteri:',
'sale_time' => 'Saat',
'sales_tax' => 'Satış Vergisi',
'sales_total' => '',
'select_customer' => 'Müşteri Seç',
'send_invoice' => 'Fatura Gönder',
'send_quote' => 'Teklif Gönder',
'send_receipt' => 'Fiş Gönder',
'send_work_order' => 'İş Emri Gönder',
'serial' => 'Seri',
'service_charge' => '',
'show_due' => '',
'show_invoice' => 'Faturayı Göster',
'show_receipt' => 'Fişi Göster',
'start_typing_customer_name' => 'Müşteri ayrıntılarını yazın...',
'start_typing_item_name' => 'Ürün adı yazın veya barkod taratın...',
'stock' => 'Stok',
'stock_location' => 'Stok yeri',
'sub_total' => 'Ara Toplam',
'successfully_deleted' => 'Satış başarıyla silindi',
'successfully_restored' => 'Satış başarıyla kurtarıldı',
'successfully_suspended_sale' => 'Satış başarıyla askıya alındı.',
'successfully_updated' => 'Satış başarıyla güncellendi.',
'suspend_sale' => 'Askıya Al',
'suspended_doc_id' => 'Belge',
'suspended_sale_id' => 'Kimlik',
'suspended_sales' => 'Askıdaki Satışlar',
'table' => 'Masa',
'takings' => 'Günlük Satış',
'tax' => 'Vergi',
'tax_id' => 'Vergi Numarası',
'tax_invoice' => 'Vergi Faturası',
'tax_percent' => 'Vergi %',
'taxed_ind' => 'V',
'total' => 'Toplam',
'total_tax_exclusive' => 'Vergi hariç',
'transaction_failed' => 'Satış işlemi hatası.',
'unable_to_add_item' => 'Ürün satışa eklenemedi',
'unsuccessfully_deleted' => 'Satış silinemedi.',
'unsuccessfully_restored' => 'Satış onarılamadı.',
'unsuccessfully_suspended_sale' => 'Satış askıya alınamadı.',
'unsuccessfully_updated' => 'Satış düzenlenemedi.',
'unsuspend' => 'Satışa Al',
'unsuspend_and_delete' => 'Eylem',
'update' => 'Güncelle',
'upi' => 'UPI',
'visa' => '',
'wholesale' => '',
'work_order' => 'İş Emri',
'work_order_number' => 'İş Emri Numarası',
'work_order_number_duplicate' => 'İş Emri Numarası diğerinden farklı olmalı.',
'work_order_sent' => 'İş Emri gönderildi:',
'work_order_unsent' => 'İş Emri gönderilemedi:',
];