feat(inventories): implement inventory movement list and transfer functionality

- 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.
This commit is contained in:
2025-12-14 10:16:14 +03:30
parent b46b8b83f9
commit 35be7e0298
65 changed files with 1543 additions and 80 deletions
@@ -0,0 +1,6 @@
// const baseUrl = '/api/v1/product-categories';
// export const PRODUCT_CATEGORIES_API_ROUTES = {
// list: () => `${baseUrl}`,
// single: (categoryId: string) => `${baseUrl}/${categoryId}`,
// };
+2
View File
@@ -0,0 +1,2 @@
// export * from './apiRoutes';
export * from './routes';
@@ -0,0 +1,17 @@
import { NamedRoutes } from '@/core';
import { Routes } from '@angular/router';
export type TPOSRouteNames = 'POS';
export const posNamedRoutes: NamedRoutes<TPOSRouteNames> = {
POS: {
path: 'pos',
loadComponent: () => import('../../views/pos.component').then((m) => m.POSComponent),
meta: {
title: 'نقطه فروش',
pagePath: () => '/pos',
},
},
};
export const POS_ROUTES: Routes = Object.values(posNamedRoutes);
@@ -0,0 +1 @@
<div class=""></div>
@@ -0,0 +1,9 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-pos',
templateUrl: './pos.component.html',
})
export class POSComponent {
constructor() {}
}