<?php
namespace App\Models\Sales;

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

class SalesChargesModel extends Model
{
    protected $table = 'phppos_sales_charges';
    protected $primaryKey = 'id';
    public $timestamps = false;

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

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