feat: Reimplement order and invoice management with new service and repository layers, introduce compression middleware, and update database schema.
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user