amount update

This commit is contained in:
Abhishek Mali
2025-12-22 19:22:01 +05:30
parent cdb6cab57d
commit 1bce2be826
9 changed files with 152 additions and 27 deletions

View File

@@ -94,6 +94,19 @@ public function invoices()
return $this->hasMany(\App\Models\Invoice::class, 'customer_id', 'id');
}
// App\Models\User.php
public function invoiceInstallments()
{
return $this->hasManyThrough(
InvoiceInstallment::class,
Invoice::class,
'customer_id', // FK on invoices
'invoice_id' // FK on installments
);
}
}