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:
@@ -0,0 +1,6 @@
|
||||
// const baseUrl = '/api/v1/product-categories';
|
||||
|
||||
// export const PRODUCT_CATEGORIES_API_ROUTES = {
|
||||
// list: () => `${baseUrl}`,
|
||||
// single: (categoryId: string) => `${baseUrl}/${categoryId}`,
|
||||
// };
|
||||
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user