-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex2.ts
71 lines (60 loc) · 1.67 KB
/
index2.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import * as JPKNS from './xmlns/http/jpk.mf.gov.pl/wzor/2016/03/09/03095';
import { document, JPKType, TKodFormularza, TNaglowek } from "./xmlns/http/jpk.mf.gov.pl/wzor/2016/03/09/03095";
import { TNaglowekKodFormularzaType } from "./xmlns/http/jpk.mf.gov.pl/wzor/2016/03/09/03095";
// const dok: document;
// dok.JPK.Faktura[0].
const doc: document = {
JPK: {
Naglowek: {
CelZlozenia: 1,
DataDo: new Date(),
DataOd: new Date(),
DataWytworzeniaJPK: new Date(),
DomyslnyKodWaluty: 'PLN',
KodFormularza: {
kodSystemowy: '0',
wersjaSchemy: '1'
},
KodUrzedu: '0202',
WariantFormularza: 1,
_exists: true,
_namespace: '',
// constructor: () => doc
},
Faktura: [{_exists: true}],
FakturaCtrl: [{_exists: true}],
FakturaWiersz: [{_exists: true}],
FakturaWierszCtrl: [{_exists: true}],
Podmiot1: {_exists: true},
StawkiPodatku: {_exists: true},
_namespace: '',
_exists: true
},
_exists: true,
_namespace: true
};
// class KodFormularza implements TNaglowekKodFormularzaType {
// content: "JPK_FA";
// kodSystemowy: '';
// wersjaSchemy: '';
// _exists: true;
// _namespace: '';
//
// }
// const kod = new KodFormularza();
//
// const Naglowek: TNaglowek = {
// DataDo: new Date(),
// DataOd: new Date(),
// CelZlozenia: 1,
// WariantFormularza: 1,
// DataWytworzeniaJPK: new Date(),
// DomyslnyKodWaluty: "PLN",
// KodFormularza
//
// }
// const JPK: JPKType = {
// Naglowek
// }
//
//