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
@@ -1,4 +1,5 @@
import { PaginatorComponent, UikitCopyComponent, UikitEmptyStateComponent } from '@/uikit';
import { formatJalali } from '@/utils';
import { CommonModule } from '@angular/common';
import {
Component,
@@ -124,8 +125,7 @@ export class PageDataListComponent<I> {
switch (column.type) {
case 'date':
if (!data) return '-';
const date = new Date(data);
return isNaN(date.getTime()) ? '-' : date.toLocaleDateString();
return formatJalali(data);
case 'boolean':
return data ? 'بله' : 'خیر';
case 'price':