Merge branch 'develop' into feature/mzl_dev
# Conflicts: # config/route.php
This commit is contained in:
@@ -107,4 +107,20 @@ class StockOrders extends Model
|
||||
{
|
||||
return $this->hasOne(User::class, 'id', 'salesperson_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户的标签
|
||||
*/
|
||||
public function payment()
|
||||
{
|
||||
return $this->belongsToMany(FinPaymentApply::class, 'fin_payment_stock', 'stock_id', 'payment_apply_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 关联收款记录(多对多,经由中间表)
|
||||
*/
|
||||
public function receipts()
|
||||
{
|
||||
return $this->belongsToMany(FinReceipt::class, 'fin_payment_stock', 'stock_id', 'receipt_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user