feat: Reimplement order and invoice management with new service and repository layers, introduce compression middleware, and update database schema.

This commit is contained in:
pbao9
2026-03-12 09:30:29 +07:00
parent 7f6264c87f
commit 1e09ccf17b
87 changed files with 2348 additions and 2612 deletions
@@ -29,7 +29,7 @@ class InvoiceRepository extends BaseRepository implements InvoiceRepositoryInter
$model = $model->where("customer_id", $data['customer_id']);
}
if (isset($data['payment_method']) && $data['payment_method'] !== 'full') {
$model = $model->where("payment_id", $data['payment_method']);
$model = $model->where("payment_method", $data['payment_method']);
}
if (isset($data['invoice_id'])) {
$model = $model->where("invoice_id", $data['invoice_id']);