add: create supplier

This commit is contained in:
ilham
2021-12-11 23:45:03 +07:00
parent d332935e85
commit 14a00988d9
18 changed files with 267 additions and 45 deletions

View File

@@ -0,0 +1,15 @@
import { IsNotEmpty } from 'class-validator';
export class CreatePartnerDto {
@IsNotEmpty()
name: string;
@IsNotEmpty()
address: string;
@IsNotEmpty()
owner: string;
@IsNotEmpty()
npwp: string;
}

View File

@@ -0,0 +1,9 @@
import { IsNotEmpty } from 'class-validator';
export class CreateSupplierDto {
@IsNotEmpty()
name: string;
@IsNotEmpty()
code: string;
}