mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
refactor: gl entries
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { ToNumber } from '@/common/decorators/Validators';
|
||||
import { parseBoolean } from '@/utils/parse-boolean';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
import { Transform, Type } from 'class-transformer';
|
||||
import {
|
||||
IsArray,
|
||||
IsBoolean,
|
||||
@@ -41,6 +42,7 @@ export class ExpenseCategoryDto {
|
||||
description?: string;
|
||||
|
||||
@IsBoolean()
|
||||
@Transform(({ value }) => parseBoolean(value, false))
|
||||
@IsOptional()
|
||||
landedCost?: boolean;
|
||||
|
||||
@@ -103,6 +105,7 @@ export class CommandExpenseDto {
|
||||
currencyCode?: string;
|
||||
|
||||
@IsBoolean()
|
||||
@Transform(({ value }) => parseBoolean(value, false))
|
||||
@IsOptional()
|
||||
@ApiProperty({
|
||||
description: 'The publish status of the expense',
|
||||
|
||||
Reference in New Issue
Block a user