付款与收款

This commit is contained in:
2025-09-23 15:14:08 +08:00
parent 36d1d333b1
commit 4717bb01ca
8 changed files with 102 additions and 8 deletions
+8
View File
@@ -62,4 +62,12 @@ class FinPaymentApply extends Model
{
return $this->belongsToMany(StockOrders::class, 'fin_payment_stock', 'payment_apply_id', 'stock_id');
}
/**
* 关联的备货单(通过中间表)
*/
public function stocks()
{
return $this->belongsToMany(StockOrders::class, 'fin_payment_stock', 'payment_apply_id', 'stock_id');
}
}