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
22 KiB
PHP
336 lines
22 KiB
PHP
<?php
|
|
|
|
return [
|
|
'address' => '公司地址',
|
|
'address_required' => '公司地址为必填',
|
|
'all_set' => 'All file permissions are set correctly!',
|
|
'allow_duplicate_barcodes' => '允许重复条形码',
|
|
'apostrophe' => 'apostrophe',
|
|
'backup_button' => 'Backup',
|
|
'backup_database' => 'Backup Database',
|
|
'barcode' => '条形码',
|
|
'barcode_company' => '公司名称',
|
|
'barcode_configuration' => '设置条形码',
|
|
'barcode_content' => '条形码内容',
|
|
'barcode_first_row' => '条形码第一行',
|
|
'barcode_font' => '条形码字体',
|
|
'barcode_formats' => '输入格式',
|
|
'barcode_generate_if_empty' => 'Generate if empty',
|
|
'barcode_height' => '条形码高度 (px)',
|
|
'barcode_id' => '商品 ID/名字',
|
|
'barcode_info' => '条形码设置信息',
|
|
'barcode_layout' => '条形码布局',
|
|
'barcode_name' => '条形码名字',
|
|
'barcode_number' => 'UPC/EAN/ISBN',
|
|
'barcode_number_in_row' => 'Number in row',
|
|
'barcode_page_cellspacing' => 'Display page cellspacing',
|
|
'barcode_page_width' => '条形码显示宽度',
|
|
'barcode_price' => '金额',
|
|
'barcode_second_row' => '条形码第二行',
|
|
'barcode_third_row' => '条形码第三行',
|
|
'barcode_tooltip' => '警告:此功能可能导致重复项被导入或创建。 如果您不想重复的条形码,请不要使用。',
|
|
'barcode_type' => '条形码类型',
|
|
'barcode_width' => '条形码宽度 (px)',
|
|
'bottom' => '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' => 'Center',
|
|
'change_apperance_tooltip' => '',
|
|
'comma' => 'comma',
|
|
'company' => '公司名称',
|
|
'company_avatar' => '',
|
|
'company_change_image' => 'Change Image',
|
|
'company_logo' => 'Company Logo',
|
|
'company_remove_image' => 'Remove Image',
|
|
'company_required' => '公司名称为必填',
|
|
'company_select_image' => '选择公司图片',
|
|
'company_website_url' => '公司网址格式错误 (http://...)',
|
|
'country_codes' => '国家地区代码',
|
|
'country_codes_tooltip' => 'Comma separated list of country codes for nominatim address lookup.',
|
|
'currency_code' => '',
|
|
'currency_decimals' => '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' => 'Date and Time format',
|
|
'decimal_point' => 'Decimal Point',
|
|
'default_barcode_font_size_number' => '默认条形码字体大小必须是数字',
|
|
'default_barcode_font_size_required' => 'The default barcode font size is a required field',
|
|
'default_barcode_height_number' => 'The default barcode height must be a number',
|
|
'default_barcode_height_required' => 'The default barcode height is a required field',
|
|
'default_barcode_num_in_row_number' => 'The default barcode num in row must be a number',
|
|
'default_barcode_num_in_row_required' => 'The default barcode num in row is a required field',
|
|
'default_barcode_page_cellspacing_number' => 'The default barcode page cellspacing must be a number',
|
|
'default_barcode_page_cellspacing_required' => 'The default barcode page cellspacing is a required field',
|
|
'default_barcode_page_width_number' => 'The default barcode page width must be a number',
|
|
'default_barcode_page_width_required' => 'The default barcode page width is a required field',
|
|
'default_barcode_width_number' => 'The default barcode width must be a number',
|
|
'default_barcode_width_required' => 'The default barcode width is a required field',
|
|
'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' => 'The default sales discount must be a number',
|
|
'default_sales_discount_required' => 'The default sales discount is a required field',
|
|
'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' => 'dot',
|
|
'email' => '郵箱',
|
|
'email_configuration' => 'Email Configuration',
|
|
'email_mailpath' => 'Path to Sendmail',
|
|
'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 Encryption',
|
|
'email_smtp_host' => 'SMTP Server',
|
|
'email_smtp_pass' => 'SMTP Password',
|
|
'email_smtp_port' => 'SMTP Port',
|
|
'email_smtp_timeout' => 'SMTP Timeout (s)',
|
|
'email_smtp_user' => 'SMTP Username',
|
|
'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' => 'There are problems with file permissions please fix and reload this page.',
|
|
'financial_year' => '',
|
|
'financial_year_apr' => '',
|
|
'financial_year_aug' => '',
|
|
'financial_year_dec' => '',
|
|
'financial_year_feb' => '',
|
|
'financial_year_jan' => '',
|
|
'financial_year_jul' => '',
|
|
'financial_year_jun' => '',
|
|
'financial_year_mar' => '',
|
|
'financial_year_may' => '',
|
|
'financial_year_nov' => '',
|
|
'financial_year_oct' => '',
|
|
'financial_year_sep' => '',
|
|
'floating_labels' => '',
|
|
'gcaptcha_enable' => '',
|
|
'gcaptcha_secret_key' => '',
|
|
'gcaptcha_secret_key_required' => '',
|
|
'gcaptcha_site_key' => '',
|
|
'gcaptcha_site_key_required' => '',
|
|
'gcaptcha_tooltip' => '',
|
|
'general' => 'General',
|
|
'general_configuration' => 'General Configuration',
|
|
'giftcard_number' => '',
|
|
'giftcard_random' => '',
|
|
'giftcard_series' => '',
|
|
'image_allowed_file_types' => '',
|
|
'image_max_height_tooltip' => '',
|
|
'image_max_size_tooltip' => '',
|
|
'image_max_width_tooltip' => '',
|
|
'image_restrictions' => '',
|
|
'include_hsn' => '',
|
|
'info' => '儲存組態',
|
|
'info_configuration' => '儲存組態',
|
|
'input_groups' => '',
|
|
'integrations' => '',
|
|
'integrations_configuration' => '',
|
|
'invoice' => 'Invoice',
|
|
'invoice_configuration' => 'Invoice Print Settings',
|
|
'invoice_default_comments' => 'Default Invoice Comments',
|
|
'invoice_email_message' => 'Invoice Email Template',
|
|
'invoice_enable' => 'Enable Invoicing',
|
|
'invoice_printer' => 'Invoice Printer',
|
|
'invoice_type' => '',
|
|
'is_readable' => '',
|
|
'is_writable' => 'is writable, but the permissions are higher than 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' => '',
|
|
'left' => 'Left',
|
|
'license' => 'License',
|
|
'license_configuration' => 'License Statement',
|
|
'line_sequence' => '',
|
|
'lines_per_page' => 'Lines Per Page',
|
|
'lines_per_page_number' => 'The lines per page must be a number',
|
|
'lines_per_page_required' => 'The lines per page is a required field',
|
|
'locale' => 'Localisation',
|
|
'locale_configuration' => 'Localisation Configuration',
|
|
'locale_info' => 'Localisation Configuration Information',
|
|
'location' => 'Stock',
|
|
'location_configuration' => 'Stock Locations',
|
|
'location_info' => 'Location Configuration Information',
|
|
'login_form' => '',
|
|
'logout' => "Don't you want to make a backup before logging out?",
|
|
'mailchimp' => '',
|
|
'mailchimp_api_key' => '',
|
|
'mailchimp_configuration' => '',
|
|
'mailchimp_key_successfully' => '',
|
|
'mailchimp_key_unsuccessfully' => '',
|
|
'mailchimp_lists' => '',
|
|
'mailchimp_tooltip' => '',
|
|
'message' => 'Message',
|
|
'message_configuration' => 'Message Configuration',
|
|
'msg_msg' => 'Saved Text Message',
|
|
'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 Password is a required field',
|
|
'msg_src' => 'SMS-API Sender ID',
|
|
'msg_src_required' => 'SMS-API Sender ID is a required field',
|
|
'msg_uid' => 'SMS-API Username',
|
|
'msg_uid_required' => 'SMS-API Username is a required field',
|
|
'multi_pack_enabled' => '',
|
|
'no_risk' => 'No security/vulnerability risks.',
|
|
'none' => 'none',
|
|
'notify_alignment' => 'Notification Popup Position',
|
|
'number_format' => 'Number Format',
|
|
'number_locale' => 'Localisation',
|
|
'number_locale_invalid' => 'The entered locale is invalid. Check the link in the tooltip to find a sensible value',
|
|
'number_locale_required' => 'Number Locale is a required field',
|
|
'number_locale_tooltip' => 'Find a suitable locale through this link',
|
|
'os_timezone' => '',
|
|
'ospos_info' => '',
|
|
'payment_options_order' => 'Payment Options Order',
|
|
'payment_reference_code_length_limits' => '付款参考代码<br>长度限制',
|
|
'payment_reference_code_length_max_label' => '最大',
|
|
'payment_reference_code_length_min_label' => '最小',
|
|
'perm_risk' => 'Permissions higher than 750 leaves this software at risk.',
|
|
'phone' => '公司电话',
|
|
'phone_required' => '公司电话为必填',
|
|
'print_bottom_margin' => 'Margin Bottom',
|
|
'print_bottom_margin_number' => 'The default bottom margin must be a number',
|
|
'print_bottom_margin_required' => 'The default bottom margin is a required field',
|
|
'print_delay_autoreturn' => '',
|
|
'print_delay_autoreturn_number' => '',
|
|
'print_delay_autoreturn_required' => '',
|
|
'print_footer' => 'Print Browser Footer',
|
|
'print_header' => 'Print Browser Header',
|
|
'print_left_margin' => 'Margin Left',
|
|
'print_left_margin_number' => 'The default left margin must be a number',
|
|
'print_left_margin_required' => 'The default left margin is a required field',
|
|
'print_receipt_check_behaviour' => '',
|
|
'print_receipt_check_behaviour_always' => '',
|
|
'print_receipt_check_behaviour_last' => '',
|
|
'print_receipt_check_behaviour_never' => '',
|
|
'print_right_margin' => 'Margin Right',
|
|
'print_right_margin_number' => 'The default right margin must be a number',
|
|
'print_right_margin_required' => 'The default right margin is a required field',
|
|
'print_silently' => 'Show Print Dialog',
|
|
'print_top_margin' => 'Margin Top',
|
|
'print_top_margin_number' => 'The default top margin must be a number',
|
|
'print_top_margin_required' => 'The default top margin is a required field',
|
|
'quantity_decimals' => 'Quantity Decimals',
|
|
'quick_cash_enable' => '',
|
|
'quote_default_comments' => '',
|
|
'receipt' => '收据',
|
|
'receipt_category' => '',
|
|
'receipt_configuration' => '收据打印设置',
|
|
'receipt_default' => '默认',
|
|
'receipt_font_size' => '字体大小',
|
|
'receipt_font_size_number' => '字体大小必须是数字',
|
|
'receipt_font_size_required' => '字体大小是必填的',
|
|
'receipt_info' => 'Receipt Configuration Information',
|
|
'receipt_printer' => '收据打印机',
|
|
'receipt_short' => 'Short',
|
|
'receipt_show_company_name' => '显示公司名称',
|
|
'receipt_show_description' => '显示描述',
|
|
'receipt_show_serialnumber' => '显示序列号',
|
|
'receipt_show_tax_ind' => '',
|
|
'receipt_show_taxes' => '显示税',
|
|
'receipt_show_total_discount' => 'Show Total Discount',
|
|
'receipt_template' => '收据模板',
|
|
'receiving_calculate_average_price' => 'Calc avg. Price (Receiving)',
|
|
'recv_invoice_format' => 'Receivings Invoice Format',
|
|
'register_mode_default' => '',
|
|
'report_an_issue' => '',
|
|
'return_policy_required' => '退换货政策为必填',
|
|
'reward' => '',
|
|
'reward_configuration' => '',
|
|
'right' => 'Right',
|
|
'sales_invoice_format' => 'Sales Invoice Format',
|
|
'sales_quote_format' => '',
|
|
'mailpath_invalid' => '',
|
|
'saved_successfully' => '組態設置儲存成功',
|
|
'saved_unsuccessfully' => '組態設置儲存失敗',
|
|
'security_issue' => 'Security Vulnerability Warning',
|
|
'server_notice' => 'Please use the below info for issue reporting.',
|
|
'service_charge' => '',
|
|
'show_due_enable' => '',
|
|
'show_office_group' => '',
|
|
'statistics' => 'Send statistics',
|
|
'statistics_tooltip' => 'Send statistics for development and feature improvement purposes',
|
|
'stock_location' => '仓库地址',
|
|
'stock_location_duplicate' => '仓库地址不可重复',
|
|
'stock_location_invalid_chars' => "The stock location name can not contain '_'",
|
|
'stock_location_required' => 'Stock location number is a required field',
|
|
'suggestions_fifth_column' => '',
|
|
'suggestions_first_column' => '',
|
|
'suggestions_fourth_column' => '',
|
|
'suggestions_layout' => '',
|
|
'suggestions_second_column' => '',
|
|
'suggestions_third_column' => '',
|
|
'system_conf' => 'Setup & 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' => '税ID',
|
|
'tax_included' => '含税',
|
|
'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' => '',
|
|
];
|