refactor: invoice relation (#2)
* refactor: update database table * refactor: update invoice to have relation with installments * chore: add migration
This commit is contained in:
parent
ba41bf45cb
commit
824727582d
6 changed files with 106 additions and 163 deletions
|
|
@ -289,7 +289,9 @@ export class QuotationController extends Controller {
|
|||
worker: true,
|
||||
},
|
||||
},
|
||||
paySplit: true,
|
||||
paySplit: {
|
||||
include: { invoice: true },
|
||||
},
|
||||
createdBy: true,
|
||||
updatedBy: true,
|
||||
},
|
||||
|
|
@ -482,7 +484,9 @@ export class QuotationController extends Controller {
|
|||
worker: true,
|
||||
},
|
||||
},
|
||||
paySplit: true,
|
||||
paySplit: {
|
||||
include: { invoice: true },
|
||||
},
|
||||
worker: true,
|
||||
customerBranch: {
|
||||
include: { customer: true },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue