Minor updates to order process

This commit is contained in:
Deon George
2019-01-24 14:40:33 +11:00
parent a9f545412b
commit b19f01d7a4
9 changed files with 217 additions and 20 deletions

View File

@@ -52,7 +52,7 @@ class OrderReject extends Command
}
$so->order_status = 'ORDER-REJECTED';
$so->order_info = array_merge($so->order_info,['reason'=>$this->argument('reason')]);
$so->order_info = array_merge($so->order_info ? $so->order_info : [],['reason'=>$this->argument('reason')]);
$so->save();
}
}