fix: update SupplierLedger model to use correct enum casing and adjust types
feat: enhance PosAccountsService to include inventoryBankAccount details in responses refactor: modify PosService to return structured inventory and bank account data chore: remove isSettled field from CreatePurchaseReceiptDto and adjust related logic feat: add payments selection in SuppliersService for better payment tracking chore: apply database migrations to adjust decimal types and enforce constraints chore: create index on Pos_Accounts for improved query performance feat: define Supplier and SupplierLedger models in Prisma schema for better data management
This commit is contained in:
@@ -37,7 +37,7 @@ export const MovementReferenceType = {
|
||||
export type MovementReferenceType = (typeof MovementReferenceType)[keyof typeof MovementReferenceType]
|
||||
|
||||
|
||||
export const payment_method_type = {
|
||||
export const PaymentMethodType = {
|
||||
CASH: 'CASH',
|
||||
CARD: 'CARD',
|
||||
BANK: 'BANK',
|
||||
@@ -45,14 +45,31 @@ export const payment_method_type = {
|
||||
OTHER: 'OTHER'
|
||||
} as const
|
||||
|
||||
export type payment_method_type = (typeof payment_method_type)[keyof typeof payment_method_type]
|
||||
export type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType]
|
||||
|
||||
|
||||
export const ledgerSourceType = {
|
||||
export const LedgerSourceType = {
|
||||
PURCHASE: 'PURCHASE',
|
||||
PAYMENT: 'PAYMENT',
|
||||
ADJUSTMENT: 'ADJUSTMENT',
|
||||
REFUND: 'REFUND'
|
||||
} as const
|
||||
|
||||
export type ledgerSourceType = (typeof ledgerSourceType)[keyof typeof ledgerSourceType]
|
||||
export type LedgerSourceType = (typeof LedgerSourceType)[keyof typeof LedgerSourceType]
|
||||
|
||||
|
||||
export const PaymentType = {
|
||||
PAYMENT: 'PAYMENT',
|
||||
REFUND: 'REFUND'
|
||||
} as const
|
||||
|
||||
export type PaymentType = (typeof PaymentType)[keyof typeof PaymentType]
|
||||
|
||||
|
||||
export const PurchaseReceiptStatus = {
|
||||
UNPAID: 'UNPAID',
|
||||
PARTIALLY_PAID: 'PARTIALLY_PAID',
|
||||
PAID: 'PAID'
|
||||
} as const
|
||||
|
||||
export type PurchaseReceiptStatus = (typeof PurchaseReceiptStatus)[keyof typeof PurchaseReceiptStatus]
|
||||
|
||||
Reference in New Issue
Block a user