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:
@@ -72,16 +72,6 @@ export type BankAccount = Prisma.BankAccountModel
|
||||
*
|
||||
*/
|
||||
export type Inventory = Prisma.InventoryModel
|
||||
/**
|
||||
* Model InventoryTransfer
|
||||
*
|
||||
*/
|
||||
export type InventoryTransfer = Prisma.InventoryTransferModel
|
||||
/**
|
||||
* Model InventoryTransferItem
|
||||
*
|
||||
*/
|
||||
export type InventoryTransferItem = Prisma.InventoryTransferItemModel
|
||||
/**
|
||||
* Model InventoryBankAccount
|
||||
*
|
||||
@@ -92,21 +82,21 @@ export type InventoryBankAccount = Prisma.InventoryBankAccountModel
|
||||
*
|
||||
*/
|
||||
export type PosAccount = Prisma.PosAccountModel
|
||||
/**
|
||||
* Model InventoryTransfer
|
||||
*
|
||||
*/
|
||||
export type InventoryTransfer = Prisma.InventoryTransferModel
|
||||
/**
|
||||
* Model InventoryTransferItem
|
||||
*
|
||||
*/
|
||||
export type InventoryTransferItem = Prisma.InventoryTransferItemModel
|
||||
/**
|
||||
* Model Bank
|
||||
*
|
||||
*/
|
||||
export type Bank = Prisma.BankModel
|
||||
/**
|
||||
* Model Supplier
|
||||
*
|
||||
*/
|
||||
export type Supplier = Prisma.SupplierModel
|
||||
/**
|
||||
* Model SupplierLedger
|
||||
*
|
||||
*/
|
||||
export type SupplierLedger = Prisma.SupplierLedgerModel
|
||||
/**
|
||||
* Model Customer
|
||||
*
|
||||
@@ -182,3 +172,13 @@ export type StockBalance = Prisma.StockBalanceModel
|
||||
*
|
||||
*/
|
||||
export type StockAdjustment = Prisma.StockAdjustmentModel
|
||||
/**
|
||||
* Model Supplier
|
||||
*
|
||||
*/
|
||||
export type Supplier = Prisma.SupplierModel
|
||||
/**
|
||||
* Model SupplierLedger
|
||||
*
|
||||
*/
|
||||
export type SupplierLedger = Prisma.SupplierLedgerModel
|
||||
|
||||
Reference in New Issue
Block a user