mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix: formatted transaction type
This commit is contained in:
@@ -38,7 +38,7 @@ export class TableSheetPdf {
|
||||
|
||||
// Generate HTML content from the template
|
||||
const htmlContent = await this.templateInjectable.render(
|
||||
'modules/financial-sheet',
|
||||
'financial-sheet',
|
||||
{
|
||||
table: { rows, columns },
|
||||
sheetName,
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { TableSheetPdf } from '../../common/TableSheetPdf';
|
||||
import { ICashFlowStatementQuery } from './Cashflow.types';
|
||||
import { CashflowTableInjectable } from './CashflowTableInjectable';
|
||||
import { HtmlTableCustomCss } from './constants';
|
||||
|
||||
@Injectable()
|
||||
export class CashflowTablePdfInjectable {
|
||||
constructor(
|
||||
private readonly cashflowTable: CashflowTableInjectable,
|
||||
|
||||
@@ -49,7 +49,7 @@ export class ProfitLossSheetController {
|
||||
);
|
||||
res.send(sheet);
|
||||
// Retrieves the json format.
|
||||
} else if (acceptHeader.includes(AcceptType.ApplicationJson)) {
|
||||
} else if (acceptHeader.includes(AcceptType.ApplicationPdf)) {
|
||||
const pdfContent = await this.profitLossSheetApp.pdf(query);
|
||||
|
||||
res.set({
|
||||
|
||||
@@ -7,7 +7,6 @@ import {
|
||||
Req,
|
||||
Res,
|
||||
} from '@nestjs/common';
|
||||
import { ISalesByItemsReportQuery } from './SalesByItems.types';
|
||||
import { AcceptType } from '@/constants/accept-type';
|
||||
import { SalesByItemsApplication } from './SalesByItemsApplication';
|
||||
import { Response } from 'express';
|
||||
@@ -21,7 +20,10 @@ export class SalesByItemsController {
|
||||
|
||||
@Get()
|
||||
@ApiResponse({ status: 200, description: 'Sales by items report' })
|
||||
@ApiOperation({ summary: 'Get sales by items report' })
|
||||
@ApiOperation({
|
||||
summary: 'Sales by items report',
|
||||
description: 'Retrieves the sales by items report.',
|
||||
})
|
||||
public async salesByitems(
|
||||
@Query() filter: SalesByItemsQueryDto,
|
||||
@Res({ passthrough: true }) res: Response,
|
||||
|
||||
Reference in New Issue
Block a user