mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-26 06:37:02 -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' => 'חשבון מס #',
|
|
'add_payment' => 'הוסף תשלום',
|
|
'amount_due' => 'סכום לתשלום',
|
|
'amount_tendered' => 'סכום ההצעה',
|
|
'authorized_signature' => 'חתימת מורשה',
|
|
'cancel_sale' => 'בטל',
|
|
'cash' => 'מזומן',
|
|
'cash_1' => '',
|
|
'cash_2' => '',
|
|
'cash_3' => '',
|
|
'cash_4' => '',
|
|
'cash_adjustment' => '',
|
|
'cash_deposit' => 'הפקדת מזומן',
|
|
'cash_filter' => 'מזומן',
|
|
'change_due' => 'עודף לתשלום',
|
|
'change_price' => '',
|
|
'check' => 'שק',
|
|
'check_balance' => 'תזכורת שקים',
|
|
'check_filter' => 'שק',
|
|
'close' => '',
|
|
'comment' => 'הערה',
|
|
'comments' => 'הערות',
|
|
'company_name' => '',
|
|
'complete' => '',
|
|
'complete_sale' => 'הושלם',
|
|
'confirm_cancel_sale' => 'האם אתה בטוח שברצונך למחוק את המכירה הזו? כל הפריטים יימחקו.',
|
|
'confirm_delete' => 'האם אתה בטוח שברצונך למחוק את המכירות שנבחרו?',
|
|
'confirm_restore' => 'האם אתה בטוח שברצונך לשחזר את המכירות שנבחרו?',
|
|
'credit' => 'כרטיס אשראי',
|
|
'credit_deposit' => 'הפקדת אשראי',
|
|
'credit_filter' => '',
|
|
'current_table' => '',
|
|
'customer' => 'שם',
|
|
'customer_address' => 'כתובת',
|
|
'customer_discount' => 'הנחה',
|
|
'customer_email' => 'אימייל',
|
|
'customer_location' => 'מיקום',
|
|
'customer_mailchimp_status' => 'מצב Mailchimp',
|
|
'customer_optional' => 'נדרש עבור תשלומים עתידיים (אופציונאלי)',
|
|
'customer_required' => '(נדרש)',
|
|
'customer_total' => 'סהכ',
|
|
'customer_total_spent' => '',
|
|
'customers_available_points' => 'נקודות זמינות',
|
|
'daily_sales' => '',
|
|
'date' => 'תאריך המכירה',
|
|
'date_range' => 'טווח תאריכים',
|
|
'date_required' => 'יש להזין תאריך נכון.',
|
|
'date_type' => 'תאריך הוא שדה חובה.',
|
|
'debit' => 'כרטיס חיוב מיידי',
|
|
'debit_filter' => '',
|
|
'delete' => 'אפשר מחיקה',
|
|
'delete_confirmation' => 'האם אתה בטוח שברצונך למחוק את המכירה הזו? לא ניתן לבטל פעולה זו.',
|
|
'delete_entire_sale' => 'מחק את כל המכירה',
|
|
'delete_successful' => 'המכירה נמחקה בהצלחה.',
|
|
'delete_unsuccessful' => 'מחיקת המכירה נכשלה.',
|
|
'description_abbrv' => 'תיאור.',
|
|
'discard' => 'התעלם',
|
|
'discard_quote' => '',
|
|
'discount' => 'תיאור',
|
|
'discount_exceeds_item_total' => '',
|
|
'discount_included' => '% הנחה',
|
|
'discount_percent_exceeds_100' => '',
|
|
'discount_short' => '%',
|
|
'due' => 'לתשלום',
|
|
'due_filter' => 'צפוי לתשלום',
|
|
'edit' => 'ערוך',
|
|
'edit_item' => 'ערוך פריט',
|
|
'edit_sale' => 'ערוך מכירה',
|
|
'email_receipt' => 'נמען אימייל',
|
|
'employee' => 'עובד',
|
|
'entry' => 'ערך',
|
|
'error_editing_item' => 'שגיאה בעריכת פריט',
|
|
'find_or_scan_item' => 'חיפוש או סריקה של פריט',
|
|
'find_or_scan_item_or_receipt' => 'חיפוש או סריקה של פריט או קבלה',
|
|
'giftcard' => 'כרטיס מתנה',
|
|
'giftcard_balance' => 'מאזן כרטיס מתנה',
|
|
'giftcard_filter' => '',
|
|
'giftcard_number' => 'מספר כרטיס מתנה',
|
|
'group_by_category' => 'קבוצה או קטגוריה',
|
|
'group_by_type' => 'קבוצה לפי סוג',
|
|
'hsn' => 'HSN',
|
|
'id' => 'מזהה מכירה',
|
|
'include_prices' => 'לכלול מחירים?',
|
|
'invoice' => 'חשבונית',
|
|
'invoice_confirm' => 'חשבונית זו תישלח אל',
|
|
'invoice_enable' => 'צור חשבונית',
|
|
'invoice_filter' => 'חשבוניות',
|
|
'invoice_no_email' => 'ללקוח זה אין כתובת אימייל חוקית.',
|
|
'invoice_number' => 'חשבונית #',
|
|
'invoice_number_duplicate' => 'מספר החשבונית חייב להיות ייחודי.',
|
|
'invoice_sent' => 'חשבונית נשלחה אל',
|
|
'invoice_total' => 'סהכ חשבונית',
|
|
'invoice_type_custom_invoice' => 'חשבונית מותאמת אישית (custom_invoice.php)',
|
|
'invoice_type_custom_tax_invoice' => 'חשבונית מס מותאמת אישית (custom_tax_invoice.php)',
|
|
'invoice_type_invoice' => 'חשבונית (invoice.php)',
|
|
'invoice_type_tax_invoice' => 'חשבונית מס (tax_invoice.php)',
|
|
'invoice_unsent' => 'החשבונית לא נשלחה אל',
|
|
'invoice_update' => 'ספירה חוזרת',
|
|
'item_insufficient_of_stock' => 'הפריט מכיל מלאי נמוך.',
|
|
'item_name' => 'שם פריט',
|
|
'item_number' => 'פריט #',
|
|
'item_out_of_stock' => 'הפריט לא במלאי.',
|
|
'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' => 'מצב הרשמה',
|
|
'must_enter_numeric' => 'סכום ההצעה חייב להיות מספר.',
|
|
'must_enter_numeric_giftcard' => 'מספר כרטיס המתנה חייב להיות מספר.',
|
|
'must_enter_reference_code' => 'יש להזין מספר אסמכתא/אחזור.',
|
|
'negative_discount_invalid' => '',
|
|
'negative_price_invalid' => '',
|
|
'negative_quantity_invalid' => '',
|
|
'negative_total_invalid' => '',
|
|
'new_customer' => 'לקוח חדש',
|
|
'new_item' => 'פריט חדש',
|
|
'no_description' => 'אין תיאור',
|
|
'no_filter' => 'הכול',
|
|
'no_items_in_cart' => 'אין פריטים בעגלה.',
|
|
'no_sales_to_display' => 'אין מכירות להצגה.',
|
|
'none_selected' => 'לא בחרת כל מכירה(ות) למחיקה.',
|
|
'nontaxed_ind' => '',
|
|
'not_authorized' => 'פעולה זו אינה מורשית.',
|
|
'one_or_multiple' => 'מכירה(ות)',
|
|
'payment' => 'סוג תשלום',
|
|
'payment_amount' => 'סכום',
|
|
'payment_not_cover_total' => 'סכום התשלום חייב להיות גדול או שווה לסהכ.',
|
|
'payment_type' => 'סוג',
|
|
'payments' => '',
|
|
'payments_total' => 'סהכ תשלום',
|
|
'price' => 'מחיר',
|
|
'print_after_sale' => 'הדפס לאחר מכירה',
|
|
'quantity' => 'כמות',
|
|
'quantity_less_than_reorder_level' => 'אזהרה: כמות רצויה נמצאת מתחת לרמת ההזמנה עבור פריט זה.',
|
|
'quantity_less_than_zero' => 'אזהרה: כמות מבוקשת אינה מספיקה. עדיין תוכל לעבד את המכירה, אך בדוק את המלאי שלך.',
|
|
'quantity_of_items' => 'כמות של {0} פריטים',
|
|
'quote' => 'הצעת מחיר',
|
|
'quote_number' => 'מספר הצעת מחיר',
|
|
'quote_number_duplicate' => 'מספר הצעת מחיר חייב להיות ייחודי.',
|
|
'quote_sent' => 'הצעת המחיר נשלחה אל',
|
|
'quote_unsent' => 'הצעת המחיר לא נשלחה אל',
|
|
'receipt' => 'קבלה',
|
|
'receipt_no_email' => 'ללקוח זה אין כתובת אימייל חוקית.',
|
|
'receipt_number' => 'מכירה #',
|
|
'receipt_sent' => 'קבלה נשלחה אל',
|
|
'receipt_unsent' => 'קבלה לא נשלחה אל',
|
|
'reference_code' => 'קוד אסמכתא לתשלום',
|
|
'reference_code_invalid_characters' => 'קוד האסמכתא חייב להכיל רק אותיות ומספרים.',
|
|
'reference_code_length_error' => 'אורך קוד האסמכתא אינו תקין.',
|
|
'refund' => '',
|
|
'register' => 'קופת מכירות',
|
|
'remove_customer' => 'הסר לקוח',
|
|
'remove_discount' => '',
|
|
'return' => 'החזרה',
|
|
'rewards' => 'נקודות פרס',
|
|
'rewards_balance' => 'מאזן נקודות פרס',
|
|
'rewards_package' => 'פרסים',
|
|
'rewards_remaining_balance' => 'נקודות הפרס הנותרות הן ',
|
|
'sale' => 'מכירה',
|
|
'sale_by_invoice' => 'מכירה לפי חשבונית',
|
|
'sale_for_customer' => 'לקוח:',
|
|
'sale_time' => 'זמן',
|
|
'sales_tax' => 'מס מכירה',
|
|
'sales_total' => '',
|
|
'select_customer' => 'בחר לקוח',
|
|
'send_invoice' => 'שלח חשבונית',
|
|
'send_quote' => 'שלח הצעת מחיר',
|
|
'send_receipt' => 'שלח קבלה',
|
|
'send_work_order' => 'שלח הזמנת עבודה',
|
|
'serial' => 'מספר סידורי',
|
|
'service_charge' => '',
|
|
'show_due' => '',
|
|
'show_invoice' => 'הצג חשבונית',
|
|
'show_receipt' => 'הצג קבלה',
|
|
'start_typing_customer_name' => 'התחל להקליד פרטי לקוח ...',
|
|
'start_typing_item_name' => 'התחל להקליד שם פריט או סרוק ברקוד ...',
|
|
'stock' => 'מלאי',
|
|
'stock_location' => 'מיקום מלאי',
|
|
'sub_total' => 'סהכ',
|
|
'successfully_deleted' => 'נמחק בהצלחה',
|
|
'successfully_restored' => 'שוחזר בהצלחה',
|
|
'successfully_suspended_sale' => 'מכירה הושהתה בהצלחה.',
|
|
'successfully_updated' => 'מכירה עודכנה בהצלחה.',
|
|
'suspend_sale' => 'השהה',
|
|
'suspended_doc_id' => 'מסמך',
|
|
'suspended_sale_id' => 'מזהה',
|
|
'suspended_sales' => 'הושהו',
|
|
'table' => 'טבלה',
|
|
'takings' => 'מכירות יומיות',
|
|
'tax' => 'מס',
|
|
'tax_id' => 'מזהה מס',
|
|
'tax_invoice' => 'חשבונית מס',
|
|
'tax_percent' => 'מס %',
|
|
'taxed_ind' => '',
|
|
'total' => 'סהכ',
|
|
'total_tax_exclusive' => 'לא כולל מס',
|
|
'transaction_failed' => 'עסקת המכירה נכשלה.',
|
|
'unable_to_add_item' => 'הוספת פריט למכירה נכשל',
|
|
'unsuccessfully_deleted' => 'מחיקת מכירה(ות) נכשלה.',
|
|
'unsuccessfully_restored' => 'שחזור מכירה(ות) נכשלה.',
|
|
'unsuccessfully_suspended_sale' => 'השהיית מכירה(ות) נכשלה.',
|
|
'unsuccessfully_updated' => 'עדכון מכירה נכשל.',
|
|
'unsuspend' => 'בטל השהייה',
|
|
'unsuspend_and_delete' => 'פעולה',
|
|
'update' => 'עדכן',
|
|
'upi' => 'UPI',
|
|
'visa' => '',
|
|
'wholesale' => '',
|
|
'work_order' => 'הזמנת עבודה',
|
|
'work_order_number' => 'מספר הזמנת עבודה',
|
|
'work_order_number_duplicate' => 'מספר הזמנת עבודה חייב להיות ייחודי.',
|
|
'work_order_sent' => 'הזמנת עבודה נשלחה אל',
|
|
'work_order_unsent' => 'הזמנת עבודה לא נשלחה אל',
|
|
];
|