=== بدء إعادة البناء المحاسبي === OK: تعطيل FK OK: تفريغ payment_allocations OK: تفريغ inventory_movements OK: تفريغ sales_items OK: تفريغ payments OK: تفريغ discounts OK: تفريغ cancellation_reasons OK: تفريغ customer_payments OK: تفريغ sales_headers OK: تفريغ purchase_payments OK: تفريغ purchase_items OK: تفريغ purchase_headers OK: تفريغ warehouse_receipts OK: تفريغ warehouse_disbursements OK: تفريغ warehouse_disposals OK: تفريغ maintenance_payments OK: تفريغ maintenance OK: تفريغ cheques OK: تفريغ expenses OK: تصفير كميات الأصناف OK: توحيد sales_headers OK: توحيد sales_items OK: توحيد payments OK: توحيد discounts OK: توحيد cancellation_reasons OK: توحيد items OK: إنشاء purchase_headers OK: إنشاء purchase_items OK: توحيد purchase_payments OK: إنشاء inventory_movements OK: إنشاء payment_allocations فشل: FK sales_headers.CustomerID: Duplicate FOREIGN KEY constraint name 'sub101_1/sales_headers_customer_fk' SQL: ALTER TABLE sales_headers ADD CONSTRAINT sales_headers_customer_fk FOREIGN KEY (CustomerID) REFERENCES customers (CustomerID) ON DELETE RESTRICT ON UPDATE CASCADE