update payment and billing

This commit is contained in:
edmondlang
2022-08-07 17:11:26 +08:00
parent 9e756132ca
commit a2c7eddf7b
15 changed files with 308 additions and 26 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class OrderResource extends JsonResource
'received_packages' => PackingListResource::collection($this->packingLists()->where('type', PackingListType::WAREHOUSE_RECEIVE_LIST)->whereHas('packages')->get()),
];
}),
'invoices' => TransactionResource::collection($this->transactions),
'invoices' => TransactionResource::collection($this->transactions()->whereNotIn('transactions.status', [0, 1])->get()),
'remarks' => RemarkResource::collection($this->remarks),
'created_at' => $this->created_at->format('d-m-Y')
];