更新客户关联
This commit is contained in:
parent
5cb47248da
commit
77b4fe2ce8
@ -150,6 +150,7 @@ class QuotationLogic extends BaseLogic
|
||||
{
|
||||
$quotation = Quotation::findOrEmpty($params['id']);
|
||||
$quotation->product = $quotation->product;
|
||||
$quotation->custom = $quotation->custom;
|
||||
return $quotation->toArray();
|
||||
}
|
||||
}
|
@ -41,5 +41,10 @@ class Quotation extends BaseModel
|
||||
return $this->hasMany(\app\common\model\quotation\QuotationDetail::class, 'quotation_id', 'id');
|
||||
}
|
||||
|
||||
public function custom()
|
||||
{
|
||||
return $this->belongsTo(\app\common\model\custom\Custom::class, 'customer_id');
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user