-
Notifications
You must be signed in to change notification settings - Fork 3
/
Norwegian_SAF-T_Cash_Register_Schema_v_1_00.cs
855 lines (774 loc) · 27.8 KB
/
Norwegian_SAF-T_Cash_Register_Schema_v_1_00.cs
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
/**
* XSD Command: xsd /c /n:Softcash.SAFT.Auditfile Norwegian_SAF-T_Cash_Register_Schema_v_1.00.xsd /o:out /f
* This file WAS auto-generated, but it has been modified (removal of duplicate classes etc.)
*/
namespace Softcash.SAFT.Auditfile
{
using System;
using System.Xml.Serialization;
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
[XmlRoot(Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO", IsNullable = false)]
public partial class auditfile
{
public Header header;
public Company company;
[XmlAttribute(DataType = "ID")]
public string Id;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Header
{
public string fiscalYear;
[XmlElement(DataType = "date")]
public DateTime startDate;
[XmlElement(DataType = "date")]
public DateTime endDate;
public Currencycode curCode;
[XmlIgnore()]
public DateTime dateTimeCreated;
[XmlElement(ElementName = "timeCreated")]
public string _timeCreated
{
get
{
return dateTimeCreated.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "dateCreated")]
public string _dateCreated
{
get
{
return dateTimeCreated.ToString("yyyy-MM-dd");
}
}
public string softwareDesc;
public string softwareVersion;
public string softwareCompanyName;
public string auditfileVersion;
public string headerComment;
public string userID;
public AuditfileSender auditfileSender;
}
[Serializable()]
[XmlType(Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public enum Currencycode { AED, AFA, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZM, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYR, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CSD, CUP, CVE, CYP, CZK, DJF, DKK, DOP, DZD, EEK, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHC, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LVL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MTL, MUR, MVR, MWK, MXN, MYR, MZM, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, ROL, RUR, RWF, SAR, SBD, SCR, SDD, SEK, SGD, SHP, SIT, SKK, SLL, SOS, SPL, SRD, STD, SVC, SYP, SZL, THB, TJS, TMM, TND, TOP, TRL, TTD, TVD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEB, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMK, ZWD, ZZZ }
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class AuditfileSender
{
public string companyIdent;
public string companyName;
public Countrycode taxRegistrationCountry;
[XmlIgnore()]
public bool taxRegistrationCountrySpecified;
public string taxRegIdent;
[XmlElement("streetAddress")]
public PostalAddress[] streetAddress;
[XmlElement("postalAddress")]
public PostalAddress[] postalAddress;
}
[Serializable()]
[XmlType(Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public enum Countrycode { AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CS, CU, CV, CW, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UK, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW, }
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class PostalAddress
{
public string streetname;
public string number;
public string additionalAddressDetail;
public string city;
public string postalCode;
public string region;
public Countrycode country;
[XmlIgnore()]
public bool countrySpecified;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Company
{
public string companyIdent;
public string companyName;
public Countrycode taxRegistrationCountry;
[XmlIgnore()]
public bool taxRegistrationCountrySpecified;
public string taxRegIdent;
[XmlElement("streetAddress")]
public PostalAddress[] streetAddress;
[XmlElement("postalAddress")]
public PostalAddress[] postalAddress;
[XmlArrayItem("customerSupplier", IsNullable = false)]
public CustomerSupplier[] customersSuppliers;
[XmlArrayItem("ledgerAccount", IsNullable = false)]
public LedgerAccount[] generalLedger;
[XmlArrayItem("vatCodeDetail", IsNullable = false)]
public VatCodeDetail[] vatCodeDetails;
[XmlArrayItem("period", IsNullable = false)]
public Period[] periods;
[XmlArrayItem("employee", IsNullable = false)]
public Employee[] employees;
[XmlArrayItem("article", IsNullable = false)]
public Article[] articles;
[XmlArrayItem("basic", IsNullable = false)]
public Basic[] basics;
[XmlElement("location")]
public Location[] location;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class CustomerSupplier
{
public string custSupID;
public string custSupName;
public Custsuptype custSupType;
public string contact;
public string telephone;
public string fax;
[XmlElement(DataType = "token")]
public string eMail;
[XmlElement(DataType = "token")]
public string website;
public Countrycode taxRegistrationCountry;
[XmlIgnore()]
public bool taxRegistrationCountrySpecified;
public string taxRegIdent;
[XmlElement("streetAddress")]
public PostalAddress[] streetAddress;
[XmlElement("postalAddress")]
public PostalAddress[] postalAddress;
}
[Serializable()]
[XmlType(Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public enum Custsuptype
{
Customer,
Supplier,
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class LedgerAccount
{
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class VatCodeDetail
{
public string vatCode;
[XmlElement(DataType = "date")]
public DateTime dateOfEntry;
public string vatDesc;
public string standardVatCode;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Period
{
[XmlElement(DataType = "nonNegativeInteger")]
public string periodNumber;
public string periodDesc;
[XmlIgnore()]
public DateTime startDateTimePeriod;
[XmlElement(ElementName = "startTimePeriod")]
public string startTimePeriod
{
get
{
return startDateTimePeriod.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "startDatePeriod")]
public string startDatePeriod
{
get
{
return startDateTimePeriod.ToString("yyyy-MM-dd");
}
}
[XmlIgnore()]
public DateTime endDateTimePeriod;
[XmlElement(ElementName = "endTimePeriod")]
public string endTimePeriod
{
get
{
return endDateTimePeriod.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "endDatePeriod")]
public string endDatePeriod
{
get
{
return endDateTimePeriod.ToString("yyyy-MM-dd");
}
}
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Employee
{
public string empID;
[XmlIgnore()]
public DateTime dateTimeOfEntry;
[XmlElement(ElementName = "timeOfEntry")]
public string timeOfEntry
{
get
{
return dateTimeOfEntry.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "dateOfEntry")]
public string dateOfEntry
{
get
{
return dateTimeOfEntry.ToString("yyyy-MM-dd");
}
}
public string firstName;
public string surName;
[XmlElement("employeeRole")]
public EmployeeRole[] employeeRole;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class EmployeeRole
{
public string roleType;
public string roleTypeDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Article
{
public string artID;
[XmlElement(DataType = "date")]
public DateTime dateOfEntry;
public string artGroupID;
public string artDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Basic
{
public string basicType;
public string basicID;
public string predefinedBasicID;
public string basicDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Location
{
public string name;
public PostalAddress streetAddress;
[XmlElement("cashregister")]
public Cashregister[] cashregister;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Cashregister
{
public string registerID;
public string regDesc;
[XmlElement("event")]
public CashregisterEvent[] @event;
[XmlElement("cashtransaction")]
public Cashtransaction[] cashtransaction;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class CashregisterEvent
{
public string eventID;
public string eventType;
public string transID;
public string empID;
[XmlIgnore()]
public DateTime eventDateTime;
[XmlElement(ElementName = "eventTime")]
public string eventTime
{
get
{
return eventDateTime.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "eventDate")]
public string eventDate
{
get
{
return eventDateTime.ToString("yyyy-MM-dd");
}
}
public string eventText;
public EventReport eventReport;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class EventReport
{
public string reportID;
public ReportType reportType;
public string companyIdent;
public string companyName;
[XmlIgnore()]
public DateTime reportDateTime;
[XmlElement(ElementName = "reportTime")]
public string reportTime
{
get
{
return reportDateTime.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "reportDate")]
public string reportDate
{
get
{
return reportDateTime.ToString("yyyy-MM-dd");
}
}
public string registerID;
public ReportTotalCashSales reportTotalCashSales;
[XmlArrayItem("reportArtGroup", IsNullable = false)]
public ReportArtGroup[] reportArtGroups;
[XmlArrayItem("reportEmpArtGroup", IsNullable = false)]
public ReportEmpArtGroup[] reportEmpArtGroups;
[XmlArrayItem("reportPayment", IsNullable = false)]
public ReportPayment[] reportPayments;
[XmlArrayItem("reportEmpPayment", IsNullable = false)]
public ReportEmpPayment[] reportEmpPayments;
public ReportTip reportTip;
[XmlArrayItem("reportCashSaleVat", IsNullable = false)]
public ReportCashSaleVat[] reportCashSalesVat;
public decimal reportOpeningChangeFloat;
[XmlArrayItem("reportEmpOpeningChangeFloat", IsNullable = false)]
public ReportEmpOpeningChangeFloat[] reportEmpOpeningChangeFloats;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportReceiptNum;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportOpenCashBoxNum;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportReceiptCopyNum;
public decimal reportReceiptCopyAmnt;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportReceiptProformaNum;
public decimal reportReceiptProformaAmnt;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportReturnNum;
public decimal reportReturnAmnt;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportDiscountNum;
public decimal reportDiscountAmnt;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportVoidTransNum;
public decimal reportVoidTransAmnt;
[XmlArrayItem("reportCorrLine", IsNullable = false)]
public ReportCorrLine[] reportCorrLines;
[XmlArrayItem("reportPriceInquiry", IsNullable = false)]
public ReportPriceInquiry[] reportPriceInquiries;
[XmlArrayItem("reportOtherCorr", IsNullable = false)]
public ReportOtherCorr[] reportOtherCorrs;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportReceiptDeliveryNum;
public decimal reportReceiptDeliveryAmnt;
[XmlElement(DataType = "nonNegativeInteger")]
public string reportTrainingNum;
public decimal reportTrainingAmnt;
public ReportCreditSales reportCreditSales;
public ReportCreditMemos reportCreditMemos;
[XmlArrayItem("reportPayIn", IsNullable = false)]
public ReportPayIn[] reportPayIns;
[XmlArrayItem("reportPayOut", IsNullable = false)]
public ReportPayOut[] reportPayOuts;
public decimal reportGrandTotalSales;
public decimal reportGrandTotalReturn;
public decimal reportGrandTotalSalesNet;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public enum ReportType
{
[XmlEnum("Z report")]
Zreport,
[XmlEnum("X report")]
Xreport,
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportTotalCashSales
{
public decimal totalCashSaleAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportArtGroup
{
public string artGroupID;
public decimal artGroupNum;
public decimal artGroupAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportEmpArtGroup
{
public string empID;
public string artGroupID;
public decimal artGroupNum;
public decimal artGroupAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportPayment
{
public string paymentType;
[XmlElement(DataType = "nonNegativeInteger")]
public string paymentNum;
public decimal paymentAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportEmpPayment
{
public string empID;
public string paymentType;
[XmlElement(DataType = "nonNegativeInteger")]
public string paymentNum;
public decimal paymentAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportTip
{
[XmlElement(DataType = "nonNegativeInteger")]
public string tipNum;
public decimal tipAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportCashSaleVat
{
public string vatCode;
public decimal vatPerc;
public decimal cashSaleAmnt;
public decimal vatAmnt;
public Debitcredittype vatAmntTp;
[XmlIgnore()]
public bool vatAmntTpSpecified;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public enum Debitcredittype
{
C,
D,
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportEmpOpeningChangeFloat
{
public string empID;
public decimal openingChangeFloatAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportCorrLine
{
public string corrLineType;
[XmlElement(DataType = "nonNegativeInteger")]
public string corrLineNum;
public decimal corrLineAmnt;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportPriceInquiry
{
public string priceInquiryGroup;
[XmlElement(DataType = "nonNegativeInteger")]
public string priceInquiryNum;
public decimal priceInquiryAmnt;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportOtherCorr
{
public string otherCorrType;
[XmlElement(DataType = "nonNegativeInteger")]
public string otherCorrNum;
public decimal otherCorrAmnt;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportCreditSales
{
[XmlElement(DataType = "nonNegativeInteger")]
public string creditSalesNum;
public decimal creditSalesAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportCreditMemos
{
[XmlElement(DataType = "nonNegativeInteger")]
public string creditMemosNum;
public decimal creditMemosAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportPayIn
{
public string payInType;
[XmlElement(DataType = "nonNegativeInteger")]
public string payInNum;
public decimal payInAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class ReportPayOut
{
public string payOutType;
[XmlElement(DataType = "nonNegativeInteger")]
public string payOutNum;
public decimal payOutAmnt;
public string accID;
public string accDesc;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Cashtransaction
{
public string nr;
public string transID;
public string transType;
public decimal transAmntIn;
public decimal transAmntEx;
public Debitcredittype amntTp;
public string empID;
public string custSupID;
[XmlElement(DataType = "nonNegativeInteger")]
public string periodNumber;
[XmlIgnore()]
public DateTime transDateTime;
[XmlElement(ElementName = "transTime")]
public string transTime
{
get
{
return transDateTime.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "transDate")]
public string transDate
{
get
{
return transDateTime.ToString("yyyy-MM-dd");
}
}
[XmlIgnore()]
public DateTime bookDateTime;
[XmlElement(ElementName = "bookTime")]
public string bookTime
{
get
{
return bookDateTime.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "bookDate")]
public string bookDate
{
get
{
return bookDateTime.ToString("yyyy-MM-dd");
}
}
public string invoiceID;
public string refID;
public string desc;
[XmlElement("ctLine")]
public CtLine[] ctLine;
[XmlElement("vat")]
public Vat[] vat;
[XmlElement("savings")]
public Savings[] savings;
[XmlElement("discount")]
public Discount[] discount;
[XmlElement("raise")]
public Raise[] raise;
public Rounding rounding;
[XmlElement("payment")]
public Payment[] payment;
public string signature;
public string keyVersion;
[XmlElement(DataType = "nonNegativeInteger")]
public string receiptNum;
[XmlElement(DataType = "nonNegativeInteger")]
public string receiptCopyNum;
[XmlElement(DataType = "nonNegativeInteger")]
public string receiptProformaNum;
[XmlElement(DataType = "nonNegativeInteger")]
public string receiptDeliveryNum;
public bool voidTransaction;
[XmlIgnore()]
public bool voidTransactionSpecified;
public bool trainingID;
[XmlIgnore()]
public bool trainingIDSpecified;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class CtLine
{
public string nr;
public string lineID;
public string lineType;
public string artGroupID;
public string artID;
public decimal qnt;
[XmlIgnore()]
public bool qntSpecified;
public decimal lineAmntIn;
public decimal lineAmntEx;
public Debitcredittype amntTp;
public decimal ppu;
[XmlIgnore()]
public bool ppuSpecified;
public decimal costPrice;
[XmlIgnore()]
public bool costPriceSpecified;
public string costID;
public string costObjID;
public string projID;
public string empID;
public string lineAmntInAccID;
public string cashTransLineDescr;
[XmlIgnore()]
public DateTime lineDateTime;
[XmlElement(ElementName = "lineTime")]
public string lineTime
{
get
{
return lineDateTime.ToString("HH:mm:ss");
}
}
[XmlElement(ElementName = "lineDate")]
public string lineDate
{
get
{
return lineDateTime.ToString("yyyy-MM-dd");
}
}
public Vat vat;
[XmlElement("savings")]
public Savings[] savings;
[XmlElement("discount")]
public Discount[] discount;
[XmlElement("raise")]
public Raise[] raise;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Vat
{
public string vatCode;
public decimal vatPerc;
[XmlIgnore()]
public bool vatPercSpecified;
public decimal vatAmnt;
public Debitcredittype vatAmntTp;
[XmlIgnore()]
public bool vatAmntTpSpecified;
public decimal vatBasAmnt;
[XmlIgnore()]
public bool vatBasAmntSpecified;
public string accID;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Savings
{
public string savingsType;
[XmlElement(DataType = "nonNegativeInteger")]
public string savingsUnits;
public string empID;
public string accID;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Discount
{
public string dscTp;
public decimal dscAmnt;
public string empID;
public string accID;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Raise
{
public string raiseType;
public decimal raiseAmnt;
public string empID;
public string accID;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Rounding
{
public decimal roundingAmnt;
[XmlIgnore()]
public bool roundingAmntSpecified;
public string accID;
}
[Serializable()]
[XmlType(AnonymousType = true, Namespace = "urn:StandardAuditFile-Taxation-CashRegister:NO")]
public partial class Payment
{
public string paymentType;
public decimal paidAmnt;
public string empID;
public Currencycode curCode;
[XmlIgnore()]
public bool curCodeSpecified;
public decimal exchRt;
[XmlIgnore()]
public bool exchRtSpecified;
public string paymentRefID;
public string accID;
}
}