<?php
namespace App\Models\Sales;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class SalesPaymentsModel extends Model
{
    protected $table = 'phppos_sales_payments';
    protected $primaryKey = 'payment_id';
    public $timestamps = false;

    protected $casts = [
        'payment_amount' => 'float',
    ];

    public function header_details(){
        return $this->belongsTo(SalesModel::class,'sale_id','sale_id');
    }
}
