mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 23:30:32 +00:00
wip
This commit is contained in:
@@ -38,7 +38,7 @@ export class CreateSaleReceipt {
|
||||
|
||||
@Inject(Customer.name)
|
||||
private readonly customerModel: TenantModelProxy<typeof Customer>,
|
||||
) {}
|
||||
) { }
|
||||
|
||||
/**
|
||||
* Creates a new sale receipt with associated entries.
|
||||
@@ -89,7 +89,7 @@ export class CreateSaleReceipt {
|
||||
|
||||
// Inserts the sale receipt graph to the storage.
|
||||
const saleReceipt = await this.saleReceiptModel()
|
||||
.query()
|
||||
.query(trx)
|
||||
.upsertGraph({
|
||||
...saleReceiptObj,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user