add saldo IRS

This commit is contained in:
2021-12-09 03:22:52 +07:00
parent 84fda27e2d
commit 1f44cf484c
7 changed files with 114 additions and 19 deletions

View File

@@ -0,0 +1,12 @@
import { IsNotEmpty, IsUUID } from 'class-validator';
import { balanceType, coaType, statusTransaction, typeTransaction } from 'src/helper/enum-list';
import { EntityManager } from 'typeorm';
export class AddSaldoSupplier {
@IsNotEmpty()
supplier?: string;
@IsNotEmpty()
amount?: number;
}

View File

@@ -1,6 +1,7 @@
import { IsNotEmpty, IsUUID } from 'class-validator';
import { balanceType, coaType, statusTransaction, typeTransaction } from 'src/helper/enum-list';
import { EntityManager } from 'typeorm';
import { Transactions } from '../entities/transactions.entity';
interface JournalEntry {
coa_id: string;
@@ -19,7 +20,7 @@ export class CreateJournalDto {
userId?: string;
@IsNotEmpty()
transactionId?: string;
transaction?: Transactions;
@IsNotEmpty()
type?: typeTransaction;