feat: implement POS order management system
- Added CreateOrderDto and CreateOrderItemDto for order creation. - Developed PosOrdersController to handle order-related endpoints. - Created PosOrdersService for business logic related to orders. - Implemented PosOrdersWorkflow for order processing workflows. - Established Prisma integration for database operations in orders. - Introduced SalesInvoicesModule and related DTOs for sales invoice management. - Enhanced SalesInvoicesService and SalesInvoicesWorkflow for invoice processing.
This commit is contained in:
@@ -83,7 +83,8 @@ export const ModelName = {
|
||||
StockAdjustment: 'StockAdjustment',
|
||||
StockReservation: 'StockReservation',
|
||||
Supplier: 'Supplier',
|
||||
SupplierLedger: 'SupplierLedger'
|
||||
SupplierLedger: 'SupplierLedger',
|
||||
StockAvailableView: 'StockAvailableView'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -278,7 +279,8 @@ export const OrderScalarFieldEnum = {
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
customerId: 'customerId'
|
||||
customerId: 'customerId',
|
||||
posAccountId: 'posAccountId'
|
||||
} as const
|
||||
|
||||
export type OrderScalarFieldEnum = (typeof OrderScalarFieldEnum)[keyof typeof OrderScalarFieldEnum]
|
||||
@@ -527,7 +529,6 @@ export type StockAdjustmentScalarFieldEnum = (typeof StockAdjustmentScalarFieldE
|
||||
export const StockReservationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
quantity: 'quantity',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt',
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
@@ -571,6 +572,17 @@ export const SupplierLedgerScalarFieldEnum = {
|
||||
export type SupplierLedgerScalarFieldEnum = (typeof SupplierLedgerScalarFieldEnum)[keyof typeof SupplierLedgerScalarFieldEnum]
|
||||
|
||||
|
||||
export const StockAvailableViewScalarFieldEnum = {
|
||||
productId: 'productId',
|
||||
inventoryId: 'inventoryId',
|
||||
physicalQuantity: 'physicalQuantity',
|
||||
reservedQuantity: 'reservedQuantity',
|
||||
availableQuantity: 'availableQuantity'
|
||||
} as const
|
||||
|
||||
export type StockAvailableViewScalarFieldEnum = (typeof StockAvailableViewScalarFieldEnum)[keyof typeof StockAvailableViewScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
Reference in New Issue
Block a user