fix financial and certificates

This commit is contained in:
root
2026-06-05 01:51:08 -04:00
parent d28d11e2e5
commit ad968eaff7
94 changed files with 9654 additions and 214 deletions
+20 -20
View File
@@ -9,26 +9,26 @@ class ExpenseResource extends JsonResource
public function toArray($request): array
{
return [
'id' => $this['id'] ?? $this->id,
'category' => $this['category'] ?? $this->category,
'amount' => $this['amount'] ?? $this->amount,
'receipt_path' => $this['receipt_path'] ?? $this->receipt_path,
'receipt_url' => $this['receipt_url'] ?? null,
'description' => $this['description'] ?? $this->description,
'retailor' => $this['retailor'] ?? $this->retailor,
'date_of_purchase' => $this['date_of_purchase'] ?? $this->date_of_purchase,
'purchased_by' => $this['purchased_by'] ?? $this->purchased_by,
'added_by' => $this['added_by'] ?? $this->added_by,
'school_year' => $this['school_year'] ?? $this->school_year,
'semester' => $this['semester'] ?? $this->semester,
'status' => $this['status'] ?? $this->status,
'status_reason' => $this['status_reason'] ?? $this->status_reason,
'approved_by' => $this['approved_by'] ?? $this->approved_by,
'updated_by' => $this['updated_by'] ?? $this->updated_by,
'purchaser_firstname' => $this['purchaser_firstname'] ?? null,
'purchaser_lastname' => $this['purchaser_lastname'] ?? null,
'approver_firstname' => $this['approver_firstname'] ?? null,
'approver_lastname' => $this['approver_lastname'] ?? null,
'id' => data_get($this->resource, 'id'),
'category' => data_get($this->resource, 'category'),
'amount' => data_get($this->resource, 'amount'),
'receipt_path' => data_get($this->resource, 'receipt_path'),
'receipt_url' => data_get($this->resource, 'receipt_url'),
'description' => data_get($this->resource, 'description'),
'retailor' => data_get($this->resource, 'retailor'),
'date_of_purchase' => data_get($this->resource, 'date_of_purchase'),
'purchased_by' => data_get($this->resource, 'purchased_by'),
'added_by' => data_get($this->resource, 'added_by'),
'school_year' => data_get($this->resource, 'school_year'),
'semester' => data_get($this->resource, 'semester'),
'status' => data_get($this->resource, 'status'),
'status_reason' => data_get($this->resource, 'status_reason'),
'approved_by' => data_get($this->resource, 'approved_by'),
'updated_by' => data_get($this->resource, 'updated_by'),
'purchaser_firstname' => data_get($this->resource, 'purchaser_firstname'),
'purchaser_lastname' => data_get($this->resource, 'purchaser_lastname'),
'approver_firstname' => data_get($this->resource, 'approver_firstname'),
'approver_lastname' => data_get($this->resource, 'approver_lastname'),
];
}
}