editing sales invoice duplicate
This commit is contained in:
parent
fc077ec23a
commit
d26b2dd630
@ -9,3 +9,6 @@
|
||||
2026-02-21 18:42:10 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"project-uuid","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true}
|
||||
2026-02-21 18:43:51 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true}
|
||||
2026-02-21 18:44:10 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true}
|
||||
2026-02-22 02:55:16 - Items case hit
|
||||
2026-02-22 02:55:31 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true}
|
||||
2026-02-22 02:58:39 - Items case hit
|
||||
|
||||
@ -18,7 +18,7 @@ $translations = [
|
||||
'quotations' => 'Quotations',
|
||||
'expenses' => 'Expenses',
|
||||
'expense_categories' => 'Expense Categories',
|
||||
'accounting' => 'Meezan Accounting System',
|
||||
'accounting' => 'Accounting',
|
||||
'trial_balance' => 'Trial Balance',
|
||||
'profit_loss' => 'Profit & Loss',
|
||||
'balance_sheet' => 'Balance Sheet',
|
||||
@ -113,7 +113,7 @@ $translations = [
|
||||
'quotations' => 'عروض الأسعار',
|
||||
'expenses' => 'المصاريف',
|
||||
'expense_categories' => 'فئات المصاريف',
|
||||
'accounting' => 'نظام ميزان المحاسبي',
|
||||
'accounting' => 'المحاسبة',
|
||||
'trial_balance' => 'ميزان المراجعة',
|
||||
'profit_loss' => 'الأرباح والخسائر',
|
||||
'balance_sheet' => 'الميزانية العمومية',
|
||||
|
||||
12
post_debug.log
Normal file
12
post_debug.log
Normal file
@ -0,0 +1,12 @@
|
||||
2026-02-22 02:55:30 - POST: {"action":"translate","text":"Tomato","target":"ar"}
|
||||
2026-02-22 03:38:27 - POST: {"invoice_id":"28","return_date":"2026-02-22","quantities":["1","0"],"item_ids":["1","2"],"prices":["0.450","0.250"],"notes":"","add_sales_return":""}
|
||||
2026-02-22 03:38:38 - POST: {"invoice_id":"28","return_date":"2026-02-22","quantities":["1","0"],"item_ids":["1","2"],"prices":["0.450","0.250"],"notes":"","add_sales_return":""}
|
||||
2026-02-22 03:40:01 - POST: {"type":"sale","customer_id":"1","invoice_date":"2026-02-22","due_date":"","payment_type":"cash","status":"paid","paid_amount":"0.000","item_ids":["6"],"quantities":["3.5"],"prices":["0.100"],"add_invoice":""}
|
||||
2026-02-22 05:30:52 - POST: {"type":"sale","customer_id":"1","invoice_date":"2026-02-22","due_date":"","payment_type":"cash","status":"paid","paid_amount":"0.000","item_ids":["6"],"quantities":["3.5"],"prices":["0.100"],"add_invoice":""}
|
||||
2026-02-22 05:31:32 - POST: {"invoice_id":"27","return_date":"2026-02-22","quantities":["2"],"item_ids":["1"],"prices":["0.450"],"notes":"","add_sales_return":""}
|
||||
2026-02-22 05:32:23 - POST: {"type":"sale","customer_id":"4","invoice_date":"2026-02-22","due_date":"","payment_type":"cash","status":"unpaid","paid_amount":"0.000","item_ids":["2"],"quantities":["1"],"prices":["0.250"],"add_invoice":""}
|
||||
2026-02-22 05:32:56 - POST: {"type":"sale","customer_id":"4","invoice_date":"2026-02-22","due_date":"2026-02-26","payment_type":"cash","status":"unpaid","paid_amount":"0.000","item_ids":["6"],"quantities":["1"],"prices":["0.100"],"add_invoice":""}
|
||||
2026-02-22 05:39:55 - POST: {"type":"sale","customer_id":"4","invoice_date":"2026-02-22","due_date":"2026-02-26","payment_type":"cash","status":"unpaid","paid_amount":"0.000","item_ids":["6"],"quantities":["1"],"prices":["0.100"],"add_invoice":""}
|
||||
2026-02-22 05:45:16 - POST: {"type":"sale","customer_id":"4","invoice_date":"2026-02-22","due_date":"2026-02-26","payment_type":"cash","status":"unpaid","paid_amount":"0.000","item_ids":["6"],"quantities":["1"],"prices":["0.100"],"add_invoice":""}
|
||||
2026-02-22 05:45:44 - POST: {"type":"sale","customer_id":"4","invoice_date":"2026-02-22","due_date":"","payment_type":"cash","status":"unpaid","paid_amount":"0.000","item_ids":["6"],"quantities":["1"],"prices":["0.100"],"add_invoice":""}
|
||||
2026-02-22 05:46:02 - POST: {"invoice_id":"32","return_date":"2026-02-22","quantities":["1"],"item_ids":["6"],"prices":["0.100"],"notes":"","add_sales_return":""}
|
||||
5
search_debug.log
Normal file
5
search_debug.log
Normal file
@ -0,0 +1,5 @@
|
||||
2026-02-22 03:39:40 - search_items call: q=on
|
||||
2026-02-22 05:32:07 - search_items call: q=po
|
||||
2026-02-22 05:32:10 - search_items call: q=on
|
||||
2026-02-22 05:32:45 - search_items call: q=on
|
||||
2026-02-22 05:45:42 - search_items call: q=on
|
||||
13
summary.txt
Normal file
13
summary.txt
Normal file
@ -0,0 +1,13 @@
|
||||
Plan: Update the default VAT rate to 0 in adding/editing forms and ensure all VAT fields are formatted to 2 decimals throughout the app.
|
||||
|
||||
Changed:
|
||||
* `index.php`:
|
||||
- Changed the default `vat_rate` value to `0` in both PHP backend processing and JavaScript calculations.
|
||||
- Set the HTML input step for `vat_rate` to `0.01` with a default `value="0"`.
|
||||
- Updated all VAT percentage and VAT amount display formatting to use exactly 2 decimal places (`.toFixed(2)` in JavaScript and `number_format(..., 2)` in PHP) globally.
|
||||
|
||||
Notes:
|
||||
* This change applies to item forms, shopping cart/POS, sales invoices, purchase invoices, and VAT reporting.
|
||||
* Reminder: click Save in the editor to sync changes.
|
||||
|
||||
Next: Would you like any other form default values or formats adjusted?
|
||||
Loading…
x
Reference in New Issue
Block a user