53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
import { DataTableRecord } from '../../../shared/components/data-table/data-table.types';
|
|
|
|
|
|
export interface TenantCurrencyDto {
|
|
id: string;
|
|
tenantId: string;
|
|
tenantName: string;
|
|
currencyId: string;
|
|
currencyName: string;
|
|
isBaseCurrency: boolean;
|
|
isReporting: boolean;
|
|
isActive: boolean;
|
|
createdOn?: string;
|
|
modifiedOn?: string | null;
|
|
}
|
|
|
|
export interface TenantCurrencyLookupDto {
|
|
id: string;
|
|
tenantId: string;
|
|
currencyId: string;
|
|
isBaseCurrency: boolean;
|
|
isReporting: boolean;
|
|
}
|
|
|
|
export interface CreateTenantCurrencyRequest {
|
|
tenantId: string;
|
|
currencyId: string;
|
|
isBaseCurrency: boolean;
|
|
isReporting: boolean;
|
|
}
|
|
|
|
export interface UpdateTenantCurrencyRequest {
|
|
isBaseCurrency: boolean;
|
|
isReporting: boolean;
|
|
isActive: boolean;
|
|
}
|
|
|
|
|
|
export interface TenantCurrencyTableRow extends DataTableRecord {
|
|
readonly id: string;
|
|
readonly tenantId: string;
|
|
readonly tenantName: string;
|
|
readonly currencyId: string;
|
|
readonly currencyName: string;
|
|
readonly isBaseCurrency: boolean;
|
|
readonly isReporting: boolean;
|
|
readonly isActive: boolean;
|
|
readonly serialNumber: number;
|
|
readonly createdOn?: string;
|
|
readonly modifiedOn?: string | null;
|
|
}
|
|
|
|
export type TenantCurrencyModalMode = 'create' | 'edit'; |