User interface to allow admin to waive warehouse storage invoice transaction

This commit is contained in:
Dillon Ngo
2024-02-15 20:45:32 +08:00
parent 064ee3e41a
commit 1b6fe7445e
11 changed files with 303 additions and 3 deletions
@@ -120,6 +120,7 @@ class TransactionWithStorageResource extends JsonResource
),
'remarks' => RemarkResource::collection($this->remarks),
'storages' => $this->storages ? $this->storages : null, //from middleware
'is_waived' => (int) $this->is_waived,
'expires_on' => Carbon::parse($this->expires_on)->format('d-m-Y h:s:i'),
'updated_at' => Carbon::parse($this->updated_at)->format('d-m-Y'),
'created_at' => Carbon::parse($this->created_at)->format('d-m-Y')