mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat: wip migrate to nestjs
This commit is contained in:
@@ -213,7 +213,7 @@ export class ItemsEntriesService {
|
||||
/**
|
||||
* Sets the cost/sell accounts to the invoice entries.
|
||||
*/
|
||||
public async setItemsEntriesDefaultAccounts(entries: ItemEntry[]) {
|
||||
public setItemsEntriesDefaultAccounts = async (entries: ItemEntry[]) => {
|
||||
const entriesItemsIds = entries.map((e) => e.itemId);
|
||||
const items = await this.itemModel.query().whereIn('id', entriesItemsIds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user