mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix(server): mark compute inventory cost flag
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { IFinancialSheetCommonMeta } from '../types/Report.types';
|
||||
import { TenancyContext } from '@/modules/Tenancy/TenancyContext.service';
|
||||
import { InventoryComputeCostService } from '@/modules/InventoryCost/commands/InventoryComputeCost.service';
|
||||
|
||||
@Injectable()
|
||||
export class FinancialSheetMeta {
|
||||
constructor(private readonly tenancyContext: TenancyContext) {}
|
||||
constructor(
|
||||
private readonly tenancyContext: TenancyContext,
|
||||
private readonly inventoryComputeCostService: InventoryComputeCostService,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Retrieves the common meta data of the financial sheet.
|
||||
@@ -17,10 +21,8 @@ export class FinancialSheetMeta {
|
||||
const baseCurrency = tenantMetadata.baseCurrency;
|
||||
const dateFormat = tenantMetadata.dateFormat;
|
||||
|
||||
// const isCostComputeRunning =
|
||||
// this.inventoryService.isItemsCostComputeRunning();
|
||||
|
||||
const isCostComputeRunning = false;
|
||||
const isCostComputeRunning =
|
||||
await this.inventoryComputeCostService.isItemsCostComputeRunning();
|
||||
|
||||
return {
|
||||
organizationName,
|
||||
|
||||
Reference in New Issue
Block a user