large commit

This commit is contained in:
Omair Saleh
2019-10-07 15:00:21 +08:00
parent d83882ac58
commit 4e71d867a9
@@ -39,8 +39,9 @@ class ListsOrderHistory
$completeDate = Carbon::parse($step->complete_date)->format('d-m-Y');
switch ($step->reference_id){
case OrderSteps::ORDER_PROCESSING_STEP:
if($order->warehouse_id){
$this->history->push(['type' => 1, 'date' => $completeDate, 'description' => Warehouse::where('id', $order->warehouse_id)->first()->name.' confirmed as your order\'s warehouse']);
$warehous = OrderWarehouse::where('order_id', $orderId)->first();
if($warehous){
$this->history->push(['type' => 1, 'date' => $completeDate, 'description' => Warehouse::where('id', $warehous->id)->first()->name.' confirmed as your order\'s warehouse']);
}
break;
case OrderSteps::ORDER_NO_WAREHOUSE_PENDING_SUPPLIER: