mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-27 08:23:58 +00:00
Major incomplete Change
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use App\Classes\Modules\Orders\Services\ListsOrderHistory;
|
||||
use App\Classes\Modules\Steps\GetStep;
|
||||
use App\Classes\Modules\Steps\StepAttachments;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
@@ -24,12 +25,13 @@ class Order extends JsonResource
|
||||
'supplier_id' => $this->supplier_id,
|
||||
'warehouse_id' => $this->warehouse_id,
|
||||
'current_step' => $this->current_step,
|
||||
'complete' => $this->complete,
|
||||
'complete' => (float)$this->complete,
|
||||
'date' => $this->created_at->format('d/m/Y'),
|
||||
'steps' => [
|
||||
'details' => (new GetStep())->execute($this->current_step),
|
||||
'attachments' => (new StepAttachments())->execute($this->id, $this->current_step)
|
||||
]
|
||||
],
|
||||
'details' => (new ListsOrderHistory())->execute($this->id, $this->created_at, $this->complete, $this->updated_at)
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user