refactor: invoice relation (#2)

* refactor: update database table

* refactor: update invoice to have relation with installments

* chore: add migration
This commit is contained in:
Methapon Metanipat 2024-10-30 17:32:46 +07:00 committed by GitHub
parent ba41bf45cb
commit 824727582d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 106 additions and 163 deletions

View file

@ -61,14 +61,7 @@ export class QuotationPayment extends Controller {
include: {
invoice: {
include: {
productServiceList: {
include: {
worker: true,
service: true,
work: true,
product: true,
},
},
installments: true,
quotation: true,
createdBy: true,
},
@ -90,14 +83,7 @@ export class QuotationPayment extends Controller {
include: {
invoice: {
include: {
productServiceList: {
include: {
worker: true,
service: true,
work: true,
product: true,
},
},
installments: true,
quotation: true,
createdBy: true,
},