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,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class CustomerInvoiceLine extends Model
{
protected $table = 'SL_SALESINVOICETRAN';
public $timestamps = false;
protected $casts = [
'QTYTOINVOICE' => 'decimal:2',
'SELLINGPRICE' => 'decimal:2',
'COSTPRICE' => 'decimal:2',
];
public function invoice()
{
return $this->belongsTo(CustomerInvoice::class, 'REFNO', 'REFNO');
}
public function product()
{
return $this->belongsTo(Product::class, 'STOCKCODE', 'STOCKCODE');
}
}