mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
update order list when new order is created
This commit is contained in:
@@ -35,7 +35,7 @@ class Order extends AbstractModel
|
||||
*/
|
||||
public function warehouses(): belongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Company::class, (new OrderWarehouse())->getTable(), 'warehouse_id','order_id');
|
||||
return $this->belongsToMany(Company::class, (new OrderWarehouse())->getTable(), 'order_id','warehouse_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -73,6 +73,10 @@
|
||||
import { required } from "vuelidate/lib/validators";
|
||||
export default {
|
||||
props: {
|
||||
section: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
id: {
|
||||
type: Number,
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user