add saldo IRS
This commit is contained in:
12
src/transaction/dto/add-saldo-supplier.dto.ts
Normal file
12
src/transaction/dto/add-saldo-supplier.dto.ts
Normal 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;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user