feat: enhance input component to support price type and add new payment method components

- Updated InputComponent to handle 'price' type with appropriate formatting and validation.
- Introduced new API routes for purchase receipt payments.
- Created constants for purchase receipts and invoices.
- Developed SupplierInvoicePayFormComponent for processing invoice payments.
- Implemented SupplierLedgerComponent to display supplier transactions.
- Added services and stores for managing supplier invoices and payments.
- Created components for selecting payment methods and displaying payment type tags.
- Enhanced UI with new templates for invoices and payment forms.
- Added utility functions for handling payment method types and statuses.
This commit is contained in:
2025-12-27 20:35:02 +03:30
parent c6efda319c
commit 879e29f54f
70 changed files with 1094 additions and 334 deletions
+1 -3
View File
@@ -9,9 +9,6 @@ import { IPaginatedQuery, IResponseMetadata } from '../models/service.model';
export interface BaseState<T = any> {
loading: boolean;
error: Maybe<string>;
currentPage?: number;
items?: T;
meta?: Maybe<IPaginatedQuery>;
isRefreshing?: boolean;
initialized: boolean;
}
@@ -21,6 +18,7 @@ export interface BaseState<T = any> {
*/
export interface PaginatedState<T = any> extends BaseState {
items: T[];
meta?: Maybe<IPaginatedQuery>;
totalCount: number;
currentPage: number;
pageSize: number;