update migrations and create base migration. set discount and tax to sale invoices
This commit is contained in:
@@ -23,19 +23,6 @@ export const PaymentMethodType = {
|
||||
export type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType]
|
||||
|
||||
|
||||
export const UnitType = {
|
||||
COUNT: 'COUNT',
|
||||
GRAM: 'GRAM',
|
||||
KILOGRAM: 'KILOGRAM',
|
||||
MILLILITER: 'MILLILITER',
|
||||
LITER: 'LITER',
|
||||
METER: 'METER',
|
||||
HOUR: 'HOUR'
|
||||
} as const
|
||||
|
||||
export type UnitType = (typeof UnitType)[keyof typeof UnitType]
|
||||
|
||||
|
||||
export const GoodPricingModel = {
|
||||
STANDARD: 'STANDARD',
|
||||
GOLD: 'GOLD'
|
||||
@@ -85,24 +72,6 @@ export const BusinessRole = {
|
||||
export type BusinessRole = (typeof BusinessRole)[keyof typeof BusinessRole]
|
||||
|
||||
|
||||
export const LicenseType = {
|
||||
BASIC: 'BASIC',
|
||||
PRO: 'PRO',
|
||||
ENTERPRISE: 'ENTERPRISE'
|
||||
} as const
|
||||
|
||||
export type LicenseType = (typeof LicenseType)[keyof typeof LicenseType]
|
||||
|
||||
|
||||
export const LicenseStatus = {
|
||||
ACTIVE: 'ACTIVE',
|
||||
EXPIRED: 'EXPIRED',
|
||||
SUSPENDED: 'SUSPENDED'
|
||||
} as const
|
||||
|
||||
export type LicenseStatus = (typeof LicenseStatus)[keyof typeof LicenseStatus]
|
||||
|
||||
|
||||
export const POSType = {
|
||||
PSP: 'PSP',
|
||||
MOBILE: 'MOBILE',
|
||||
@@ -113,14 +82,6 @@ export const POSType = {
|
||||
export type POSType = (typeof POSType)[keyof typeof POSType]
|
||||
|
||||
|
||||
export const UserType = {
|
||||
LEGAL: 'LEGAL',
|
||||
INDIVIDUAL: 'INDIVIDUAL'
|
||||
} as const
|
||||
|
||||
export type UserType = (typeof UserType)[keyof typeof UserType]
|
||||
|
||||
|
||||
export const AccountType = {
|
||||
ADMIN: 'ADMIN',
|
||||
PROVIDER: 'PROVIDER',
|
||||
@@ -131,23 +92,6 @@ export const AccountType = {
|
||||
export type AccountType = (typeof AccountType)[keyof typeof AccountType]
|
||||
|
||||
|
||||
export const UserStatus = {
|
||||
ACTIVE: 'ACTIVE',
|
||||
INACTIVE: 'INACTIVE'
|
||||
} as const
|
||||
|
||||
export type UserStatus = (typeof UserStatus)[keyof typeof UserStatus]
|
||||
|
||||
|
||||
export const AccountRole = {
|
||||
OWNER: 'OWNER',
|
||||
OPERATOR: 'OPERATOR',
|
||||
ACCOUNTANT: 'ACCOUNTANT'
|
||||
} as const
|
||||
|
||||
export type AccountRole = (typeof AccountRole)[keyof typeof AccountRole]
|
||||
|
||||
|
||||
export const AccountStatus = {
|
||||
ACTIVE: 'ACTIVE',
|
||||
SUSPENDED: 'SUSPENDED'
|
||||
@@ -182,14 +126,6 @@ export const ProviderRole = {
|
||||
export type ProviderRole = (typeof ProviderRole)[keyof typeof ProviderRole]
|
||||
|
||||
|
||||
export const ProviderStatus = {
|
||||
ACTIVE: 'ACTIVE',
|
||||
SUSPENDED: 'SUSPENDED'
|
||||
} as const
|
||||
|
||||
export type ProviderStatus = (typeof ProviderStatus)[keyof typeof ProviderStatus]
|
||||
|
||||
|
||||
export const ConsumerRole = {
|
||||
OWNER: 'OWNER',
|
||||
MANAGER: 'MANAGER',
|
||||
@@ -207,14 +143,6 @@ export const ConsumerStatus = {
|
||||
export type ConsumerStatus = (typeof ConsumerStatus)[keyof typeof ConsumerStatus]
|
||||
|
||||
|
||||
export const TokenType = {
|
||||
ACCESS: 'ACCESS',
|
||||
REFRESH: 'REFRESH'
|
||||
} as const
|
||||
|
||||
export type TokenType = (typeof TokenType)[keyof typeof TokenType]
|
||||
|
||||
|
||||
export const ApplicationPlatform = {
|
||||
ANDROID: 'ANDROID',
|
||||
IOS: 'IOS'
|
||||
@@ -232,15 +160,6 @@ export const ApplicationReleaseType = {
|
||||
export type ApplicationReleaseType = (typeof ApplicationReleaseType)[keyof typeof ApplicationReleaseType]
|
||||
|
||||
|
||||
export const ApplicationPublisher = {
|
||||
DIRECT: 'DIRECT',
|
||||
CAFE_BAZAR: 'CAFE_BAZAR',
|
||||
MAYKET: 'MAYKET'
|
||||
} as const
|
||||
|
||||
export type ApplicationPublisher = (typeof ApplicationPublisher)[keyof typeof ApplicationPublisher]
|
||||
|
||||
|
||||
export const ConsumerType = {
|
||||
INDIVIDUAL: 'INDIVIDUAL',
|
||||
LEGAL: 'LEGAL'
|
||||
@@ -288,21 +207,6 @@ export const TspProviderRequestType = {
|
||||
export type TspProviderRequestType = (typeof TspProviderRequestType)[keyof typeof TspProviderRequestType]
|
||||
|
||||
|
||||
export const TspProviderCustomerType = {
|
||||
Unknown: 'Unknown',
|
||||
Known: 'Known'
|
||||
} as const
|
||||
|
||||
export type TspProviderCustomerType = (typeof TspProviderCustomerType)[keyof typeof TspProviderCustomerType]
|
||||
|
||||
|
||||
export const SKUGuildType = {
|
||||
GOLD: 'GOLD'
|
||||
} as const
|
||||
|
||||
export type SKUGuildType = (typeof SKUGuildType)[keyof typeof SKUGuildType]
|
||||
|
||||
|
||||
export const InvoiceTemplateType = {
|
||||
SALE: 'SALE',
|
||||
FX_SALE: 'FX_SALE',
|
||||
|
||||
Reference in New Issue
Block a user