Skip to content

Instantly share code, notes, and snippets.

@uberswe
Created December 12, 2021 10:35
Show Gist options
  • Save uberswe/bcb7531c33b6fea9ec174c73a503e187 to your computer and use it in GitHub Desktop.
Save uberswe/bcb7531c33b6fea9ec174c73a503e187 to your computer and use it in GitHub Desktop.
SAFT JSON
{
"auditfile": {
"-Id": "???",
"header": {
"fiscalYear": "str1234",
"startDate": "2012-12-13",
"endDate": "2012-12-13",
"curCode": "AED",
"dateCreated": "2012-12-13",
"timeCreated": "12:12:12",
"softwareDesc": "str1234",
"softwareVersion": "str1234",
"softwareCompanyName": "str1234",
"auditfileVersion": "str1234",
"headerComment": "str1234",
"userID": "str1234",
"auditfileSender": {
"companyIdent": "str1234",
"companyName": "str1234",
"taxRegistrationCountry": "AD",
"taxRegIdent": "str1234",
"streetAddress": {
"streetname": "str1234",
"number": "str1234",
"additionalAddressDetails": "str1234",
"city": "str1234",
"postalCode": "str1234",
"region": "str1234",
"country": "AD"
},
"postalAddress": {
"streetname": "str1234",
"number": "str1234",
"additionalAddressDetail": "str1234",
"city": "str1234",
"postalCode": "str1234",
"region": "str1234",
"country": "AD"
}
}
},
"company": {
"companyIdent": "str1234",
"companyName": "str1234",
"taxRegistrationCountry": "AD",
"taxRegIdent": "str1234",
"streetAddress": {
"streetname": "str1234",
"number": "str1234",
"additionalAddressDetails": "str1234",
"city": "str1234",
"postalCode": "str1234",
"region": "str1234",
"country": "AD"
},
"postalAddress": {
"streetname": "str1234",
"number": "str1234",
"additionalAddressDetails": "str1234",
"city": "str1234",
"postalCode": "str1234",
"region": "str1234",
"country": "AD"
},
"customersSuppliers": {
"customerSupplier": {
"custSupID": "str1234",
"custSupName": "str1234",
"custSupType": "Customer",
"contact": "str1234",
"telephone": "str1234",
"fax": "str1234",
"eMail": "???",
"website": "???",
"taxRegistrationCountry": "AD",
"taxRegIdent": "str1234",
"streetAddress": {
"streetname": "str1234",
"number": "str1234",
"additionalAddressDetails": "str1234",
"city": "str1234",
"postalCode": "str1234",
"region": "str1234",
"country": "AD"
},
"postalAddress": {
"streetname": "str1234",
"number": "str1234",
"additionalAddressDetails": "str1234",
"city": "str1234",
"postalCode": "str1234",
"region": "str1234",
"country": "AD"
}
}
},
"generalLedger": {
"ledgerAccount": {
"accID": "str1234",
"accDesc": "str1234"
}
},
"vatCodeDetails": {
"vatCodeDetail": {
"vatCode": "str1234",
"dateOfEntry": "2012-12-13",
"vatDesc": "str1234",
"standardVatCode": "str1234"
}
},
"periods": {
"period": {
"periodNumber": "33",
"periodDesc": "str1234",
"startDatePeriod": "2012-12-13",
"startTimePeriod": "12:12:12",
"endDatePeriod": "2012-12-13",
"endTimePeriod": "12:12:12"
}
},
"employees": {
"employee": {
"empID": "str1234",
"dateOfEntry": "2012-12-13",
"timeOfEntry": "12:12:12",
"firstName": "str1234",
"surName": "str1234",
"employeeRole": {
"roleType": "str1234",
"roleTypeDesc": "str1234"
}
}
},
"articles": {
"article": {
"artID": "str1234",
"dateOfEntry": "2012-12-13",
"artGroupID": "str1234",
"artDesc": "str1234"
}
},
"basics": {
"basic": {
"basicType": "str1234",
"basicID": "str1234",
"predefinedBasicID": "str1234",
"basicDesc": "str1234"
}
},
"location": {
"name": "str1234",
"streetAddress": {
"streetname": "str1234",
"number": "str1234",
"additionalAddressDetails": "str1234",
"city": "str1234",
"postalCode": "str1234",
"region": "str1234",
"country": "AD"
},
"cashregister": {
"registerID": "str1234",
"regDesc": "str1234",
"event": {
"eventID": "str1234",
"eventType": "str1234",
"transID": "str1234",
"empID": "str1234",
"eventDate": "2012-12-13",
"eventTime": "12:12:12",
"eventText": "str1234",
"eventReport": {
"reportID": "str1234",
"reportType": "Z report",
"companyIdent": "str1234",
"companyName": "str1234",
"reportDate": "2012-12-13",
"reportTime": "12:12:12",
"registerID": "str1234",
"reportTotalCashSales": {
"totalCashSaleAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
},
"reportArtGroups": {
"reportArtGroup": {
"artGroupID": "str1234",
"artGroupNum": "123.45",
"artGroupAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
}
},
"reportEmpArtGroups": {
"reportEmpArtGroup": {
"empID": "str1234",
"artGroupID": "str1234",
"artGroupNum": "123.45",
"artGroupAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
}
},
"reportPayments": {
"reportPayment": {
"paymentType": "str1234",
"paymentNum": "33",
"paymentAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
}
},
"reportEmpPayments": {
"reportEmpPayment": {
"empID": "str1234",
"paymentType": "str1234",
"paymentNum": "33",
"paymentAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
}
},
"reportTip": {
"tipNum": "33",
"tipAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
},
"reportCashSalesVat": {
"reportCashSaleVat": {
"vatCode": "str1234",
"vatPerc": "123.45",
"cashSaleAmnt": "123.45",
"vatAmnt": "123.45",
"vatAmntTp": "C",
"accID": "str1234",
"accDesc": "str1234"
}
},
"reportOpeningChangeFloat": "123.45",
"reportEmpOpeningChangeFloats": {
"reportEmpOpeningChangeFloat": {
"empID": "str1234",
"openingChangeFloatAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
}
},
"reportReceiptNum": "33",
"reportOpenCashBoxNum": "33",
"reportReceiptCopyNum": "33",
"reportReceiptCopyAmnt": "123.45",
"reportReceiptProformaNum": "33",
"reportReceiptProformaAmnt": "123.45",
"reportReturnNum": "33",
"reportReturnAmnt": "123.45",
"reportDiscountNum": "33",
"reportDiscountAmnt": "123.45",
"reportVoidTransNum": "33",
"reportVoidTransAmnt": "123.45",
"reportCorrLines": {
"reportCorrLine": {
"corrLineType": "str1234",
"corrLineNum": "33",
"corrLineAmnt": "123.45"
}
},
"reportPriceInquiries": {
"reportPriceInquiry": {
"priceInquiryGroup": "str1234",
"priceInquiryNum": "33",
"priceInquiryAmnt": "123.45"
}
},
"reportOtherCorrs": {
"reportOtherCorr": {
"otherCorrType": "str1234",
"otherCorrNum": "33",
"otherCorrAmnt": "123.45"
}
},
"reportReceiptDeliveryNum": "33",
"reportReceiptDeliveryAmnt": "123.45",
"reportTrainingNum": "33",
"reportTrainingAmnt": "123.45",
"reportCreditSales": {
"creditSalesNum": "33",
"creditSalesAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
},
"reportCreditMemos": {
"creditMemosNum": "33",
"creditMemosAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
},
"reportPayIns": {
"reportPayIn": {
"payInType": "str1234",
"payInNum": "33",
"payInAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
}
},
"reportPayOuts": {
"reportPayOut": {
"payOutType": "str1234",
"payOutNum": "33",
"payOutAmnt": "123.45",
"accID": "str1234",
"accDesc": "str1234"
}
},
"reportGrandTotalSales": "123.45",
"reportGrandTotalReturn": "123.45",
"reportGrandTotalSalesNet": "123.45"
}
},
"cashtransaction": {
"nr": "str1234",
"transID": "str1234",
"transType": "str1234",
"transAmntIn": "123.45",
"transAmntEx": "123.45",
"amntTp": "C",
"empID": "str1234",
"custSupID": "str1234",
"periodNumber": "33",
"transDate": "2012-12-13",
"transTime": "12:12:12",
"bookDate": "2012-12-13",
"bookTime": "12:12:12",
"invoiceID": "str1234",
"refID": "str1234",
"desc": "str1234",
"ctLine": {
"nr": "str1234",
"lineID": "str1234",
"lineType": "str1234",
"artGroupID": "str1234",
"artID": "str1234",
"qnt": "123.45",
"lineAmntIn": "123.45",
"lineAmntEx": "123.45",
"amntTp": "C",
"ppu": "123.45",
"costPrice": "123.45",
"costID": "str1234",
"costObjID": "str1234",
"projID": "str1234",
"empID": "str1234",
"lineAmntInAccID": "str1234",
"cashTransLineDescr": "str1234",
"lineDate": "2012-12-13",
"lineTime": "12:12:12",
"vat": {
"vatCode": "str1234",
"vatPerc": "123.45",
"vatAmnt": "123.45",
"vatAmntTp": "C",
"vatBasAmnt": "123.45",
"accID": "str1234"
},
"savings": {
"savingsType": "str1234",
"savingsUnits": "33",
"empID": "str1234",
"accID": "str1234"
},
"discount": {
"dscTp": "str1234",
"dscAmnt": "123.45",
"empID": "str1234",
"accID": "str1234"
},
"raise": {
"raiseType": "str1234",
"raiseAmnt": "123.45",
"empID": "str1234",
"accID": "str1234"
}
},
"vat": {
"vatCode": "str1234",
"vatPerc": "123.45",
"vatAmnt": "123.45",
"vatAmntTp": "C",
"vatBasAmnt": "123.45",
"accID": "str1234"
},
"savings": {
"savingsType": "str1234",
"savingsUnits": "33",
"empID": "str1234",
"accID": "str1234"
},
"discount": {
"dscTp": "str1234",
"dscAmnt": "123.45",
"empID": "str1234",
"accID": "str1234"
},
"raise": {
"raiseType": "str1234",
"raiseAmnt": "123.45",
"empID": "str1234",
"accID": "str1234"
},
"rounding": {
"roundingAmnt": "123.45",
"accID": "str1234"
},
"payment": {
"paymentType": "str1234",
"paidAmnt": "123.45",
"empID": "str1234",
"curCode": "AED",
"exchRt": "123.45",
"paymentRefID": "str1234",
"accID": "str1234"
},
"signature": "str1234",
"keyVersion": "str1234",
"receiptNum": "33",
"receiptCopyNum": "33",
"receiptProformaNum": "33",
"receiptDeliveryNum": "33",
"voidTransaction": "true",
"trainingID": "true"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment