@esvndev/es-react-table-interface 1.7.40 → 1.7.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ import { currencies } from './ultility/constantConfigNumeric';
3
3
  import { IButtonToolbar, IToolbarTemplate } from './ultility/Export/InterfaceExport';
4
4
  import { ColumnsTable, ColumnTable } from 'es-grid-template/lib/grid-component/type';
5
5
  import { IFColumnSelectTable } from 'react-table-edit';
6
+ import { IFDataSetup } from './ultility/ISetup';
6
7
  export interface IBreadCrumbsNotLinkProps {
7
8
  breadCrumbTitle?: string;
8
9
  breadCrumbActive: string;
@@ -308,6 +309,8 @@ export interface IExternalInterface {
308
309
  yearFormat?: string;
309
310
  colorNegative?: string;
310
311
  };
312
+ /** Cấu hình phân hệ kế toán*/
313
+ setupAcc?: IFDataSetup;
311
314
  /**Ẩn.hiện các nút mở rộng*/
312
315
  showUltilities?: boolean;
313
316
  /**Cấu hình các nút mở rộng*/
@@ -1,3 +1,4 @@
1
+ import { IFDataSetup } from "../ISetup";
1
2
  export declare const renderColumnTableGrid: (res: any[], t: any, more: {
2
3
  hasIndex?: boolean;
3
4
  breakText?: "Content" | "Header" | "Both";
@@ -5,4 +6,5 @@ export declare const renderColumnTableGrid: (res: any[], t: any, more: {
5
6
  levelGroup?: number;
6
7
  responseColumn?: any[];
7
8
  settingTable?: any;
9
+ setupAcc?: IFDataSetup;
8
10
  }) => any;
@@ -0,0 +1,173 @@
1
+ export interface IFDataSetup {
2
+ /** ID cấu hình (tùy chọn) */ id?: string; /** ID tổ chức liên kết với cấu hình */
3
+ organizationId: string; /** Cấu hình tài khoản */
4
+ account: IFDataSetupAccountNumber; /** Cấu hình định dạng số */
5
+ number: IFDataSetupNumber; /** Cấu hình hạch toán */
6
+ accounting: IFDataSetupAccounting; /** Cấu hình sản phẩm */
7
+ product: IFDataSetupProduct; /** Cấu hình kho hàng */
8
+ warehouse: IFDataSetupWarehouse; /** Cấu hình chữ ký */
9
+ signature: IFDataSetupSignature; /** Cấu hình định dạng ngày giờ */
10
+ datetime: IFDataSetupDatetime; /** Cấu hình hiển thị */
11
+ display: IFDataSetupDisplay;
12
+ }
13
+ export interface IFDataSetupNumber {
14
+ /** Tiêu đề cấu hình định dạng số */ title: string;
15
+ /** Ký tự phân cách hàng nghìn, ví dụ: ',' hoặc '.' */
16
+ thousandSeparator: string;
17
+ /** Ký tự phân cách thập phân, ví dụ: '.' hoặc ',' */
18
+ decimalSeparator: string;
19
+ /** Số chữ số thập phân cho giá trị nội tệ */
20
+ exchangeMoney: number;
21
+ /** Số chữ số thập phân cho giá trị ngoại tệ */
22
+ overseaMoney: number;
23
+ /** Số chữ số thập phân cho đơn giá nội tệ */
24
+ unitPriceExchange: number;
25
+ /** Số chữ số thập phân cho đơn giá ngoại tệ */
26
+ unitPriceOversea: number;
27
+ /** Số chữ số thập phân cho số lượng */
28
+ quantity: number;
29
+ /** Số chữ số thập phân cho tỷ giá */
30
+ rate: number;
31
+ /** Số chữ số thập phân cho hệ số (tỷ lệ) */
32
+ ratio: number;
33
+ /** Số chữ số thập phân cho tỷ lệ phân bổ */
34
+ allocationRatio: number;
35
+ /** Ký hiệu hiển thị cho số âm, ví dụ: '()', '-', hoặc '' */
36
+ symbolNegative: string;
37
+ /** Màu hiển thị cho số âm, ví dụ: 'red', '#ff0000' */
38
+ colorNegative: string;
39
+ /** Tiền tố cho số âm, ví dụ: '-' trong '-1.000' */
40
+ prefixNegative: string;
41
+ /** Hậu tố cho số âm, ví dụ: '%' trong '1.000%' */
42
+ suffixNegative: string;
43
+ }
44
+ export interface IFDataSetupAccountNumber {
45
+ /** Tiêu đề cấu hình tài khoản */ title: string;
46
+ /** Tài khoản có */
47
+ creditAccount: string;
48
+ /** Tài khoản nợ */
49
+ debitAccount: string;
50
+ /** Mục chi phí của tài khoản nợ (tùy chọn) */
51
+ debitExpenseItemId?: string;
52
+ /** Tài khoản có chênh lệch */
53
+ creditDiffAccount: string;
54
+ /** Tài khoản nợ chênh lệch */
55
+ debitDiffAccount: string;
56
+ /** Mục chi phí có chênh lệch (tùy chọn) */
57
+ debitDiffExpenseItemId?: string;
58
+ }
59
+ export interface IFDataSetupAccounting {
60
+ /** ID cấu hình hạch toán (tùy chọn) */ id?: string;
61
+ /** Tiêu đề cấu hình */
62
+ title: string;
63
+ /** Mã tiền tệ dùng để hạch toán (ví dụ: "VND", "USD") */
64
+ currencyCode: string;
65
+ /** Ngày bắt đầu hạch toán */
66
+ startDate: Date;
67
+ /** Ngày bắt đầu năm tài chính (1 - 31) */
68
+ startDateAcc: number;
69
+ /** Có sinh mã theo tổ chức hay không */
70
+ genOrganizationId?: boolean;
71
+ /** Có sinh mã theo loại chứng từ hay không */
72
+ genDocumentType?: boolean;
73
+ }
74
+ export interface IFDataSetupProduct {
75
+ /** Tiêu đề cấu hình sản phẩm */ title: string;
76
+ /** Quy tắc theo dõi mã quy cách */
77
+ trackCodeSpecification: number;
78
+ /** Cho phép quét mã vạch */
79
+ allowsBarcodeScanning: number;
80
+ /** Ký tự phân tách trong mã quy cách */
81
+ speCodeSeparator: string;
82
+ }
83
+ export interface IFDataSetupWarehouse {
84
+ /** Tiêu đề cấu hình kho */ title: string;
85
+ /** Cho phép tồn kho âm */
86
+ negativeInventory: boolean;
87
+ /** Phương pháp tính giá */
88
+ calculationMethodPrice: number;
89
+ isRealName: boolean;
90
+ isAverageEndPeriod: boolean;
91
+ /** Các loại tồn kho chi tiết */
92
+ inventoryByLocation: boolean;
93
+ inventoryByOrder: boolean;
94
+ inventoryByCustomer: boolean;
95
+ inventoryByConstruction: boolean;
96
+ inventoryBySerial: boolean;
97
+ inventoryByExpiry: boolean;
98
+ inventoryByContract: boolean;
99
+ inventoryByDepartment: boolean;
100
+ inventoryByPallet: boolean;
101
+ inventoryByWarehouseInDate: boolean;
102
+ inventoryByArea: boolean;
103
+ /** Các loại tồn kho chi tiết */
104
+ requiredLocation: number;
105
+ requiredOrder: number;
106
+ requiredCustomer: number;
107
+ requiredConstruction: number;
108
+ requiredSerial: number;
109
+ requiredExpiry: number;
110
+ requiredContract: number;
111
+ requiredDepartment: number;
112
+ requiredPallet: number;
113
+ requiredWarehouseInDate: number;
114
+ requiredArea: number;
115
+ /** Các phương pháp tính giá theo từng tiêu chí */
116
+ calculationByLocation: boolean;
117
+ calculationByOrder: boolean;
118
+ calculationByCustomer: boolean;
119
+ calculationByConstruction: boolean;
120
+ calculationBySerial: boolean;
121
+ calculationByExpiry: boolean;
122
+ calculationByContract: boolean;
123
+ calculationByDepartment: boolean;
124
+ calculationByPallet: boolean;
125
+ calculationByWarehouseInDate: boolean;
126
+ calculationByArea: boolean;
127
+ }
128
+ export interface IFDataSetupSignature {
129
+ /** Tiêu đề cấu hình chữ ký */ title: string;
130
+ /** Danh sách người ký */
131
+ detail: IFDataSetupSignatureDetail[];
132
+ /** In tên người ký lên chứng từ và báo cáo */
133
+ reportSigning: number;
134
+ /** Lấy tên người lập theo tên người đăng nhập */
135
+ loginSigning: number;
136
+ }
137
+ export interface IFDataSetupSignatureDetail {
138
+ /** Chức vụ người ký */ position: string;
139
+ /** Danh xưng (ví dụ: Giám đốc, Kế toán trưởng) */
140
+ title: string;
141
+ /** Họ tên người ký */
142
+ name: string;
143
+ /** Mã người ký */
144
+ code: string;
145
+ }
146
+ export interface IFDataSetupDatetime {
147
+ /** Tiêu đề cấu hình ngày giờ */ title: string;
148
+ /** Định dạng ngày hiển thị giao diện (ví dụ: "dd/MM/yyyy") */
149
+ dateInterface: string;
150
+ /** Định dạng giờ hiển thị giao diện */
151
+ timeInterface: string;
152
+ /** Định dạng ngày nhập/xuất dữ liệu */
153
+ dateImportExport: string;
154
+ /** Định dạng ngày xuất Excel */
155
+ excel: string;
156
+ /** Định dạng ngày xuất Word */
157
+ word: string;
158
+ /** Định dạng giờ khi in */
159
+ timePrint: string;
160
+ }
161
+ export interface IFDataSetupDisplay {
162
+ /** Tùy chọn số dòng mỗi trang khi hiển thị */ pageOptions: number[];
163
+ /** Số dòng mặc định mỗi trang */
164
+ pageSize: number;
165
+ /** Tùy chọn số dòng mỗi trang khi chỉnh sửa */
166
+ editPageOptions: number[];
167
+ /** Số dòng mặc định mỗi trang khi chỉnh sửa */
168
+ editPageSize: number;
169
+ /** Tùy chọn số dòng mỗi trang khi in báo cáo */
170
+ reportPageOptions: number[];
171
+ /** Số dòng mặc định mỗi trang báo cáo */
172
+ reportPageSize: number;
173
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-table-interface",
3
- "version": "1.7.40",
3
+ "version": "1.7.41",
4
4
  "description": "This product is designed by ESVN and is only for use in products distributed by ESVN. Any product, whether for non-commercial research or commercial purposes, must have written legal approval and a digital signature from ESVN.",
5
5
  "license": "ESVN Limited Use License",
6
6
  "author": "dev@esvn.com.vn",
@@ -54,7 +54,7 @@
54
54
  "axios": "^1.7.2",
55
55
  "becoxy-icons": "1.9.9",
56
56
  "classnames": "^2.5.1",
57
- "es-grid-template": "1.7.42",
57
+ "es-grid-template": "1.8.22",
58
58
  "es-print-template": "0.0.27",
59
59
  "es-workflow-template": "0.4.6",
60
60
  "eslint": "^8.25.0",