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>
336 lines
24 KiB
PHP
336 lines
24 KiB
PHP
<?php
|
||
|
||
return [
|
||
'address' => '公司地址',
|
||
'address_required' => '公司地址為必填.',
|
||
'all_set' => '所有文件權限設置正確!',
|
||
'allow_duplicate_barcodes' => '允許重複的條碼',
|
||
'apostrophe' => '撇號',
|
||
'backup_button' => 'Backup',
|
||
'backup_database' => 'Backup Database',
|
||
'barcode' => '條碼',
|
||
'barcode_company' => '公司名稱',
|
||
'barcode_configuration' => '條碼配置',
|
||
'barcode_content' => '條碼內容',
|
||
'barcode_first_row' => '第 1 行',
|
||
'barcode_font' => 'Font',
|
||
'barcode_formats' => '輸入格式',
|
||
'barcode_generate_if_empty' => '為空時生成.',
|
||
'barcode_height' => '高度(像素)',
|
||
'barcode_id' => 'Item Id/Name',
|
||
'barcode_info' => '條碼配置信息',
|
||
'barcode_layout' => '條碼佈局',
|
||
'barcode_name' => '客戶',
|
||
'barcode_number' => 'UPC/EAN/ISBN',
|
||
'barcode_number_in_row' => '行數',
|
||
'barcode_page_cellspacing' => '顯示頁面單元格間距.',
|
||
'barcode_page_width' => '顯示頁面寬度',
|
||
'barcode_price' => '價格',
|
||
'barcode_second_row' => 'Row 4',
|
||
'barcode_third_row' => 'Row 5',
|
||
'barcode_tooltip' => '警告:此功能可能會導致導入或創建重複項。如果您不想要重複的條形碼,請不要使用。',
|
||
'barcode_type' => '條碼類型',
|
||
'barcode_width' => '寬度(像素)',
|
||
'bottom' => '底部',
|
||
'cash_button' => '',
|
||
'cash_button_1' => '',
|
||
'cash_button_2' => '',
|
||
'cash_button_3' => '',
|
||
'cash_button_4' => '',
|
||
'cash_button_5' => '',
|
||
'cash_button_6' => '',
|
||
'cash_decimals' => '現金小數',
|
||
'cash_decimals_tooltip' => '如果現金小數和貨幣小數相同,則不會發生現金觸發的四捨五入,除非現金四捨五入設置為五分之一。',
|
||
'cash_rounding' => '現金四捨五入',
|
||
'category_dropdown' => '下拉式顯示類別',
|
||
'center' => '中心',
|
||
'change_apperance_tooltip' => '',
|
||
'comma' => '逗號',
|
||
'company' => '公司名稱',
|
||
'company_avatar' => '',
|
||
'company_change_image' => '更改圖像',
|
||
'company_logo' => '公司標誌',
|
||
'company_remove_image' => '刪除圖像',
|
||
'company_required' => '公司名稱為必填',
|
||
'company_select_image' => '選擇圖像',
|
||
'company_website_url' => '公司網址格式錯誤 (http://...).',
|
||
'country_codes' => '國家代碼',
|
||
'country_codes_tooltip' => '以逗號分隔的國家/地區代碼列表,用於提名地址查找。',
|
||
'currency_code' => '幣別代碼',
|
||
'currency_decimals' => '貨幣小數',
|
||
'currency_symbol' => '貨幣符號',
|
||
'current_employee_only' => '',
|
||
'customer_reward' => '報酬',
|
||
'customer_reward_duplicate' => '獎勵必須是唯一的。',
|
||
'customer_reward_enable' => '啟用客戶獎勵',
|
||
'customer_reward_invalid_chars' => '獎勵不能包含“_”',
|
||
'customer_reward_required' => '獎勵是必填字段',
|
||
'customer_sales_tax_support' => '',
|
||
'date_or_time_format' => '日期和時間過濾器',
|
||
'datetimeformat' => '日期時間格式',
|
||
'decimal_point' => '小數點位數',
|
||
'default_barcode_font_size_number' => '默認條形碼字體大小必須是數字。',
|
||
'default_barcode_font_size_required' => '默認條碼字體大小是必填字段。',
|
||
'default_barcode_height_number' => '默認條碼高度必須是數字。',
|
||
'default_barcode_height_required' => '默認條碼高度是必填字段。',
|
||
'default_barcode_num_in_row_number' => '行中的默認條形碼編號必須是數字。',
|
||
'default_barcode_num_in_row_required' => '行中的默認條形碼編號是必填字段。',
|
||
'default_barcode_page_cellspacing_number' => '默認條碼頁 Cellspacing 必須是一個數字。',
|
||
'default_barcode_page_cellspacing_required' => '默認條碼頁單元格間距是必填字段。',
|
||
'default_barcode_page_width_number' => '默認條形碼頁面寬度必須是數字。',
|
||
'default_barcode_page_width_required' => '默認條碼頁面寬度為必填字段.',
|
||
'default_barcode_width_number' => '默認條碼寬度必須是數字。',
|
||
'default_barcode_width_required' => '默認條碼寬度是必填字段。',
|
||
'default_item_columns' => '默認可見項目列',
|
||
'default_origin_tax_code' => '默認原產地稅碼',
|
||
'default_receivings_discount' => '默認收款折扣',
|
||
'default_receivings_discount_number' => '默認收款折扣必須是一個數字。',
|
||
'default_receivings_discount_required' => '默認收款折扣是必填字段。',
|
||
'default_sales_discount' => 'Default Sales Discount %',
|
||
'default_sales_discount_number' => '默認銷售折扣必須是數字。',
|
||
'default_sales_discount_required' => '默認銷售折扣是必填字段.',
|
||
'default_tax_category' => '默認稅種',
|
||
'default_tax_code' => '默認稅碼',
|
||
'default_tax_jurisdiction' => '默認稅收管轄權',
|
||
'default_tax_name_number' => '默認稅名必須是字符串。',
|
||
'default_tax_name_required' => 'The default tax name is a required field.',
|
||
'default_tax_rate' => '預設稅率 %',
|
||
'default_tax_rate_1' => '稅率 1',
|
||
'default_tax_rate_2' => '稅率 2',
|
||
'default_tax_rate_3' => '',
|
||
'default_tax_rate_number' => '預設稅率必需為數字.',
|
||
'default_tax_rate_required' => '預設稅率為必填.',
|
||
'derive_sale_quantity' => '允許派生銷售數量',
|
||
'derive_sale_quantity_tooltip' => '如果選中,則將為按擴展金額訂購的商品提供新的商品類型',
|
||
'dinner_table' => '餐桌',
|
||
'dinner_table_duplicate' => '餐桌必須唯一.',
|
||
'dinner_table_enable' => '啟用餐桌',
|
||
'dinner_table_invalid_chars' => "餐桌名稱不能包含 '_'.",
|
||
'dinner_table_required' => '餐桌是必填欄位.',
|
||
'dot' => '點',
|
||
'email' => '郵箱',
|
||
'email_configuration' => 'Email Configuration',
|
||
'email_mailpath' => '發送郵件的路徑',
|
||
'email_protocol' => 'Protocol',
|
||
'email_receipt_check_behaviour' => '電子郵件收據複選框',
|
||
'email_receipt_check_behaviour_always' => '始終檢查',
|
||
'email_receipt_check_behaviour_last' => '記住上次選擇',
|
||
'email_receipt_check_behaviour_never' => '始終未選中',
|
||
'email_smtp_crypto' => 'SMTP 加密',
|
||
'email_smtp_host' => 'SMTP Server',
|
||
'email_smtp_pass' => 'SMTP Password',
|
||
'email_smtp_port' => 'SMTP Port',
|
||
'email_smtp_timeout' => 'SMTP 逾時',
|
||
'email_smtp_user' => 'SMTP 用戶名',
|
||
'enable_avatar' => '',
|
||
'enable_avatar_tooltip' => '',
|
||
'enable_dropdown_tooltip' => '',
|
||
'enable_new_look' => '',
|
||
'enable_right_bar' => '',
|
||
'enable_right_bar_tooltip' => '',
|
||
'enforce_privacy' => '保護隱私',
|
||
'enforce_privacy_tooltip' => '保護客戶隱私,在他們的數據被刪除的情況下強制執行數據擾亂',
|
||
'fax' => '傳真',
|
||
'file_perm' => '檔案權限有問題,請修正後重刷網頁.',
|
||
'financial_year' => '財務年起始',
|
||
'financial_year_apr' => '4月1日',
|
||
'financial_year_aug' => '8月1日',
|
||
'financial_year_dec' => '12月1日',
|
||
'financial_year_feb' => '2月1日',
|
||
'financial_year_jan' => '1月1日',
|
||
'financial_year_jul' => '7月1日',
|
||
'financial_year_jun' => '6月1日',
|
||
'financial_year_mar' => '3月1日',
|
||
'financial_year_may' => '5月1日',
|
||
'financial_year_nov' => '11月1日',
|
||
'financial_year_oct' => '10月1日',
|
||
'financial_year_sep' => '9月1日',
|
||
'floating_labels' => '浮動標籤',
|
||
'gcaptcha_enable' => '登入檢核碼(reCAPTCHA)',
|
||
'gcaptcha_secret_key' => 'reCAPTCHA 密鑰',
|
||
'gcaptcha_secret_key_required' => 'reCAPTCHA 密鑰是必填字段',
|
||
'gcaptcha_site_key' => 'reCAPTCHA 站點密鑰',
|
||
'gcaptcha_site_key_required' => 'reCAPTCHA 站點密鑰是必填字段',
|
||
'gcaptcha_tooltip' => '登入使用Google reCAPTCHA保護,點選圖標進行 API key 配對.',
|
||
'general' => '一般',
|
||
'general_configuration' => '一般設定',
|
||
'giftcard_number' => '禮物卡號碼',
|
||
'giftcard_random' => '亂數產生',
|
||
'giftcard_series' => '序列產生',
|
||
'image_allowed_file_types' => '允許圖檔類型',
|
||
'image_max_height_tooltip' => '上傳圖檔最大高度(px).',
|
||
'image_max_size_tooltip' => '上傳圖檔大小上限(kb).',
|
||
'image_max_width_tooltip' => '上傳圖檔最大寬度(px).',
|
||
'image_restrictions' => '上傳圖檔限制',
|
||
'include_hsn' => '包括對 HSN 代碼的支持',
|
||
'info' => '儲存組態',
|
||
'info_configuration' => '儲存組態',
|
||
'input_groups' => '輸入組',
|
||
'integrations' => '整合',
|
||
'integrations_configuration' => '第三方整合',
|
||
'invoice' => '發票',
|
||
'invoice_configuration' => '發票打印設置',
|
||
'invoice_default_comments' => '默認發票註釋',
|
||
'invoice_email_message' => '發票電子郵件模板',
|
||
'invoice_enable' => '啟用發票',
|
||
'invoice_printer' => '發票打印機',
|
||
'invoice_type' => '發票類型',
|
||
'is_readable' => '可讀取但權限不正確,請設定為 640 或 660 後重整.',
|
||
'is_writable' => '可寫,但權限設置不正確。請將其設置為 750 並刷新。',
|
||
'item_markup' => '',
|
||
'jsprintsetup_required' => 'Warning! This disabled functionality will only work if you have the FireFox jsPrintSetup addon installed. Save anyway?',
|
||
'language' => '語言',
|
||
'last_used_invoice_number' => '上次使用的發票編號',
|
||
'last_used_quote_number' => '上次使用的報價編號',
|
||
'last_used_work_order_number' => '上次使用的 W / O 編號',
|
||
'left' => '剩下',
|
||
'license' => '許可証',
|
||
'license_configuration' => '許可聲明',
|
||
'line_sequence' => '行序',
|
||
'lines_per_page' => 'Lines Per Page',
|
||
'lines_per_page_number' => '每頁行數必須是數字。',
|
||
'lines_per_page_required' => '每頁行數是必填字段。',
|
||
'locale' => 'Localisation',
|
||
'locale_configuration' => 'Localisation Configuration',
|
||
'locale_info' => 'Localisation Configuration Information',
|
||
'location' => '庫存',
|
||
'location_configuration' => '庫存位置',
|
||
'location_info' => '位置配置信息',
|
||
'login_form' => '登錄表單樣式',
|
||
'logout' => '是否要在註銷前進行備份?點擊【確定】進行備份,點擊【取消】退出。',
|
||
'mailchimp' => '郵件黑猩猩',
|
||
'mailchimp_api_key' => '黑猩猩 API 密鑰',
|
||
'mailchimp_configuration' => '黑猩猩配置',
|
||
'mailchimp_key_successfully' => 'API 密鑰有效。',
|
||
'mailchimp_key_unsuccessfully' => '無效的 API 密鑰.',
|
||
'mailchimp_lists' => 'MailChimp 列表',
|
||
'mailchimp_tooltip' => '單擊 API 密鑰的圖標。',
|
||
'message' => 'Message',
|
||
'message_configuration' => 'Message Configuration',
|
||
'msg_msg' => '保存的短信',
|
||
'msg_msg_placeholder' => 'If you wish to use a SMS template save your message here. Otherwise leave the box blank.',
|
||
'msg_pwd' => 'SMS-API Password',
|
||
'msg_pwd_required' => 'SMS-API 密碼是必填字段',
|
||
'msg_src' => 'SMS-API 發件人 ID',
|
||
'msg_src_required' => 'SMS-API 發件人 ID 是必填字段',
|
||
'msg_uid' => 'SMS-API 用戶名',
|
||
'msg_uid_required' => 'SMS-API 用戶名是必填字段',
|
||
'multi_pack_enabled' => '每件物品多個包裹',
|
||
'no_risk' => '沒有安全/漏洞風險。',
|
||
'none' => 'none',
|
||
'notify_alignment' => '通知彈出位置',
|
||
'number_format' => 'Number Format',
|
||
'number_locale' => 'Localisation',
|
||
'number_locale_invalid' => '輸入的區域設置無效。檢查工具提示中的鏈接以查找有效的語言環境。',
|
||
'number_locale_required' => '數字語言是必填字段。',
|
||
'number_locale_tooltip' => '通過此鏈接找到合適的語言環境。',
|
||
'os_timezone' => 'OSPOS 時區:',
|
||
'ospos_info' => 'OSPOS 安裝信息',
|
||
'payment_options_order' => '付款選項訂單',
|
||
'payment_reference_code_length_limits' => '付款參考代碼<br>長度限制',
|
||
'payment_reference_code_length_max_label' => '最大',
|
||
'payment_reference_code_length_min_label' => '最小',
|
||
'perm_risk' => '不正確的權限使該軟件面臨風險。',
|
||
'phone' => '電話',
|
||
'phone_required' => '公司電話為必填.',
|
||
'print_bottom_margin' => '保證金底部',
|
||
'print_bottom_margin_number' => '底部邊距必須是數字。',
|
||
'print_bottom_margin_required' => '底部邊距是必填字段。',
|
||
'print_delay_autoreturn' => '自動返回銷售延遲',
|
||
'print_delay_autoreturn_number' => '自動返回銷售延遲是必填字段。',
|
||
'print_delay_autoreturn_required' => '自動返回銷售延遲必須是一個數字。',
|
||
'print_footer' => '打印瀏覽器頁腳',
|
||
'print_header' => '打印瀏覽器標題',
|
||
'print_left_margin' => '左邊界',
|
||
'print_left_margin_number' => '左邊距必須是一個數字。',
|
||
'print_left_margin_required' => '左邊距是必填字段。',
|
||
'print_receipt_check_behaviour' => '打印收據複選框',
|
||
'print_receipt_check_behaviour_always' => '始終檢查',
|
||
'print_receipt_check_behaviour_last' => '記住上次選擇',
|
||
'print_receipt_check_behaviour_never' => '始終未選中',
|
||
'print_right_margin' => '右邊界',
|
||
'print_right_margin_number' => '邊距右邊必須是一個數字。',
|
||
'print_right_margin_required' => '右邊距是必填字段。',
|
||
'print_silently' => '顯示打印對話框',
|
||
'print_top_margin' => '上邊界',
|
||
'print_top_margin_number' => '邊距頂部必須是一個數字。',
|
||
'print_top_margin_required' => '邊距頂部是必填字段。',
|
||
'quantity_decimals' => '數量小數',
|
||
'quick_cash_enable' => '',
|
||
'quote_default_comments' => '默認報價註釋',
|
||
'receipt' => '收據',
|
||
'receipt_category' => '',
|
||
'receipt_configuration' => '收據打印設置',
|
||
'receipt_default' => 'Default',
|
||
'receipt_font_size' => '字體大小',
|
||
'receipt_font_size_number' => '字體大小必須是數字。',
|
||
'receipt_font_size_required' => '字體大小是必填字段。',
|
||
'receipt_info' => '收據配置信息',
|
||
'receipt_printer' => '票據打印機',
|
||
'receipt_short' => '簡短',
|
||
'receipt_show_company_name' => '顯示公司名稱',
|
||
'receipt_show_description' => '顯示說明',
|
||
'receipt_show_serialnumber' => '顯示序列號',
|
||
'receipt_show_tax_ind' => '顯示稅收指標',
|
||
'receipt_show_taxes' => '顯示稅金',
|
||
'receipt_show_total_discount' => '顯示總折扣',
|
||
'receipt_template' => '收據模板',
|
||
'receiving_calculate_average_price' => '計算平均值價格(收貨)',
|
||
'recv_invoice_format' => '收據發票格式',
|
||
'register_mode_default' => '默認註冊模式',
|
||
'report_an_issue' => '問題回報',
|
||
'return_policy_required' => '退換貨政策為必填.',
|
||
'reward' => '獎勵',
|
||
'reward_configuration' => '獎勵配置',
|
||
'right' => 'Right',
|
||
'sales_invoice_format' => '銷售發票格式',
|
||
'sales_quote_format' => '銷售報價格式',
|
||
'mailpath_invalid' => '',
|
||
'saved_successfully' => '組態設置儲存成功.',
|
||
'saved_unsuccessfully' => '組態設置儲存失敗.',
|
||
'security_issue' => '安全漏洞警告',
|
||
'server_notice' => '請使用以下信息進行問題報告。',
|
||
'service_charge' => '',
|
||
'show_due_enable' => '',
|
||
'show_office_group' => '顯示辦公室圖標',
|
||
'statistics' => 'Send statistics',
|
||
'statistics_tooltip' => '發送統計數據用於開發和功能改進目的。',
|
||
'stock_location' => '倉庫地址',
|
||
'stock_location_duplicate' => '庫存位置必須是唯一的。',
|
||
'stock_location_invalid_chars' => '庫存位置不能包含“_”。',
|
||
'stock_location_required' => '庫存位置是必填字段。',
|
||
'suggestions_fifth_column' => '',
|
||
'suggestions_first_column' => '第 1 欄',
|
||
'suggestions_fourth_column' => '',
|
||
'suggestions_layout' => '搜索建議佈局',
|
||
'suggestions_second_column' => '第 2 欄',
|
||
'suggestions_third_column' => '第 3 欄',
|
||
'system_conf' => '設置和配置',
|
||
'system_info' => 'System Info',
|
||
'table' => '桌子',
|
||
'table_configuration' => '表配置',
|
||
'takings_printer' => 'Takings Printer',
|
||
'tax' => '稅',
|
||
'tax_category' => '',
|
||
'tax_category_duplicate' => '',
|
||
'tax_category_invalid_chars' => '',
|
||
'tax_category_required' => '',
|
||
'tax_category_used' => '',
|
||
'tax_configuration' => '',
|
||
'tax_decimals' => '稅收小數',
|
||
'tax_id' => '',
|
||
'tax_included' => '含稅',
|
||
'theme' => 'Theme',
|
||
'theme_preview' => '',
|
||
'thousands_separator' => '千位分隔符',
|
||
'timezone' => '時區',
|
||
'timezone_error' => '',
|
||
'top' => 'Top',
|
||
'use_destination_based_tax' => '',
|
||
'user_timezone' => '本地時區:',
|
||
'website' => '網站',
|
||
'wholesale_markup' => '',
|
||
'work_order_enable' => '',
|
||
'work_order_format' => '',
|
||
];
|