chore: initial commit of existing codebase

This commit is contained in:
ghassan committed 2026-05-19 12:40:08 +03:00
commit 11e94889b2
292 files changed
+38586

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Customer extends Model
{
use HasFactory;
protected $fillable = ['name', 'contact_person', 'email', 'phone', 'address', 'tax_number', 'credit_limit', 'outstanding_balance', 'is_active'];
protected $casts = [
'credit_limit' => 'decimal:2',
'outstanding_balance' => 'decimal:2',
'is_active' => 'boolean',
];
public function salesOrders()
{
return $this->hasMany(SalesOrder::class);
}
public function salesInvoices()
{
return $this->hasMany(SalesInvoice::class);
}
public function paymentReceipts()
{
return $this->hasMany(PaymentReceipt::class);
}
}