@accounter/shaam-uniform-format-generator 0.1.0 → 0.1.1
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.
- package/README.md +366 -13
- package/dist/README.md +476 -0
- package/dist/cjs/api/generate-report-legacy.js +6 -0
- package/dist/cjs/api/generate-report.js +328 -0
- package/dist/cjs/constants.js +11 -0
- package/dist/cjs/generator/format/encoder.js +86 -0
- package/dist/cjs/generator/records/a000-sum.js +66 -0
- package/dist/cjs/generator/records/a000.js +349 -0
- package/dist/cjs/generator/records/a100.js +107 -0
- package/dist/cjs/generator/records/b100.js +305 -0
- package/dist/cjs/generator/records/b110.js +255 -0
- package/dist/cjs/generator/records/c100.js +338 -0
- package/dist/cjs/generator/records/d110.js +272 -0
- package/dist/cjs/generator/records/d120.js +278 -0
- package/{cjs → dist/cjs}/generator/records/index.js +1 -0
- package/dist/cjs/generator/records/m100.js +177 -0
- package/dist/cjs/generator/records/z900.js +93 -0
- package/{cjs → dist/cjs}/index.js +3 -0
- package/dist/cjs/records/a100.js +78 -0
- package/dist/cjs/records/index.js +20 -0
- package/dist/cjs/records/z900.js +82 -0
- package/dist/cjs/types/enums.js +457 -0
- package/{cjs → dist/cjs}/types/index.js +6 -1
- package/dist/cjs/utils/file-helpers.js +198 -0
- package/dist/cjs/utils/index.js +8 -0
- package/dist/cjs/utils/key-generator.js +71 -0
- package/dist/esm/api/generate-report-legacy.js +2 -0
- package/dist/esm/api/generate-report.js +325 -0
- package/dist/esm/constants.js +8 -0
- package/dist/esm/generator/format/encoder.js +77 -0
- package/dist/esm/generator/records/a000-sum.js +61 -0
- package/dist/esm/generator/records/a000.js +344 -0
- package/dist/esm/generator/records/a100.js +102 -0
- package/dist/esm/generator/records/b100.js +300 -0
- package/dist/esm/generator/records/b110.js +250 -0
- package/dist/esm/generator/records/c100.js +333 -0
- package/dist/esm/generator/records/d110.js +267 -0
- package/dist/esm/generator/records/d120.js +273 -0
- package/{esm → dist/esm}/generator/records/index.js +1 -0
- package/dist/esm/generator/records/m100.js +172 -0
- package/dist/esm/generator/records/z900.js +88 -0
- package/{esm → dist/esm}/index.js +3 -0
- package/dist/esm/records/a100.js +73 -0
- package/dist/esm/records/index.js +11 -0
- package/dist/esm/records/z900.js +77 -0
- package/dist/esm/types/enums.js +454 -0
- package/{esm → dist/esm}/types/index.js +5 -1
- package/dist/esm/utils/file-helpers.js +188 -0
- package/dist/esm/utils/index.js +5 -0
- package/dist/esm/utils/key-generator.js +65 -0
- package/dist/package.json +54 -0
- package/dist/typings/api/generate-report-legacy.d.cts +1 -0
- package/dist/typings/api/generate-report-legacy.d.ts +1 -0
- package/dist/typings/constants.d.cts +8 -0
- package/dist/typings/constants.d.ts +8 -0
- package/dist/typings/generator/format/encoder.d.cts +57 -0
- package/dist/typings/generator/format/encoder.d.ts +57 -0
- package/dist/typings/generator/records/a000-sum.d.cts +40 -0
- package/dist/typings/generator/records/a000-sum.d.ts +40 -0
- package/dist/typings/generator/records/a000.d.cts +238 -0
- package/dist/typings/generator/records/a000.d.ts +238 -0
- package/dist/typings/generator/records/a100.d.cts +59 -0
- package/dist/typings/generator/records/a100.d.ts +59 -0
- package/dist/typings/generator/records/b100.d.cts +101 -0
- package/dist/typings/generator/records/b100.d.ts +101 -0
- package/dist/typings/generator/records/b110.d.cts +89 -0
- package/dist/typings/generator/records/b110.d.ts +89 -0
- package/dist/typings/generator/records/c100.d.cts +133 -0
- package/dist/typings/generator/records/c100.d.ts +133 -0
- package/dist/typings/generator/records/d110.d.cts +98 -0
- package/dist/typings/generator/records/d110.d.ts +98 -0
- package/dist/typings/generator/records/d120.d.cts +95 -0
- package/dist/typings/generator/records/d120.d.ts +95 -0
- package/{typings → dist/typings}/generator/records/index.d.cts +1 -0
- package/{typings → dist/typings}/generator/records/index.d.ts +1 -0
- package/dist/typings/generator/records/m100.d.cts +69 -0
- package/dist/typings/generator/records/m100.d.ts +69 -0
- package/dist/typings/generator/records/z900.d.cts +61 -0
- package/dist/typings/generator/records/z900.d.ts +61 -0
- package/{typings → dist/typings}/index.d.cts +3 -0
- package/{typings → dist/typings}/index.d.ts +3 -0
- package/dist/typings/records/a100.d.cts +35 -0
- package/dist/typings/records/a100.d.ts +35 -0
- package/dist/typings/records/index.d.cts +2 -0
- package/dist/typings/records/index.d.ts +2 -0
- package/dist/typings/records/z900.d.cts +38 -0
- package/dist/typings/records/z900.d.ts +38 -0
- package/dist/typings/types/enums.d.cts +162 -0
- package/dist/typings/types/enums.d.ts +162 -0
- package/{typings → dist/typings}/types/index.d.cts +17 -14
- package/{typings → dist/typings}/types/index.d.ts +17 -14
- package/dist/typings/utils/file-helpers.d.cts +131 -0
- package/dist/typings/utils/file-helpers.d.ts +131 -0
- package/dist/typings/utils/index.d.cts +5 -0
- package/dist/typings/utils/index.d.ts +5 -0
- package/dist/typings/utils/key-generator.d.cts +41 -0
- package/dist/typings/utils/key-generator.d.ts +41 -0
- package/documentation/IncomeTax_IncomeTaxSoftwareHousesInfo_horaot1.31_2_05.pdf +0 -0
- package/documentation/_4D6963726F736F667420576F7264202D20F8E5E0E9ED20F8E7E5F720F8E5E0E9ED20F9F7E5F32E646F63_.pdf +0 -0
- package/documentation/a000-sum.csv +3 -0
- package/documentation/a000.csv +37 -0
- package/documentation/a100.csv +7 -0
- package/documentation/b100.csv +29 -0
- package/documentation/b110.csv +26 -0
- package/documentation/c100.csv +37 -0
- package/documentation/d110.csv +27 -0
- package/documentation/d120.csv +26 -0
- package/documentation/m100.csv +17 -0
- package/documentation/z900.csv +8 -0
- package/package.json +50 -29
- package/prompt_plan.md +259 -0
- package/spec.md +206 -0
- package/src/api/generate-report.ts +366 -0
- package/src/api/parse-files.ts +33 -0
- package/src/constants.ts +9 -0
- package/src/format/index.ts +6 -0
- package/src/format/newline.ts +8 -0
- package/src/format/padding.ts +39 -0
- package/src/generator/format/decoder.ts +15 -0
- package/src/generator/format/encoder.ts +95 -0
- package/src/generator/format/index.ts +6 -0
- package/src/generator/index.ts +6 -0
- package/src/generator/records/a000-sum.ts +78 -0
- package/src/generator/records/a000.ts +373 -0
- package/src/generator/records/a100.ts +118 -0
- package/src/generator/records/b100.ts +317 -0
- package/src/generator/records/b110.ts +267 -0
- package/src/generator/records/c100.ts +347 -0
- package/src/generator/records/d110.ts +286 -0
- package/src/generator/records/d120.ts +293 -0
- package/src/generator/records/index.ts +14 -0
- package/src/generator/records/m100.ts +185 -0
- package/src/generator/records/z900.ts +104 -0
- package/src/index.ts +18 -0
- package/src/parser/data-parser.ts +14 -0
- package/src/parser/index.ts +6 -0
- package/src/parser/ini-parser.ts +14 -0
- package/src/types/enums.ts +531 -0
- package/src/types/index.ts +110 -0
- package/src/utils/file-helpers.ts +221 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/key-generator.ts +75 -0
- package/src/validation/errors.ts +35 -0
- package/src/validation/index.ts +6 -0
- package/src/validation/validate-input.ts +67 -0
- package/tests/debug-output.test.ts +81 -0
- package/tests/format/crlf-join.test.ts +124 -0
- package/tests/format/encoder.test.ts +80 -0
- package/tests/format/newline.test.ts +19 -0
- package/tests/format/padding.test.ts +74 -0
- package/tests/index.test.ts +29 -0
- package/tests/ini-text.test.ts +122 -0
- package/tests/integration/comprehensive.integration.test.ts +350 -0
- package/tests/integration/roundtrip.integration.test.ts +377 -0
- package/tests/records/a000-sum.test.ts +278 -0
- package/tests/records/a000.test.ts +318 -0
- package/tests/records/a100.test.ts +239 -0
- package/tests/records/b100.test.ts +419 -0
- package/tests/records/b110.test.ts +445 -0
- package/tests/records/c100.test.ts +333 -0
- package/tests/records/d110.test.ts +93 -0
- package/tests/records/d120.test.ts +275 -0
- package/tests/records/m100.test.ts +437 -0
- package/tests/records/z900.test.ts +254 -0
- package/tests/types/enums.test.ts +290 -0
- package/tests/utils/file-helpers.test.ts +276 -0
- package/tests/utils/key-generator.test.ts +121 -0
- package/tests/validation/document-type-validation.test.ts +521 -0
- package/tests/validation/validate-input.test.ts +219 -0
- package/todo.md +203 -0
- package/tsconfig.json +10 -0
- package/vitest.config.ts +11 -0
- package/cjs/api/generate-report.js +0 -53
- package/cjs/generator/format/encoder.js +0 -46
- package/cjs/generator/records/a000.js +0 -8
- package/cjs/generator/records/a100.js +0 -8
- package/cjs/generator/records/b100.js +0 -8
- package/cjs/generator/records/b110.js +0 -8
- package/cjs/generator/records/c100.js +0 -8
- package/cjs/generator/records/d110.js +0 -8
- package/cjs/generator/records/d120.js +0 -8
- package/cjs/generator/records/m100.js +0 -8
- package/cjs/generator/records/z900.js +0 -8
- package/esm/api/generate-report.js +0 -50
- package/esm/generator/format/encoder.js +0 -42
- package/esm/generator/records/a000.js +0 -5
- package/esm/generator/records/a100.js +0 -5
- package/esm/generator/records/b100.js +0 -5
- package/esm/generator/records/b110.js +0 -5
- package/esm/generator/records/c100.js +0 -5
- package/esm/generator/records/d110.js +0 -5
- package/esm/generator/records/d120.js +0 -5
- package/esm/generator/records/m100.js +0 -5
- package/esm/generator/records/z900.js +0 -5
- package/typings/generator/format/encoder.d.cts +0 -33
- package/typings/generator/format/encoder.d.ts +0 -33
- package/typings/generator/records/a000.d.cts +0 -4
- package/typings/generator/records/a000.d.ts +0 -4
- package/typings/generator/records/a100.d.cts +0 -4
- package/typings/generator/records/a100.d.ts +0 -4
- package/typings/generator/records/b100.d.cts +0 -4
- package/typings/generator/records/b100.d.ts +0 -4
- package/typings/generator/records/b110.d.cts +0 -4
- package/typings/generator/records/b110.d.ts +0 -4
- package/typings/generator/records/c100.d.cts +0 -4
- package/typings/generator/records/c100.d.ts +0 -4
- package/typings/generator/records/d110.d.cts +0 -4
- package/typings/generator/records/d110.d.ts +0 -4
- package/typings/generator/records/d120.d.cts +0 -4
- package/typings/generator/records/d120.d.ts +0 -4
- package/typings/generator/records/m100.d.cts +0 -4
- package/typings/generator/records/m100.d.ts +0 -4
- package/typings/generator/records/z900.d.cts +0 -4
- package/typings/generator/records/z900.d.ts +0 -4
- /package/{cjs → dist/cjs}/api/parse-files.js +0 -0
- /package/{cjs → dist/cjs}/format/index.js +0 -0
- /package/{cjs → dist/cjs}/format/newline.js +0 -0
- /package/{cjs → dist/cjs}/format/padding.js +0 -0
- /package/{cjs → dist/cjs}/generator/format/decoder.js +0 -0
- /package/{cjs → dist/cjs}/generator/format/index.js +0 -0
- /package/{cjs → dist/cjs}/generator/index.js +0 -0
- /package/{cjs → dist/cjs}/package.json +0 -0
- /package/{cjs → dist/cjs}/parser/data-parser.js +0 -0
- /package/{cjs → dist/cjs}/parser/index.js +0 -0
- /package/{cjs → dist/cjs}/parser/ini-parser.js +0 -0
- /package/{cjs → dist/cjs}/validation/errors.js +0 -0
- /package/{cjs → dist/cjs}/validation/index.js +0 -0
- /package/{cjs → dist/cjs}/validation/validate-input.js +0 -0
- /package/{esm → dist/esm}/api/parse-files.js +0 -0
- /package/{esm → dist/esm}/format/index.js +0 -0
- /package/{esm → dist/esm}/format/newline.js +0 -0
- /package/{esm → dist/esm}/format/padding.js +0 -0
- /package/{esm → dist/esm}/generator/format/decoder.js +0 -0
- /package/{esm → dist/esm}/generator/format/index.js +0 -0
- /package/{esm → dist/esm}/generator/index.js +0 -0
- /package/{esm → dist/esm}/parser/data-parser.js +0 -0
- /package/{esm → dist/esm}/parser/index.js +0 -0
- /package/{esm → dist/esm}/parser/ini-parser.js +0 -0
- /package/{esm → dist/esm}/validation/errors.js +0 -0
- /package/{esm → dist/esm}/validation/index.js +0 -0
- /package/{esm → dist/esm}/validation/validate-input.js +0 -0
- /package/{typings → dist/typings}/api/generate-report.d.cts +0 -0
- /package/{typings → dist/typings}/api/generate-report.d.ts +0 -0
- /package/{typings → dist/typings}/api/parse-files.d.cts +0 -0
- /package/{typings → dist/typings}/api/parse-files.d.ts +0 -0
- /package/{typings → dist/typings}/format/index.d.cts +0 -0
- /package/{typings → dist/typings}/format/index.d.ts +0 -0
- /package/{typings → dist/typings}/format/newline.d.cts +0 -0
- /package/{typings → dist/typings}/format/newline.d.ts +0 -0
- /package/{typings → dist/typings}/format/padding.d.cts +0 -0
- /package/{typings → dist/typings}/format/padding.d.ts +0 -0
- /package/{typings → dist/typings}/generator/format/decoder.d.cts +0 -0
- /package/{typings → dist/typings}/generator/format/decoder.d.ts +0 -0
- /package/{typings → dist/typings}/generator/format/index.d.cts +0 -0
- /package/{typings → dist/typings}/generator/format/index.d.ts +0 -0
- /package/{typings → dist/typings}/generator/index.d.cts +0 -0
- /package/{typings → dist/typings}/generator/index.d.ts +0 -0
- /package/{typings → dist/typings}/parser/data-parser.d.cts +0 -0
- /package/{typings → dist/typings}/parser/data-parser.d.ts +0 -0
- /package/{typings → dist/typings}/parser/index.d.cts +0 -0
- /package/{typings → dist/typings}/parser/index.d.ts +0 -0
- /package/{typings → dist/typings}/parser/ini-parser.d.cts +0 -0
- /package/{typings → dist/typings}/parser/ini-parser.d.ts +0 -0
- /package/{typings → dist/typings}/validation/errors.d.cts +0 -0
- /package/{typings → dist/typings}/validation/errors.d.ts +0 -0
- /package/{typings → dist/typings}/validation/index.d.cts +0 -0
- /package/{typings → dist/typings}/validation/index.d.ts +0 -0
- /package/{typings → dist/typings}/validation/validate-input.d.cts +0 -0
- /package/{typings → dist/typings}/validation/validate-input.d.ts +0 -0
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Type definitions for SHAAM uniform format generator
|
|
3
3
|
*/
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
+
import { DocumentTypeEnum } from './enums.js';
|
|
6
|
+
export * from './enums.js';
|
|
5
7
|
export declare const BusinessMetadataSchema: z.ZodObject<{
|
|
6
8
|
businessId: z.ZodString;
|
|
7
9
|
name: z.ZodString;
|
|
@@ -35,18 +37,18 @@ export declare const BusinessMetadataSchema: z.ZodObject<{
|
|
|
35
37
|
}>;
|
|
36
38
|
export declare const DocumentSchema: z.ZodObject<{
|
|
37
39
|
id: z.ZodString;
|
|
38
|
-
type: z.
|
|
40
|
+
type: z.ZodEnum<["100", "200", "210", "300", "305", "320", "325", "330", "340", "400", "410", "420", "430", "500", "600", "700", "710"]>;
|
|
39
41
|
date: z.ZodString;
|
|
40
42
|
amount: z.ZodNumber;
|
|
41
43
|
description: z.ZodOptional<z.ZodString>;
|
|
42
44
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
type:
|
|
45
|
+
type: "100" | "200" | "210" | "300" | "305" | "320" | "325" | "330" | "340" | "400" | "410" | "420" | "430" | "500" | "600" | "700" | "710";
|
|
44
46
|
date: string;
|
|
45
47
|
id: string;
|
|
46
48
|
amount: number;
|
|
47
49
|
description?: string | undefined;
|
|
48
50
|
}, {
|
|
49
|
-
type:
|
|
51
|
+
type: "100" | "200" | "210" | "300" | "305" | "320" | "325" | "330" | "340" | "400" | "410" | "420" | "430" | "500" | "600" | "700" | "710";
|
|
50
52
|
date: string;
|
|
51
53
|
id: string;
|
|
52
54
|
amount: number;
|
|
@@ -77,13 +79,13 @@ export declare const AccountSchema: z.ZodObject<{
|
|
|
77
79
|
type: z.ZodString;
|
|
78
80
|
balance: z.ZodNumber;
|
|
79
81
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
name: string;
|
|
81
82
|
type: string;
|
|
83
|
+
name: string;
|
|
82
84
|
id: string;
|
|
83
85
|
balance: number;
|
|
84
86
|
}, {
|
|
85
|
-
name: string;
|
|
86
87
|
type: string;
|
|
88
|
+
name: string;
|
|
87
89
|
id: string;
|
|
88
90
|
balance: number;
|
|
89
91
|
}>;
|
|
@@ -137,18 +139,18 @@ export declare const ReportInputSchema: z.ZodObject<{
|
|
|
137
139
|
}>;
|
|
138
140
|
documents: z.ZodArray<z.ZodObject<{
|
|
139
141
|
id: z.ZodString;
|
|
140
|
-
type: z.
|
|
142
|
+
type: z.ZodEnum<["100", "200", "210", "300", "305", "320", "325", "330", "340", "400", "410", "420", "430", "500", "600", "700", "710"]>;
|
|
141
143
|
date: z.ZodString;
|
|
142
144
|
amount: z.ZodNumber;
|
|
143
145
|
description: z.ZodOptional<z.ZodString>;
|
|
144
146
|
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
type:
|
|
147
|
+
type: "100" | "200" | "210" | "300" | "305" | "320" | "325" | "330" | "340" | "400" | "410" | "420" | "430" | "500" | "600" | "700" | "710";
|
|
146
148
|
date: string;
|
|
147
149
|
id: string;
|
|
148
150
|
amount: number;
|
|
149
151
|
description?: string | undefined;
|
|
150
152
|
}, {
|
|
151
|
-
type:
|
|
153
|
+
type: "100" | "200" | "210" | "300" | "305" | "320" | "325" | "330" | "340" | "400" | "410" | "420" | "430" | "500" | "600" | "700" | "710";
|
|
152
154
|
date: string;
|
|
153
155
|
id: string;
|
|
154
156
|
amount: number;
|
|
@@ -179,13 +181,13 @@ export declare const ReportInputSchema: z.ZodObject<{
|
|
|
179
181
|
type: z.ZodString;
|
|
180
182
|
balance: z.ZodNumber;
|
|
181
183
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
name: string;
|
|
183
184
|
type: string;
|
|
185
|
+
name: string;
|
|
184
186
|
id: string;
|
|
185
187
|
balance: number;
|
|
186
188
|
}, {
|
|
187
|
-
name: string;
|
|
188
189
|
type: string;
|
|
190
|
+
name: string;
|
|
189
191
|
id: string;
|
|
190
192
|
balance: number;
|
|
191
193
|
}>, "many">;
|
|
@@ -216,7 +218,7 @@ export declare const ReportInputSchema: z.ZodObject<{
|
|
|
216
218
|
};
|
|
217
219
|
};
|
|
218
220
|
documents: {
|
|
219
|
-
type:
|
|
221
|
+
type: "100" | "200" | "210" | "300" | "305" | "320" | "325" | "330" | "340" | "400" | "410" | "420" | "430" | "500" | "600" | "700" | "710";
|
|
220
222
|
date: string;
|
|
221
223
|
id: string;
|
|
222
224
|
amount: number;
|
|
@@ -230,8 +232,8 @@ export declare const ReportInputSchema: z.ZodObject<{
|
|
|
230
232
|
description?: string | undefined;
|
|
231
233
|
}[];
|
|
232
234
|
accounts: {
|
|
233
|
-
name: string;
|
|
234
235
|
type: string;
|
|
236
|
+
name: string;
|
|
235
237
|
id: string;
|
|
236
238
|
balance: number;
|
|
237
239
|
}[];
|
|
@@ -252,7 +254,7 @@ export declare const ReportInputSchema: z.ZodObject<{
|
|
|
252
254
|
};
|
|
253
255
|
};
|
|
254
256
|
documents: {
|
|
255
|
-
type:
|
|
257
|
+
type: "100" | "200" | "210" | "300" | "305" | "320" | "325" | "330" | "340" | "400" | "410" | "420" | "430" | "500" | "600" | "700" | "710";
|
|
256
258
|
date: string;
|
|
257
259
|
id: string;
|
|
258
260
|
amount: number;
|
|
@@ -266,8 +268,8 @@ export declare const ReportInputSchema: z.ZodObject<{
|
|
|
266
268
|
description?: string | undefined;
|
|
267
269
|
}[];
|
|
268
270
|
accounts: {
|
|
269
|
-
name: string;
|
|
270
271
|
type: string;
|
|
272
|
+
name: string;
|
|
271
273
|
id: string;
|
|
272
274
|
balance: number;
|
|
273
275
|
}[];
|
|
@@ -352,6 +354,7 @@ export declare const ReportOutputSchema: z.ZodObject<{
|
|
|
352
354
|
}[] | undefined;
|
|
353
355
|
};
|
|
354
356
|
}>;
|
|
357
|
+
export type DocumentType = z.infer<typeof DocumentTypeEnum>;
|
|
355
358
|
export type BusinessMetadata = z.infer<typeof BusinessMetadataSchema>;
|
|
356
359
|
export type Document = z.infer<typeof DocumentSchema>;
|
|
357
360
|
export type JournalEntry = z.infer<typeof JournalEntrySchema>;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Helper Utilities for SHAAM Uniform Format Generator
|
|
3
|
+
* Provides utilities for creating and managing File objects
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Creates a File object with the given text content and filename
|
|
7
|
+
* This is a utility function to standardize File creation across the package
|
|
8
|
+
*
|
|
9
|
+
* @param text - The text content for the file
|
|
10
|
+
* @param name - The filename (should include extension)
|
|
11
|
+
* @param options - Optional File constructor options
|
|
12
|
+
* @returns A File object containing the text content
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const iniFile = createFile(iniText, 'report.INI.TXT');
|
|
17
|
+
* const dataFile = createFile(dataText, 'report.BKMVDATA.TXT');
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function createFile(text: string, name: string, options?: FilePropertyBag): File;
|
|
21
|
+
/**
|
|
22
|
+
* Creates an INI.TXT File object with standardized naming
|
|
23
|
+
*
|
|
24
|
+
* @param iniText - The INI text content
|
|
25
|
+
* @param baseFileName - Base filename (without extension)
|
|
26
|
+
* @returns A File object for the INI file
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const iniFile = createIniFile(iniText, 'my-report');
|
|
31
|
+
* // Creates file named: my-report.INI.TXT
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function createIniFile(iniText: string, baseFileName?: string): File;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a BKMVDATA.TXT File object with standardized naming
|
|
37
|
+
*
|
|
38
|
+
* @param dataText - The data text content
|
|
39
|
+
* @param baseFileName - Base filename (without extension)
|
|
40
|
+
* @returns A File object for the data file
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```typescript
|
|
44
|
+
* const dataFile = createDataFile(dataText, 'my-report');
|
|
45
|
+
* // Creates file named: my-report.BKMVDATA.TXT
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function createDataFile(dataText: string, baseFileName?: string): File;
|
|
49
|
+
/**
|
|
50
|
+
* Creates both INI and Data File objects from the report output
|
|
51
|
+
*
|
|
52
|
+
* @param iniText - The INI text content
|
|
53
|
+
* @param dataText - The data text content
|
|
54
|
+
* @param baseFileName - Base filename (without extension)
|
|
55
|
+
* @returns An object containing both File objects
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const { iniFile, dataFile } = createShaamFiles(iniText, dataText, 'my-report');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare function createShaamFiles(iniText: string, dataText: string, baseFileName?: string): {
|
|
63
|
+
iniFile: File;
|
|
64
|
+
dataFile: File;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Validates that a File object appears to be a valid SHAAM format file
|
|
68
|
+
*
|
|
69
|
+
* @param file - The File object to validate
|
|
70
|
+
* @param expectedType - Expected file type ('ini' | 'data')
|
|
71
|
+
* @returns True if the file appears valid
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```typescript
|
|
75
|
+
* const isValidIni = validateShaamFile(iniFile, 'ini');
|
|
76
|
+
* const isValidData = validateShaamFile(dataFile, 'data');
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
export declare function validateShaamFile(file: File, expectedType: 'ini' | 'data'): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Reads text content from a File object
|
|
82
|
+
* This is an async utility for reading File objects back to text
|
|
83
|
+
*
|
|
84
|
+
* @param file - The File object to read
|
|
85
|
+
* @returns Promise that resolves to the text content
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* const text = await readFileAsText(file);
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare function readFileAsText(file: File): Promise<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Gets file information from a File object
|
|
95
|
+
*
|
|
96
|
+
* @param file - The File object to inspect
|
|
97
|
+
* @returns File information object
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* const info = getFileInfo(iniFile);
|
|
102
|
+
* console.log(`File: ${info.name}, Size: ${info.size} bytes`);
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
export declare function getFileInfo(file: File): {
|
|
106
|
+
name: string;
|
|
107
|
+
size: number;
|
|
108
|
+
type: string;
|
|
109
|
+
lastModified: number;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* File naming utilities for SHAAM format files
|
|
113
|
+
*/
|
|
114
|
+
export declare const FileNaming: {
|
|
115
|
+
/**
|
|
116
|
+
* Generates a standardized INI filename
|
|
117
|
+
*/
|
|
118
|
+
readonly iniFileName: (base?: string) => string;
|
|
119
|
+
/**
|
|
120
|
+
* Generates a standardized data filename
|
|
121
|
+
*/
|
|
122
|
+
readonly dataFileName: (base?: string) => string;
|
|
123
|
+
/**
|
|
124
|
+
* Extracts base filename from a SHAAM file
|
|
125
|
+
*/
|
|
126
|
+
readonly extractBaseName: (fileName: string) => string;
|
|
127
|
+
/**
|
|
128
|
+
* Validates filename follows SHAAM conventions
|
|
129
|
+
*/
|
|
130
|
+
readonly isValidShaamFileName: (fileName: string) => boolean;
|
|
131
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Helper Utilities for SHAAM Uniform Format Generator
|
|
3
|
+
* Provides utilities for creating and managing File objects
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Creates a File object with the given text content and filename
|
|
7
|
+
* This is a utility function to standardize File creation across the package
|
|
8
|
+
*
|
|
9
|
+
* @param text - The text content for the file
|
|
10
|
+
* @param name - The filename (should include extension)
|
|
11
|
+
* @param options - Optional File constructor options
|
|
12
|
+
* @returns A File object containing the text content
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const iniFile = createFile(iniText, 'report.INI.TXT');
|
|
17
|
+
* const dataFile = createFile(dataText, 'report.BKMVDATA.TXT');
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function createFile(text: string, name: string, options?: FilePropertyBag): File;
|
|
21
|
+
/**
|
|
22
|
+
* Creates an INI.TXT File object with standardized naming
|
|
23
|
+
*
|
|
24
|
+
* @param iniText - The INI text content
|
|
25
|
+
* @param baseFileName - Base filename (without extension)
|
|
26
|
+
* @returns A File object for the INI file
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const iniFile = createIniFile(iniText, 'my-report');
|
|
31
|
+
* // Creates file named: my-report.INI.TXT
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function createIniFile(iniText: string, baseFileName?: string): File;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a BKMVDATA.TXT File object with standardized naming
|
|
37
|
+
*
|
|
38
|
+
* @param dataText - The data text content
|
|
39
|
+
* @param baseFileName - Base filename (without extension)
|
|
40
|
+
* @returns A File object for the data file
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```typescript
|
|
44
|
+
* const dataFile = createDataFile(dataText, 'my-report');
|
|
45
|
+
* // Creates file named: my-report.BKMVDATA.TXT
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function createDataFile(dataText: string, baseFileName?: string): File;
|
|
49
|
+
/**
|
|
50
|
+
* Creates both INI and Data File objects from the report output
|
|
51
|
+
*
|
|
52
|
+
* @param iniText - The INI text content
|
|
53
|
+
* @param dataText - The data text content
|
|
54
|
+
* @param baseFileName - Base filename (without extension)
|
|
55
|
+
* @returns An object containing both File objects
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const { iniFile, dataFile } = createShaamFiles(iniText, dataText, 'my-report');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare function createShaamFiles(iniText: string, dataText: string, baseFileName?: string): {
|
|
63
|
+
iniFile: File;
|
|
64
|
+
dataFile: File;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Validates that a File object appears to be a valid SHAAM format file
|
|
68
|
+
*
|
|
69
|
+
* @param file - The File object to validate
|
|
70
|
+
* @param expectedType - Expected file type ('ini' | 'data')
|
|
71
|
+
* @returns True if the file appears valid
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```typescript
|
|
75
|
+
* const isValidIni = validateShaamFile(iniFile, 'ini');
|
|
76
|
+
* const isValidData = validateShaamFile(dataFile, 'data');
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
export declare function validateShaamFile(file: File, expectedType: 'ini' | 'data'): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Reads text content from a File object
|
|
82
|
+
* This is an async utility for reading File objects back to text
|
|
83
|
+
*
|
|
84
|
+
* @param file - The File object to read
|
|
85
|
+
* @returns Promise that resolves to the text content
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* const text = await readFileAsText(file);
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare function readFileAsText(file: File): Promise<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Gets file information from a File object
|
|
95
|
+
*
|
|
96
|
+
* @param file - The File object to inspect
|
|
97
|
+
* @returns File information object
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* const info = getFileInfo(iniFile);
|
|
102
|
+
* console.log(`File: ${info.name}, Size: ${info.size} bytes`);
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
export declare function getFileInfo(file: File): {
|
|
106
|
+
name: string;
|
|
107
|
+
size: number;
|
|
108
|
+
type: string;
|
|
109
|
+
lastModified: number;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* File naming utilities for SHAAM format files
|
|
113
|
+
*/
|
|
114
|
+
export declare const FileNaming: {
|
|
115
|
+
/**
|
|
116
|
+
* Generates a standardized INI filename
|
|
117
|
+
*/
|
|
118
|
+
readonly iniFileName: (base?: string) => string;
|
|
119
|
+
/**
|
|
120
|
+
* Generates a standardized data filename
|
|
121
|
+
*/
|
|
122
|
+
readonly dataFileName: (base?: string) => string;
|
|
123
|
+
/**
|
|
124
|
+
* Extracts base filename from a SHAAM file
|
|
125
|
+
*/
|
|
126
|
+
readonly extractBaseName: (fileName: string) => string;
|
|
127
|
+
/**
|
|
128
|
+
* Validates filename follows SHAAM conventions
|
|
129
|
+
*/
|
|
130
|
+
readonly isValidShaamFileName: (fileName: string) => boolean;
|
|
131
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key generator utility for generating unique identifiers
|
|
3
|
+
* Used for fields 1004, 1103, and 1153 which require randomly generated unique IDs
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Generates a random numeric string of specified length
|
|
7
|
+
* @param length - The length of the numeric string to generate (max 15 digits)
|
|
8
|
+
* @returns A random numeric string padded with leading zeros if necessary
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateRandomKey(length?: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a primary identifier for fields 1004, 1103, and 1153
|
|
13
|
+
* These fields must have the same value across all records in a single file
|
|
14
|
+
* @returns A 15-digit numeric string
|
|
15
|
+
*/
|
|
16
|
+
export declare function generatePrimaryIdentifier(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Key generator context to maintain consistent IDs across records
|
|
19
|
+
* This ensures that fields 1004, 1103, and 1153 use the same value within a single file
|
|
20
|
+
*/
|
|
21
|
+
export declare class KeyGeneratorContext {
|
|
22
|
+
private _primaryIdentifier;
|
|
23
|
+
/**
|
|
24
|
+
* Gets or generates the primary identifier for this context
|
|
25
|
+
* Ensures the same ID is used across all records that require it
|
|
26
|
+
*/
|
|
27
|
+
getPrimaryIdentifier(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Resets the context, generating new IDs for the next file
|
|
30
|
+
*/
|
|
31
|
+
reset(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Sets a specific primary identifier (useful for testing or when you have a specific ID requirement)
|
|
34
|
+
*/
|
|
35
|
+
setPrimaryIdentifier(id: string): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Default key generator context instance
|
|
39
|
+
* Use this for most cases to ensure consistency across records
|
|
40
|
+
*/
|
|
41
|
+
export declare const defaultKeyGenerator: KeyGeneratorContext;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key generator utility for generating unique identifiers
|
|
3
|
+
* Used for fields 1004, 1103, and 1153 which require randomly generated unique IDs
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Generates a random numeric string of specified length
|
|
7
|
+
* @param length - The length of the numeric string to generate (max 15 digits)
|
|
8
|
+
* @returns A random numeric string padded with leading zeros if necessary
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateRandomKey(length?: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Generates a primary identifier for fields 1004, 1103, and 1153
|
|
13
|
+
* These fields must have the same value across all records in a single file
|
|
14
|
+
* @returns A 15-digit numeric string
|
|
15
|
+
*/
|
|
16
|
+
export declare function generatePrimaryIdentifier(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Key generator context to maintain consistent IDs across records
|
|
19
|
+
* This ensures that fields 1004, 1103, and 1153 use the same value within a single file
|
|
20
|
+
*/
|
|
21
|
+
export declare class KeyGeneratorContext {
|
|
22
|
+
private _primaryIdentifier;
|
|
23
|
+
/**
|
|
24
|
+
* Gets or generates the primary identifier for this context
|
|
25
|
+
* Ensures the same ID is used across all records that require it
|
|
26
|
+
*/
|
|
27
|
+
getPrimaryIdentifier(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Resets the context, generating new IDs for the next file
|
|
30
|
+
*/
|
|
31
|
+
reset(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Sets a specific primary identifier (useful for testing or when you have a specific ID requirement)
|
|
34
|
+
*/
|
|
35
|
+
setPrimaryIdentifier(id: string): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Default key generator context instance
|
|
39
|
+
* Use this for most cases to ensure consistency across records
|
|
40
|
+
*/
|
|
41
|
+
export declare const defaultKeyGenerator: KeyGeneratorContext;
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Field Number,Field Name,Field Type,Description,Length,Technical Description,Requirement,Notes
|
|
2
|
+
1050,קוד רשומה,Alphanumeric,Record Code,4,X(4),Required,"Depends on the record type being summarized"
|
|
3
|
+
1051,סך רשומות,Numeric,Record Count,15,9(15),Required,"Total number of records of the given type in BKMVDATA.TXT"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Field Number,Field Name,Field Type,Description,Length,Technical Description,Requirement,Notes
|
|
2
|
+
1000,קוד רשומה,Alphanumeric,Record Code,4,X(4),Required,A000
|
|
3
|
+
1001,לשימוש עתידי,Alphanumeric,Reserved for Future Use,5,X(5),Required,
|
|
4
|
+
1002,סך רשומות בקובץ BKMVDATA,Numeric,Total Records in BKMVDATA,15,9(15),Required,"Must match field 1155 in Z900"
|
|
5
|
+
1003,מספר עוסק מורשה,Numeric,Tax ID,9,9(9),Required,
|
|
6
|
+
1004,מזהה ראשי,Numeric,Primary Identifier,15,9(15),Required,"Fixed and unique per file, see Note 2"
|
|
7
|
+
1005,קבוע מערכת,Alphanumeric,System Constant,8,X(8),Required,"Value: &OF1.31&"
|
|
8
|
+
1006,מספר רישום התוכנה,Numeric,Software Registration Number,8,9(8),Required,
|
|
9
|
+
1007,שם התוכנה,Alphanumeric,Software Name,20,X(20),Required,
|
|
10
|
+
1008,מהדורת התוכנה,Alphanumeric,Software Version,20,X(20),Required,
|
|
11
|
+
1009,מספר ע"מ של יצרן התוכנה,Numeric,Vendor Tax ID,9,9(9),Required,
|
|
12
|
+
1010,שם יצרן התוכנה,Alphanumeric,Vendor Name,20,X(20),Required,
|
|
13
|
+
1011,סוג התוכנה,Numeric,Software Type,1,9(1),Required,"1 = Single-year, 2 = Multi-year"
|
|
14
|
+
1012,נתיב מיקום שמירת הקבצים,Alphanumeric,File Output Path,50,X(50),Required,
|
|
15
|
+
1013,סוג הנה"ח של התוכנה,Numeric,Accounting Type,1,9(1),Required,"0 = N/A, 1 = Single-entry, 2 = Double-entry"
|
|
16
|
+
1014,איזון חשבונאי נדרש,Numeric,Balance Required Flag,1,9(1),Required,"Conditional; required in double-entry"
|
|
17
|
+
1015,מספר חברה ברשם החברות,Numeric,Company Registrar ID,9,9(9),Optional,
|
|
18
|
+
1016,מספר תיק ניכויים,Numeric,Withholding File Number,9,9(9),Optional,
|
|
19
|
+
1017,שטח נתונים עתידי,Alphanumeric,Reserved Field,10,X(10),Optional,
|
|
20
|
+
1018,שם העסק,Alphanumeric,Business Name,50,X(50),Required,
|
|
21
|
+
1019,מען העסק - רחוב,Alphanumeric,Business Address - Street,50,X(50),Optional,
|
|
22
|
+
1020,מען העסק - מס בית,Alphanumeric,Business Address - House Number,10,X(10),Optional,
|
|
23
|
+
1021,מען העסק - עיר,Alphanumeric,Business Address - City,30,X(30),Optional,
|
|
24
|
+
1022,מען העסק - מיקוד,Alphanumeric,Business Address - ZIP,8,X(8),Optional,
|
|
25
|
+
1023,שנת המס,Numeric,Tax Year,4,9(4),Conditional,"Required if software type is single-year"
|
|
26
|
+
1024,טווח תאריך התחלה/חיתוך,Numeric,Start/Cutoff Date,8,9(8),Conditional,"Required if software type is multi-year (YYYYMMDD)"
|
|
27
|
+
1025,טווח תאריך סיום/חיתוך,Numeric,End/Cutoff Date,8,9(8),Conditional,"Required if software type is multi-year (YYYYMMDD)"
|
|
28
|
+
1026,תאריך תחילת התהליך,Numeric,Process Start Date,8,9(8),Required,"Format: YYYYMMDD"
|
|
29
|
+
1027,שעת תחילת התהליך,Numeric,Process Start Time,4,9(4),Required,"Format: HHMM"
|
|
30
|
+
1028,קוד שפה,Numeric,Language Code,1,9(1),Required,"0 = Hebrew, 1 = Arabic, 2 = Other"
|
|
31
|
+
1029,סט תווים,Numeric,Character Encoding,1,9(1),Required,"1 = ISO-8859-8-i, 2 = CP-862"
|
|
32
|
+
1030,שם תוכנת הכיווץ,Alphanumeric,Compression Software Name,20,X(20),Optional,
|
|
33
|
+
1031,שטח נתונים עתידי,Alphanumeric,Reserved Field,0,X(0),Deprecated,
|
|
34
|
+
1032,מטבע מוביל,Alphanumeric,Base Currency Code,3,X(3),Optional,"Default: ILS"
|
|
35
|
+
1033,שטח נתונים עתידי,Alphanumeric,Reserved Field,0,X(0),Deprecated,
|
|
36
|
+
1034,מידע על סניפים/ענפים,Numeric,Branch Info Flag,1,9(1),Required,"0 = No branches; 1 = Has branches; see Note 3"
|
|
37
|
+
1035,שטח נתונים עתידי,Alphanumeric,Reserved Field,46,X(46),Optional,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Field Number,Field Name,Field Type,Description,Length,Technical Description,Requirement,Notes
|
|
2
|
+
1100,קוד רשומה,Alphanumeric,Record Code,4,X(4),Required,A100
|
|
3
|
+
1101,מס רשומה בקובץ,Numeric,Record Number in File,9,9(9),Required,"Sequential number in BKMVDATA file"
|
|
4
|
+
1102,מס עוסק מורשה,Numeric,Tax ID,9,9(9),Required,
|
|
5
|
+
1103,מזהה ראשי,Numeric,Primary Identifier,15,9(15),Required,"Fixed and unique; see Note 2"
|
|
6
|
+
1104,קבוע מערכת,Alphanumeric,System Constant,8,X(8),Required,"Value: &OF1.31&"
|
|
7
|
+
1105,שטח לנתונים עתידיים,Alphanumeric,Reserved Field,50,X(50),Optional,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Field Number,Field Name,Field Type,Description,Length,Technical Description,Requirement,Notes
|
|
2
|
+
1350,קוד רשומה,Alphanumeric,Record Code,4,X(4),Required,B100
|
|
3
|
+
1351,מס רשומה בקובץ,Numeric,Record Number in File,9,9(9),Required,
|
|
4
|
+
1352,מס עוסק מורשה,Numeric,Tax ID,9,9(9),Required,
|
|
5
|
+
1353,מספר תנועה,Numeric,Transaction Number,10,9(10),Required,"See Note 7"
|
|
6
|
+
1354,מספר שורה בתנועה,Numeric,Transaction Line Number,5,9(5),Required,
|
|
7
|
+
1355,מנה,Numeric,Batch Number,8,9(8),Optional,
|
|
8
|
+
1356,סוג תנועה,Alphanumeric,Transaction Type,15,X(15),Optional,
|
|
9
|
+
1357,אסמכתא,Alphanumeric,Reference Document,20,X(20),Optional,
|
|
10
|
+
1358,סוג מסמך האסמכתא,Numeric,Reference Document Type,3,9(3),Optional,"See Appendix 1"
|
|
11
|
+
1359,אסמכתא 2,Alphanumeric,Reference Document 2,20,X(20),Optional,
|
|
12
|
+
1360,סוג מסמך האסמכתא 2,Numeric,Reference Document Type 2,3,9(3),Optional,"See Appendix 1"
|
|
13
|
+
1361,פרטים,Alphanumeric,Details,50,X(50),Optional,
|
|
14
|
+
1362,תאריך,Numeric,Date,8,9(8),Required,"Format: YYYYMMDD, see Note 12"
|
|
15
|
+
1363,תאריך ערך,Numeric,Value Date,8,9(8),Required,"Format: YYYYMMDD, see Note 12"
|
|
16
|
+
1364,חשבון בתנועה,Alphanumeric,Account Key,15,X(15),Required,"Must match B110"
|
|
17
|
+
1365,חשבון נגדי,Alphanumeric,Counter Account Key,15,X(15),Optional,"Required in single-entry bookkeeping"
|
|
18
|
+
1366,סימן פעולה,Numeric,Debit/Credit Indicator,1,9(1),Required,"1 = Debit, 2 = Credit"
|
|
19
|
+
1367,קוד מטבע,Alphanumeric,Currency Code,3,X(3),Optional,"Refers to field 1369; see Appendix 2"
|
|
20
|
+
1368,סכום הפעולה,Alphanumeric,Transaction Amount (Local Currency),15,X9(12)V99,Required,
|
|
21
|
+
1369,סכום במט"ח,Alphanumeric,Transaction Amount (Foreign Currency),15,X9(12)V99,Optional,
|
|
22
|
+
1370,שדה כמות,Alphanumeric,Quantity Field,12,X9(9)V99,Optional,"E.g. quantity or cost code"
|
|
23
|
+
1371,שדה התאמה 1,Alphanumeric,Matching Field 1,10,X(10),Optional,"Used for internal row reconciliation"
|
|
24
|
+
1372,שדה התאמה 2,Alphanumeric,Matching Field 2,10,X(10),Optional,"Used for inter-card or external reconciliation"
|
|
25
|
+
1373,שטח לנתונים עתידיים,Alphanumeric,Reserved Field,0,X(0),Deprecated,
|
|
26
|
+
1374,מזהה סניף/ענף,Alphanumeric,Branch ID,7,X(7),Conditional,"If field 1034 = 1; see Note 3"
|
|
27
|
+
1375,תאריך הזנה,Numeric,Entry Date,8,9(8),Required,"Format: YYYYMMDD, see Note 12"
|
|
28
|
+
1376,מבצע פעולה,Alphanumeric,Operator Username,9,X(9),Optional,
|
|
29
|
+
1377,שטח לנתונים עתידיים,Alphanumeric,Reserved Field,25,X(25),Optional,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Field Number,Field Name,Field Type,Description,Length,Technical Description,Requirement,Notes
|
|
2
|
+
1400,קוד רשומה,Alphanumeric,Record Code,4,X(4),Required,B110
|
|
3
|
+
1401,מס רשומה בקובץ,Numeric,Record Number in File,9,9(9),Required,
|
|
4
|
+
1402,מס עוסק מורשה,Numeric,Tax ID,9,9(9),Required,
|
|
5
|
+
1403,מפתח החשבון,Alphanumeric,Account Key,15,X(15),Required,"Must be unique"
|
|
6
|
+
1404,שם החשבון,Alphanumeric,Account Name,50,X(50),Required,
|
|
7
|
+
1405,קוד מאזן בוחן,Alphanumeric,Trial Balance Code,15,X(15),Required,
|
|
8
|
+
1406,תיאור קוד מאזן בוחן,Alphanumeric,Trial Balance Code Description,30,X(30),Required,
|
|
9
|
+
1407,מען לקוח/ספק - רחוב,Alphanumeric,Customer/Supplier Address - Street,50,X(50),Optional,"Only for customer/supplier accounts"
|
|
10
|
+
1408,מען לקוח/ספק - מס' בית,Alphanumeric,Customer/Supplier Address - House Number,10,X(10),Optional,"Only for customer/supplier accounts"
|
|
11
|
+
1409,מען לקוח/ספק - עיר,Alphanumeric,Customer/Supplier Address - City,30,X(30),Optional,"Only for customer/supplier accounts"
|
|
12
|
+
1410,מען לקוח/ספק - מיקוד,Alphanumeric,Customer/Supplier Address - ZIP,8,X(8),Optional,"Only for customer/supplier accounts"
|
|
13
|
+
1411,מען לקוח/ספק - מדינה,Alphanumeric,Customer/Supplier Address - Country,30,X(30),Optional,"Only for customer/supplier accounts"
|
|
14
|
+
1412,קוד מדינה,Alphanumeric,Country Code,2,X(2),Optional,"Only for customer/supplier accounts, see Appendix 3"
|
|
15
|
+
1413,חשבון מרכז,Alphanumeric,Parent Account Key,15,X(15),Optional,
|
|
16
|
+
1414,יתרת החשבון בתחילת החתך,Alphanumeric,Account Opening Balance,15,X9(12)V99,Optional,"Positive = debit, Negative = credit"
|
|
17
|
+
1415,סה"כ חובה,Alphanumeric,Total Debits,15,X9(12)V99,Optional,"Excludes opening balance"
|
|
18
|
+
1416,סה"כ זכות,Alphanumeric,Total Credits,15,X9(12)V99,Optional,"Excludes opening balance"
|
|
19
|
+
1417,קוד בסיווג החשבונאי,Numeric,Accounting Classification Code,4,9(4),Conditional,"Mandatory if 6111 report required"
|
|
20
|
+
1418,שטח לנתונים עתידיים,Alphanumeric,Reserved Field,0,X(0),Deprecated,
|
|
21
|
+
1419,מספר עוסק של ספק/לקוח,Numeric,Supplier/Customer Tax ID,9,9(9),Conditional,"Required if double-entry bookkeeping (code 2 in field 1013)"
|
|
22
|
+
1420,שטח לנתונים עתידיים,Alphanumeric,Reserved Field,0,X(0),Deprecated,
|
|
23
|
+
1421,מזהה סניף/ענף,Alphanumeric,Branch ID,7,X(7),Conditional,"Required if field 1034 = 1, see Note 3"
|
|
24
|
+
1422,יתרת חשבון בתחילת חתך במט"ח,Alphanumeric,Opening Balance in Foreign Currency,15,X9(12)V99,Optional,
|
|
25
|
+
1423,קוד מטבע יתרת פתיחה במט"ח,Alphanumeric,Foreign Currency Code,3,X(3),Optional,"Refers to field 1422, see Appendix 2"
|
|
26
|
+
1424,שטח לנתונים עתידיים,Alphanumeric,Reserved Field,16,X(16),Optional,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Field Number,Field Name,Field Type,Description,Length,Technical Description,Requirement,Notes
|
|
2
|
+
1200,קוד רשומה,Alphanumeric,Record Code,4,X(4),Required,C100
|
|
3
|
+
1201,מס רשומה בקובץ,Numeric,Record Number in File,9,9(9),Required,
|
|
4
|
+
1202,מס עוסק מורשה,Numeric,VAT ID,9,9(9),Required,
|
|
5
|
+
1203,סוג המסמך,Numeric,Document Type,3,9(3),Required,"See Appendix 1"
|
|
6
|
+
1204,מספר המסמך,Alphanumeric,Document Number,20,X(20),Required,
|
|
7
|
+
1205,תאריך הוצאת המסמך,Numeric,Document Issue Date,8,9(8),Required,"Format YYYYMMDD"
|
|
8
|
+
1206,שעת הוצאת המסמך,Numeric,Document Issue Time,4,9(4),Optional,"Format HHMM (24h)"
|
|
9
|
+
1207,שם לקוח/ספק,Alphanumeric,Customer/Supplier Name,50,X(50),Optional,
|
|
10
|
+
1208,רחוב לקוח/ספק,Alphanumeric,Customer/Supplier Street,50,X(50),Optional,
|
|
11
|
+
1209,מספר בית לקוח/ספק,Alphanumeric,Customer/Supplier House Number,10,X(10),Optional,
|
|
12
|
+
1210,עיר לקוח/ספק,Alphanumeric,Customer/Supplier City,30,X(30),Optional,
|
|
13
|
+
1211,מיקוד לקוח/ספק,Alphanumeric,Customer/Supplier Post Code,8,X(8),Optional,
|
|
14
|
+
1212,מדינה לקוח/ספק,Alphanumeric,Customer/Supplier Country,30,X(30),Optional,
|
|
15
|
+
1213,קוד מדינה לקוח/ספק,Alphanumeric,Customer/Supplier Country Code,2,X(2),Optional,
|
|
16
|
+
1214,טלפון לקוח/ספק,Alphanumeric,Customer/Supplier Phone,15,X(15),Optional,
|
|
17
|
+
1215,מס עוסק לקוח/ספק,Numeric,Customer/Supplier VAT ID,9,9(9),Optional,
|
|
18
|
+
1216,תאריך ערך המסמך,Numeric,Document Value Date,8,9(8),Optional,"Format YYYYMMDD"
|
|
19
|
+
1217,סכום סופי במטבע זר,Alphanumeric,Foreign Currency Final Amount,15,X9(12)V99,Optional,
|
|
20
|
+
1218,קוד מטבע,Alphanumeric,Currency Code,3,X(3),Optional,
|
|
21
|
+
1219,סכום המסמך לפני הנחה,Alphanumeric,Amount Before Discount,15,X9(12)V99,Optional,
|
|
22
|
+
1220,הנחת המסמך,Alphanumeric,Document Discount,15,X9(12)V99,Optional,
|
|
23
|
+
1221,סכום המסמך אחרי הנחה ללא מעמ,Alphanumeric,Amount After Discount Excluding VAT,15,X9(12)V99,Optional,
|
|
24
|
+
1222,סכום מעמ,Alphanumeric,VAT Amount,15,X9(12)V99,Optional,
|
|
25
|
+
1223,סכום המסמך כולל מעמ,Alphanumeric,Amount Including VAT,15,X9(12)V99,Optional,
|
|
26
|
+
1224,סכום מס במקור,Alphanumeric,Withholding Tax Amount,12,X9(9)V99,Optional,
|
|
27
|
+
1225,מפתח לקוח אצל מוכר או מפתח ספק אצל קונה,Alphanumeric,Customer Key at Seller or Provider Key at Buyer,15,X(15),Optional,
|
|
28
|
+
1226,שדה התאמה,Alphanumeric,Matching Field,10,X(10),Optional,
|
|
29
|
+
1227,תכונה מבוטלת,Alphanumeric,Cancelled Attribute,8,X(8),Deprecated,
|
|
30
|
+
1228,מסמך מבוטל,Alphanumeric,Cancelled Document,1,X(1),Optional,
|
|
31
|
+
1229,תכונה מבוטלת,Alphanumeric,Cancelled Attribute,8,X(8),Deprecated,
|
|
32
|
+
1230,תאריך המסמך,Numeric,Document Date,7,9(7),Optional,
|
|
33
|
+
1231,מזהה סניף/ענף,Alphanumeric,Branch ID,8,X(8),Optional,
|
|
34
|
+
1232,תכונה מבוטלת,Alphanumeric,Cancelled Attribute,1,X(1),Deprecated,
|
|
35
|
+
1233,מבצע הפעולה,Alphanumeric,Action Executor,13,X(13),Optional,
|
|
36
|
+
1234,שדה מקשר לשורה,Alphanumeric,Line Connecting Field,0,X(0),Optional,"Unused in C100"
|
|
37
|
+
1235,שטח שמור,Alphanumeric,Reserved Field,0,X(0),Optional,"Unused in C100"
|