ultimatepos/config/constants.php

95 lines
3.7 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| App Constants
|--------------------------------------------------------------------------
|List of all constants for the app
*/
'langs' => [
'fa' => ['full_name' => 'Persian - فارسی', 'short_name' => 'Persian'],
'ar' => ['full_name' => 'Arabic - العَرَبِيَّة', 'short_name' => 'Arabic'],
],
'langs_rtl' => ['ar', 'fa'],
'non_utf8_languages' => ['ar', 'hi', 'ps'],
'document_size_limit' => '5000000', //in Bytes,
'image_size_limit' => '5000000', //in Bytes
'asset_version' => 688,
'disable_purchase_in_other_currency' => true,
'iraqi_selling_price_adjustment' => false,
//currency_precision & quantity_precision moved to business settings
'product_img_path' => 'img',
'enable_sell_in_diff_currency' => false,
'currency_exchange_rate' => 1,
'orders_refresh_interval' => 600, //Auto refresh interval on Kitchen and Orders page in seconds,
'pos_recent_transactions_display_limit' => env('POS_RECENT_TRANSACTIONS_DISPLAY_LIMIT', 10), //Controls how many recent transactions are shown in POS recent transactions list default is 10
'default_date_format' => 'Y/m/d', // Default date format (Jalali-friendly for Persian locale)
// For Persian language, use 'Y/m/d' format (e.g., 1403/01/01)
'new_notification_count_interval' => 60, //Interval to check for new notifications in seconds;Default is 60sec
'administrator_usernames' => env('ADMINISTRATOR_USERNAMES'),
'SHOW_REPAIR_STATUS_LOGIN_SCREEN' => env('SHOW_REPAIR_STATUS_LOGIN_SCREEN', true),
'allow_registration' => env('ALLOW_REGISTRATION', true),
'app_title' => env('APP_TITLE'),
'google_recaptcha_key' => env('GOOGLE_RECAPTCHA_KEY'),
'google_recaptcha_secret' => env('GOOGLE_RECAPTCHA_SECRET'),
'enable_recaptcha' => env('ENABLE_RECAPTCHA', false),
'mpdf_temp_path' => storage_path('app/pdf'), //Temporary path used by mpdf
'document_upload_mimes_types' => ['application/pdf' => '.pdf',
'text/csv' => '.csv',
'application/zip' => '.zip',
'application/msword' => '.doc',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => '.docx',
'image/jpeg' => '.jpeg',
'image/jpg' => '.jpg',
'image/png' => '.png',
], //List of MIME type: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
'show_report_606' => false,
'show_report_607' => false,
'whatsapp_base_url' => 'https://wa.me',
'enable_crm_call_log' => false,
'enable_product_bulk_edit' => false, //Will be depreciated in future
'enable_convert_draft_to_invoice' => false, //Experimental beta feature.
'enable_download_pdf' => false, //Experimental feature
'invoice_scheme_separator' => '-',
'show_payments_recovered_today' => false, //Displays payment recovered today table on dashboard
'enable_b2b_marketplace' => false,
'enable_contact_assign' => true, //Used in add/edit contacts screen
'show_payment_type_on_contact_pay' => false,
'enable_gst_report_india' => env('ENABLE_GST_REPORT_INDIA', false),
'enable_secondary_unit' => false, //Experimental feature, may depreciate
'enable_holding_context_rbac' => env('ENABLE_HOLDING_CONTEXT_RBAC', true),
/*
| Name prefixes (titles) for contacts and users — Iran / Persian locale
*/
'name_prefixes_fa' => [
'آقا',
'خانم',
'آقای',
'دوشیزه',
'دکتر',
'مهندس',
'استاد',
'حاج',
'حاجی',
'سرکار',
],
];