Major incomplete Change

This commit is contained in:
Omair Saleh
2019-03-04 03:01:20 +08:00
parent c4c20493cd
commit 829394cc1d
58 changed files with 1836 additions and 698 deletions
+4 -2
View File
@@ -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)
];
}