feat: add bank field
This commit is contained in:
parent
3e4709d8ff
commit
0bd3ce55a7
3 changed files with 34 additions and 3 deletions
|
|
@ -44,8 +44,11 @@ type BranchCreate = {
|
|||
|
||||
bank?: {
|
||||
bankName: string;
|
||||
bankBranch: string;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
accountType: string;
|
||||
currentlyUse: boolean;
|
||||
}[];
|
||||
|
||||
subDistrictId?: string | null;
|
||||
|
|
@ -77,8 +80,11 @@ type BranchUpdate = {
|
|||
|
||||
bank?: {
|
||||
bankName: string;
|
||||
bankBranch: string;
|
||||
accountName: string;
|
||||
accountNumber: string;
|
||||
accountType: string;
|
||||
currentlyUse: boolean;
|
||||
}[];
|
||||
};
|
||||
|
||||
|
|
@ -199,6 +205,7 @@ export class BranchController extends Controller {
|
|||
subDistrict: true,
|
||||
},
|
||||
},
|
||||
bank: true,
|
||||
_count: {
|
||||
select: { branch: true },
|
||||
},
|
||||
|
|
@ -236,6 +243,7 @@ export class BranchController extends Controller {
|
|||
subDistrict: true,
|
||||
},
|
||||
},
|
||||
bank: true,
|
||||
contact: includeContact,
|
||||
},
|
||||
where: { id: branchId },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue