<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class PosInvoicePayment extends Model
{
    use HasFactory;

    protected $fillable = ['method', 'amount', 'bank', 'card_number', 'remarks', 'installment', 'bank_id'];

    public function bank_raw()
    {
        return $this->belongsTo(Bank::class, 'bank_id', 'id');
    }
}
