mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
order profile pagination
This commit is contained in:
@@ -58,9 +58,11 @@ class OrderV2Resource extends JsonResource
|
||||
: $this->whenLoaded('packingLists', function () {
|
||||
return TransactionWithStorageResource::collection($this->transactions()->whereNotIn('transactions.status', [0, 1])->whereIn('transactions.type', [TransactionType::SHIPPING_INVOICE, TransactionType::STORAGE_INVOICE])->get());
|
||||
}),
|
||||
'storages' => $this->storages ? $this->storages : null, //from middleware
|
||||
// 'storages' => $this->storages ? $this->storages : null, //from middleware
|
||||
'storages' => null,
|
||||
'remarks' => RemarkResource::collection($this->remarks),
|
||||
'supplier_tax_rebate' => SupplierTaxRebateResource::collection($this->supplierTaxRebate),
|
||||
// 'supplier_tax_rebate' => SupplierTaxRebateResource::collection($this->supplierTaxRebate),
|
||||
'supplier_tax_rebate' => null,
|
||||
'created_at' => $this->created_at->format('d-m-Y'),
|
||||
// 'invoices_max_page' => $totalInvoices > 0 ? (int) ceil($totalInvoices / ($invoicePerPage < 1 ? 1 : $invoicePerPage)) : 1,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user