35be7e0298
- Added InventoryMovementListComponent to display stock movements with filtering options. - Created InventoriesTransferFormComponent for transferring stock between inventories. - Implemented product cardex view to show detailed inventory movements for specific products. - Enhanced product listing with loading states and improved UI components. - Introduced Jalali date formatting directive for better date representation. - Added utility functions for Jalali date conversions and comparisons. - Created reusable details info card component for displaying inventory details. - Updated movement reference types and tags for better categorization of inventory movements.
67 lines
1.7 KiB
TypeScript
67 lines
1.7 KiB
TypeScript
import {
|
|
IInventoryInfo,
|
|
IInventoryMovement,
|
|
IInventoryStockProduct,
|
|
IInventoryTransferRequestItem,
|
|
} from './types';
|
|
|
|
export interface IInventorySummaryRawResponse {
|
|
id: number;
|
|
name: string;
|
|
location: string;
|
|
isActive: boolean;
|
|
isPointOfSale: boolean;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
deletedAt: Maybe<string>;
|
|
}
|
|
|
|
export interface IInventorySummaryResponse extends IInventorySummaryRawResponse {}
|
|
|
|
export interface IInventoryDetailRawResponse extends IInventorySummaryRawResponse {
|
|
availableProductTypes: number;
|
|
availableProductCount: number;
|
|
availableProductsCost: number;
|
|
}
|
|
|
|
export interface IInventoryDetailResponse extends IInventoryDetailRawResponse {}
|
|
|
|
export interface IInventoryRequest {
|
|
name: string;
|
|
location: string;
|
|
isActive: boolean;
|
|
}
|
|
|
|
export interface IInventoryStockMovementRawResponse {
|
|
receiptId: string;
|
|
count: number;
|
|
info: IInventoryInfo;
|
|
movements: IInventoryMovement[];
|
|
}
|
|
|
|
export interface IInventoryStockMovementResponse extends IInventoryStockMovementRawResponse {}
|
|
|
|
export interface IInventoryTransferRequest {
|
|
code: string;
|
|
description: string;
|
|
fromInventoryId: number;
|
|
toInventoryId: number;
|
|
items: IInventoryTransferRequestItem[];
|
|
}
|
|
|
|
export interface IInventoryStockRawResponse {
|
|
quantity: number;
|
|
avgCost: number;
|
|
product: IInventoryStockProduct;
|
|
}
|
|
|
|
export interface IInventoryStockResponse extends IInventoryStockRawResponse {}
|
|
|
|
export interface IInventoryStockQuery {
|
|
isAvailable?: boolean;
|
|
}
|
|
|
|
export interface IInventoryProductCardexRawResponse extends IInventoryStockMovementRawResponse {}
|
|
|
|
export interface IInventoryProductCardexResponse extends IInventoryProductCardexRawResponse {}
|