feat: implement purchase receipt items management with create, update, find, and delete functionalities

feat: add purchase receipts management with create, update, find, and delete functionalities

feat: implement sales invoice items management with create, update, find, and delete functionalities

feat: add sales invoices management with create, update, find, and delete functionalities

feat: implement stock adjustments management with create, update, find, and delete functionalities

feat: add stock balance retrieval functionality

feat: implement stock movements management with create, update, find, and delete functionalities
This commit is contained in:
2025-12-09 13:59:07 +03:30
parent a782d61890
commit 807f6c2087
98 changed files with 26109 additions and 501 deletions
+58 -2
View File
@@ -9,7 +9,63 @@
* 🟢 You can import this file directly.
*/
export const OrderStatus = {
pending: 'pending',
reject: 'reject',
done: 'done'
} as const
export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus]
// This file is empty because there are no enums in the schema.
export {}
export const paymentMethod = {
cash: 'cash',
card: 'card'
} as const
export type paymentMethod = (typeof paymentMethod)[keyof typeof paymentMethod]
export const MovementType = {
IN: 'IN',
OUT: 'OUT',
ADJUST: 'ADJUST'
} as const
export type MovementType = (typeof MovementType)[keyof typeof MovementType]
export const MovementReferenceType = {
PURCHASE: 'PURCHASE',
SALES: 'SALES',
ADJUSTMENT: 'ADJUSTMENT'
} as const
export type MovementReferenceType = (typeof MovementReferenceType)[keyof typeof MovementReferenceType]
export const stock_cardex_type = {
IN: 'IN',
OUT: 'OUT',
ADJUST: 'ADJUST'
} as const
export type stock_cardex_type = (typeof stock_cardex_type)[keyof typeof stock_cardex_type]
export const stock_movements_view_type = {
IN: 'IN',
OUT: 'OUT',
ADJUST: 'ADJUST'
} as const
export type stock_movements_view_type = (typeof stock_movements_view_type)[keyof typeof stock_movements_view_type]
export const stock_movements_view_referenceType = {
PURCHASE: 'PURCHASE',
SALES: 'SALES',
ADJUSTMENT: 'ADJUSTMENT'
} as const
export type stock_movements_view_referenceType = (typeof stock_movements_view_referenceType)[keyof typeof stock_movements_view_referenceType]