Add Stargas supplier dashboard with performance analytics

This commit is contained in:
2026-03-05 21:37:37 +02:00
parent a9a1263501
commit 23357e09f5
19 changed files with 9625 additions and 43 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class CustomerInvoice extends Model
{
protected $table = 'SL_SALESINVOICE';
public $timestamps = false;
protected $casts = [
'DOCDTETME' => 'datetime',
];
public function customer()
{
return $this->belongsTo(Customer::class, 'ACCNO', 'DBTRCDE');
}
public function lines()
{
return $this->hasMany(CustomerInvoiceLine::class, 'REFNO', 'REFNO');
}
}