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
|
|
@ -37,14 +37,7 @@ export class ReceiptController extends Controller {
|
|||
include: {
|
||||
invoice: {
|
||||
include: {
|
||||
productServiceList: {
|
||||
include: {
|
||||
worker: true,
|
||||
service: true,
|
||||
work: true,
|
||||
product: true,
|
||||
},
|
||||
},
|
||||
installments: true,
|
||||
quotation: true,
|
||||
createdBy: true,
|
||||
},
|
||||
|
|
@ -67,14 +60,7 @@ export class ReceiptController extends Controller {
|
|||
include: {
|
||||
invoice: {
|
||||
include: {
|
||||
productServiceList: {
|
||||
include: {
|
||||
worker: true,
|
||||
service: true,
|
||||
work: true,
|
||||
product: true,
|
||||
},
|
||||
},
|
||||
installments: true,
|
||||
quotation: true,
|
||||
createdBy: true,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue