付款与收款

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
+2 -2
View File
@@ -40,7 +40,7 @@ class FinPaymentStock extends Model
/**
* 允许自动填充模型字段
*/
protected $fillable = ['id', 'payment_apply_id', 'receipt_id', 'stock_id', 'allocated_amount', 'allocated_amount_cny'];
protected $fillable = ['id', 'pi_no', 'payment_apply_id', 'receipt_id', 'stock_id', 'allocated_amount', 'allocated_amount_cny', 'updated_at', 'created_at'];
/**
* 不允许自动填充模型字段
@@ -59,7 +59,7 @@ class FinPaymentStock extends Model
return $this->belongsTo(FinReceipt::class, 'receipt_id', 'id');
}
// 付款申请
// 备货单
public function stock()
{
return $this->belongsTo(StockOrders::class, 'stock_id', 'id');