Data Update & Sync Center
පද්ධතියේ සියලුම Catalog, Stocks, Customers සහ Sales Reps දත්ත එකම තැනකින් Update කරගැනීමේ මධ්යස්ථානය.
=======================================================================
>> STARTING: System Health Check (45 Automated Tests) ...
=======================================================================
=======================================================================
COMPREHENSIVE OSS SYSTEM HEALTH & INTEGRITY CHECK
=======================================================================
--- 1. Database & Table Health ---
[PASS] Customers Table Total (Found: 2734)
[FAIL] Sales Reps Table Total (Found: 12)
[PASS] Customer-Sales-Rep Linkages (Found: 4343)
[FAIL] Products Catalog Total (Found: 440)
[PASS] Product Categories Total (Found: 22)
[PASS] No Orphan Customers in customer_sales_reps (Orphans: 0)
[PASS] No Orphan Reps in customer_sales_reps (Orphans: 0)
[PASS] No Duplicate Shop IDs in customers (Duplicates: 0)
--- 2. Sales Reps & Customer Linkages ---
[PASS] Rep [2020] LAHIRU NEGAMBO Customers (Got: 491, Required: >= 491)
[PASS] Rep [SS006] KANISHKA GALLE ROAD Customers (Got: 547, Required: >= 547)
[PASS] Rep [MANJULA001] MANJULA 001 Customers (Got: 547, Required: >= 547)
[PASS] Rep [9393] indrajith . Customers (Got: 491, Required: >= 491)
[PASS] Rep [92706] BANUKA RATHNAPURA Customers (Got: 402, Required: >= 402)
[PASS] Rep [SS004] PRADEEP PRADEEP Customers (Got: 402, Required: >= 402)
[PASS] Rep [SS002] KANDY NISANTHA Customers (Got: 303, Required: >= 303)
[PASS] Rep [687] BUDDIKA kandy Customers (Got: 303, Required: >= 303)
[PASS] Rep [65758] KUMARA KURUNEGALA Customers (Got: 302, Required: >= 302)
[PASS] Rep [56878] DILSHAN MOHOMAD Customers (Got: 269, Required: >= 269)
[PASS] Rep [SS003] NISHANTHA AMPARA Customers (Got: 269, Required: >= 269)
[FAIL] Rep [MANJU] MANJU MANJU Customers (Got: 0, Required: >= 200)
[FAIL] Rep [ROSHAN] ROSHAN DAMBULLA Customers (Got: 0, Required: >= 130)
[FAIL] Rep [SS010] PRABATH ANURADHPURA Customers (Got: 0, Required: >= 30)
[FAIL] Rep [SS008] SAMPATH BADULLA Customers (Got: 0, Required: >= 29)
[PASS] Rep [76] Lasindu sathsara Customers (Got: 17, Required: >= 17)
--- 3. Customer List (customer-list.php) Simulation ---
[PASS] Customer Search by Shop ID '876223' (Matches: 1)
[PASS] Customer Search by Mobile '0776328082' (Matches: 1)
[PASS] customer-list.php MANJULA001 Filter returns rows
[PASS] customer-list.php MANJULA001 sets correct sales_rep_code
--- 4. Reports (report-view.php) Simulation ---
[PASS] Customer List Report for Rep [92706] (Rows: 402)
[PASS] Customer List Report for Rep [SS004] (Rows: 402)
[PASS] Customer List Report for Rep [MANJULA001] (Rows: 547)
[PASS] Customer List Report for Rep [SS006] (Rows: 547)
[PASS] Customer List Report for Rep [687] (Rows: 303)
[PASS] Customer List Report for Rep [SS002] (Rows: 303)
[PASS] Customer List Report for Rep [9393] (Rows: 491)
[PASS] Customer List Report for Rep [2020] (Rows: 491)
[PASS] Customer List Report for Rep [56878] (Rows: 269)
[PASS] Customer List Report for Rep [SS003] (Rows: 269)
[PASS] Customer List Report Location 'NEGOMBO' (Rows: 491)
[FAIL] Stock Report Query Total Products
--- 5. Invoice & Payment Integrity ---
[PASS] Invoices Table Accessible (Invoices: 0)
[PASS] Payments Table Accessible (Payments: 0)
[PASS] All Invoices Balance Matches (invoice_value - paid_amount) (Mismatches: 0)
[FAIL] invoice-create.php Sales Rep Dropdown Count
[PASS] invoice-create.php Customer Dropdown Accessible
=======================================================================
SUMMARY: Total Tests: 45 | Passed: 37 | Failed: 8
=======================================================================
>>> SOME CHECKS FAILED! <<<
>> FINISHED: System Health Check (45 Automated Tests)
Update Individual Modules (වෙන වෙනම යාවත්කාලීන කිරීමට):
1. Products & Catalog
Folder: ./new (3 files)Japan Bearings (PDF), Ball Joints & Rack Ends (Excel), Shock Mounts (Excel) මඟින් catalog එක සහ භාණ්ඩ මිල ගණන් යාවත්කාලීන කරයි.
2. Stock Quantities
Folder: ./sto (3 files)BOLL JOINT RACK END STOCK, GS 08.24, LIGHT SHOES ආදී Excel ගොනු වලින් ස්ටොක් ප්රමාණයන් සහ stock logs යාවත්කාලීන කරයි.
3. Customers & Reps
Folder: ./rep (12 PDFs)Sales Rep PDF ගොනු 12 ම කියවා සියලුම Sales Reps ලා සහ Customers ලා 2,734 දෙනා Database එකට Sync කර Link කරයි.
4. Health Check
Automated: 45 TestsDatabase integrity, queries, Customer list, Sales Rep filters, Invoices සහ Balances සියල්ලම 100% ක් නිවැරදිදැයි පරීක්ෂා කරයි.