tx · 51MFctpaBodXcgKY6fBK1xyoC3gwLbaeUibN5n6CiLhg 3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH: -0.01000000 Waves 2022.03.15 12:08 [1964855] smart account 3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH > SELF 0.00000000 Waves
{ "type": 13, "id": "51MFctpaBodXcgKY6fBK1xyoC3gwLbaeUibN5n6CiLhg", "fee": 1000000, "feeAssetId": null, "timestamp": 1647335309783, "version": 2, "chainId": 84, "sender": "3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH", "senderPublicKey": "BEhKtjrMZynwX3AJB6WJbFrM6UxW9ytKVsn1nRb7pKrX", "proofs": [ "431wLBdiAGoiuXkFcEQYAvGXcAwrdoypwa7RpxMDZNiitgiNao2pSLJ5h5Tr5VYbPx1MKcr6tYFN9i7RXZbrbrVd" ], "script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAACAQAAABNnZXREYXRhRnJvbUN1c3RvbWVyAAAAAgAAAANrZXkAAAADYWRyBAAAAARkYXRhBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAAA2FkcgUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAUAAAAEZGF0YQEAAAAQcGxhdXNpYmlsaXR5Q2hlawAAAAQAAAAFZmllbGQAAAAEcHViawAAAANhZHIAAAAEZGF0ZQQAAAANYXJ0aWtlbG5yUGF0aAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwdWJrAgAAAAFfBQAAAAVmaWVsZAIAAAApXy9PUkRFUlMwNS9JRE9DL0UxRURQMDEvRTFFRFAxOVsxXS9JRFROUl8FAAAABGRhdGUEAAAADWFydGlrZWxuckhhc2gEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAADYWRyBQAAAA1hcnRpa2VsbnJQYXRoAwkAAAEAAAACBQAAAAckbWF0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"succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9Jb7e11qgmK9MUNcVgXgvzTubNryRZfkxYEkt57W7NXJ Next: none Diff:
Old | New | Differences | |
---|---|---|---|
54 | 54 | let field11 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[3]/STRAS_") + date), callerAddress) | |
55 | 55 | let field12 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[3]/ORT01_") + date), callerAddress) | |
56 | 56 | let field13 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[3]/PSTLZ_") + date), callerAddress) | |
57 | - | if (if (if (if (if (if (if (if (if (if (if (if (if ((field1 != "")) | |
58 | - | then (field2 != "") | |
59 | - | else false) | |
60 | - | then (field3 != "") | |
61 | - | else false) | |
62 | - | then (field4 != "") | |
63 | - | else false) | |
64 | - | then (field5 != "") | |
65 | - | else false) | |
66 | - | then (field6 != "") | |
67 | - | else false) | |
68 | - | then (field7 != "") | |
69 | - | else false) | |
70 | - | then (field8 != "") | |
71 | - | else false) | |
72 | - | then (field9 != "") | |
73 | - | else false) | |
74 | - | then (field10 != "") | |
75 | - | else false) | |
76 | - | then (field11 != "") | |
77 | - | else false) | |
78 | - | then (field12 != "") | |
79 | - | else false) | |
80 | - | then (field13 != "") | |
81 | - | else false) | |
82 | - | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/EDI-Referenznummer_") + date), field1), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Preiseinheit_") + date), field2), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Positionsreferenzen/Zeilennr_") + date), field2), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Nachrichtentyp_") + date), field3), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/EDI-Nachrichtentyp_") + date), field3), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Referenznummer_") + date), field4), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Waehrungscode_") + date), field5), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Nr_") + date), field6), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Ihre-Referenz_") + date), field6), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen/Referenznummer_") + date), field8), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Referenznummer_") + date), field8), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Land_") + date), field9), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Name_") + date), field10), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Adresse_") + date), field11), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Ort_") + date), field12), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/PLZ-Code_") + date), field13)] | |
83 | - | else throw("at least one field is empty") | |
57 | + | let pausibilityTest = plausibilityChek("VPREI", toBase58String(i.callerPublicKey), callerAddress, date) | |
58 | + | if (pausibilityTest) | |
59 | + | then if (if (if (if (if (if (if (if (if (if (if (if (if ((field1 != "")) | |
60 | + | then (field2 != "") | |
61 | + | else false) | |
62 | + | then (field3 != "") | |
63 | + | else false) | |
64 | + | then (field4 != "") | |
65 | + | else false) | |
66 | + | then (field5 != "") | |
67 | + | else false) | |
68 | + | then (field6 != "") | |
69 | + | else false) | |
70 | + | then (field7 != "") | |
71 | + | else false) | |
72 | + | then (field8 != "") | |
73 | + | else false) | |
74 | + | then (field9 != "") | |
75 | + | else false) | |
76 | + | then (field10 != "") | |
77 | + | else false) | |
78 | + | then (field11 != "") | |
79 | + | else false) | |
80 | + | then (field12 != "") | |
81 | + | else false) | |
82 | + | then (field13 != "") | |
83 | + | else false) | |
84 | + | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/EDI-Referenznummer_") + date), field1), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Preiseinheit_") + date), field2), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Positionsreferenzen/Zeilennr_") + date), field2), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Nachrichtentyp_") + date), field3), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/EDI-Nachrichtentyp_") + date), field3), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Referenznummer_") + date), field4), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Waehrungscode_") + date), field5), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Nr_") + date), field7), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Ihre-Referenz_") + date), field7), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen/Referenznummer_") + date), field8), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Referenznummer_") + date), field8), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Land_") + date), field9), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Name_") + date), field10), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Adresse_") + date), field11), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Ort_") + date), field12), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/PLZ-Code_") + date), field13)] | |
85 | + | else throw("at least one field is empty") | |
86 | + | else throw("plausibilty Failed") | |
84 | 87 | } | |
85 | 88 | ||
86 | 89 | ||
114 | 117 | else false) | |
115 | 118 | then (field23 != "") | |
116 | 119 | else false) | |
117 | - | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Land_") + date), field15), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Land_") + date), field15 | |
120 | + | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Land_") + date), field15), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Land_") + date), field15), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Zeilennr_") + date), field17), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Nr_") + date), field17), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Positionsreferenzen/Gehoert-zu-Zeilennr_") + date), field17), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Menge_") + date), field18), StringEntry(((toBase58String(i.callerPublicKey) + "_GEVISEDI01/Header/Kopfdaten/Positionsdaten/Einheitencode_") + date), field20), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Einheitencode-EDI_") + date), field20), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Preis_") + date), field21), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Adresse-2_") + date), field22), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Artikel-EDI_") + date), field23), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Positionsreferenzen/Artikel-EDI_") + date), field23)] | |
118 | 121 | else throw("at least one field is empty") | |
119 | 122 | } | |
120 | 123 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getDataFromCustomer (key,adr) = { | |
5 | 5 | let data = match getString(adr, key) { | |
6 | 6 | case a: String => | |
7 | 7 | a | |
8 | 8 | case _ => | |
9 | 9 | "" | |
10 | 10 | } | |
11 | 11 | data | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func plausibilityChek (field,pubk,adr,date) = { | |
16 | 16 | let artikelnrPath = ((((pubk + "_") + field) + "_/ORDERS05/IDOC/E1EDP01/E1EDP19[1]/IDTNR_") + date) | |
17 | 17 | let artikelnrHash = match getString(adr, artikelnrPath) { | |
18 | 18 | case a: String => | |
19 | 19 | a | |
20 | 20 | case _ => | |
21 | 21 | "" | |
22 | 22 | } | |
23 | 23 | let keyPiel = ((field + "_") + artikelnrHash) | |
24 | 24 | let keyCostumer = ((((field + "_") + artikelnrHash) + "_") + date) | |
25 | 25 | let priceCustomer = match getString(adr, keyCostumer) { | |
26 | 26 | case a: String => | |
27 | 27 | a | |
28 | 28 | case _ => | |
29 | 29 | "empty" | |
30 | 30 | } | |
31 | 31 | let pricePiel = match getString(this, keyPiel) { | |
32 | 32 | case a: String => | |
33 | 33 | a | |
34 | 34 | case _ => | |
35 | 35 | "empty2" | |
36 | 36 | } | |
37 | 37 | (priceCustomer == pricePiel) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Callable(i) | |
42 | 42 | func perfomOrder (date) = { | |
43 | 43 | let callerAddress = addressFromPublicKey(i.callerPublicKey) | |
44 | 44 | let field1 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/EDI_DC40/DOCNUM_") + date), callerAddress) | |
45 | 45 | let field2 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/EDI_DC40/DIRECT_") + date), callerAddress) | |
46 | 46 | let field3 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/EDI_DC40/MESTYP_") + date), callerAddress) | |
47 | 47 | let field4 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/EDI_DC40/RCVPRN_") + date), callerAddress) | |
48 | 48 | let field5 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDK01/CURCY_") + date), callerAddress) | |
49 | 49 | let field6 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDK02/BELNR_") + date), callerAddress) | |
50 | 50 | let field7 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDK01/BELNR_") + date), callerAddress) | |
51 | 51 | let field8 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1/PARTN_") + date), callerAddress) | |
52 | 52 | let field9 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[2]/SPRAS_ISO_") + date), callerAddress) | |
53 | 53 | let field10 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[3]/NAME1_") + date), callerAddress) | |
54 | 54 | let field11 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[3]/STRAS_") + date), callerAddress) | |
55 | 55 | let field12 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[3]/ORT01_") + date), callerAddress) | |
56 | 56 | let field13 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[3]/PSTLZ_") + date), callerAddress) | |
57 | - | if (if (if (if (if (if (if (if (if (if (if (if (if ((field1 != "")) | |
58 | - | then (field2 != "") | |
59 | - | else false) | |
60 | - | then (field3 != "") | |
61 | - | else false) | |
62 | - | then (field4 != "") | |
63 | - | else false) | |
64 | - | then (field5 != "") | |
65 | - | else false) | |
66 | - | then (field6 != "") | |
67 | - | else false) | |
68 | - | then (field7 != "") | |
69 | - | else false) | |
70 | - | then (field8 != "") | |
71 | - | else false) | |
72 | - | then (field9 != "") | |
73 | - | else false) | |
74 | - | then (field10 != "") | |
75 | - | else false) | |
76 | - | then (field11 != "") | |
77 | - | else false) | |
78 | - | then (field12 != "") | |
79 | - | else false) | |
80 | - | then (field13 != "") | |
81 | - | else false) | |
82 | - | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/EDI-Referenznummer_") + date), field1), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Preiseinheit_") + date), field2), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Positionsreferenzen/Zeilennr_") + date), field2), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Nachrichtentyp_") + date), field3), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/EDI-Nachrichtentyp_") + date), field3), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Referenznummer_") + date), field4), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Waehrungscode_") + date), field5), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Nr_") + date), field6), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Ihre-Referenz_") + date), field6), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen/Referenznummer_") + date), field8), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Referenznummer_") + date), field8), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Land_") + date), field9), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Name_") + date), field10), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Adresse_") + date), field11), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Ort_") + date), field12), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/PLZ-Code_") + date), field13)] | |
83 | - | else throw("at least one field is empty") | |
57 | + | let pausibilityTest = plausibilityChek("VPREI", toBase58String(i.callerPublicKey), callerAddress, date) | |
58 | + | if (pausibilityTest) | |
59 | + | then if (if (if (if (if (if (if (if (if (if (if (if (if ((field1 != "")) | |
60 | + | then (field2 != "") | |
61 | + | else false) | |
62 | + | then (field3 != "") | |
63 | + | else false) | |
64 | + | then (field4 != "") | |
65 | + | else false) | |
66 | + | then (field5 != "") | |
67 | + | else false) | |
68 | + | then (field6 != "") | |
69 | + | else false) | |
70 | + | then (field7 != "") | |
71 | + | else false) | |
72 | + | then (field8 != "") | |
73 | + | else false) | |
74 | + | then (field9 != "") | |
75 | + | else false) | |
76 | + | then (field10 != "") | |
77 | + | else false) | |
78 | + | then (field11 != "") | |
79 | + | else false) | |
80 | + | then (field12 != "") | |
81 | + | else false) | |
82 | + | then (field13 != "") | |
83 | + | else false) | |
84 | + | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/EDI-Referenznummer_") + date), field1), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Preiseinheit_") + date), field2), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Positionsreferenzen/Zeilennr_") + date), field2), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Nachrichtentyp_") + date), field3), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/EDI-Nachrichtentyp_") + date), field3), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Referenznummer_") + date), field4), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Waehrungscode_") + date), field5), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Nr_") + date), field7), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Ihre-Referenz_") + date), field7), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen/Referenznummer_") + date), field8), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Referenznummer_") + date), field8), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Land_") + date), field9), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Name_") + date), field10), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Adresse_") + date), field11), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Ort_") + date), field12), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/PLZ-Code_") + date), field13)] | |
85 | + | else throw("at least one field is empty") | |
86 | + | else throw("plausibilty Failed") | |
84 | 87 | } | |
85 | 88 | ||
86 | 89 | ||
87 | 90 | ||
88 | 91 | @Callable(i) | |
89 | 92 | func perfomOrder2 (date) = { | |
90 | 93 | let callerAddress = addressFromPublicKey(i.callerPublicKey) | |
91 | 94 | let field15 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDKA1[3]/LAND1_") + date), callerAddress) | |
92 | 95 | let field16 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDK02/BELNR_") + date), callerAddress) | |
93 | 96 | let field17 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDP01/POSEX_") + date), callerAddress) | |
94 | 97 | let field18 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDP01/MENGE_") + date), callerAddress) | |
95 | 98 | let field19 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDP01/MENEE_") + date), callerAddress) | |
96 | 99 | let field20 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDP01/PMENE_") + date), callerAddress) | |
97 | 100 | let field21 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDP01/VPREI_") + date), callerAddress) | |
98 | 101 | let field22 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDP01/EMPST_") + date), callerAddress) | |
99 | 102 | let field23 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/E1EDP01/E1EDP19/IDTNR_") + date), callerAddress) | |
100 | 103 | if (if (if (if (if (if (if (if (if ((field15 != "")) | |
101 | 104 | then (field16 != "") | |
102 | 105 | else false) | |
103 | 106 | then (field17 != "") | |
104 | 107 | else false) | |
105 | 108 | then (field18 != "") | |
106 | 109 | else false) | |
107 | 110 | then (field19 != "") | |
108 | 111 | else false) | |
109 | 112 | then (field20 != "") | |
110 | 113 | else false) | |
111 | 114 | then (field21 != "") | |
112 | 115 | else false) | |
113 | 116 | then (field22 != "") | |
114 | 117 | else false) | |
115 | 118 | then (field23 != "") | |
116 | 119 | else false) | |
117 | - | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Land_") + date), field15), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Land_") + date), field15 | |
120 | + | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Land_") + date), field15), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[2]/Land_") + date), field15), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Zeilennr_") + date), field17), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Nr_") + date), field17), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Positionsreferenzen/Gehoert-zu-Zeilennr_") + date), field17), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Menge_") + date), field18), StringEntry(((toBase58String(i.callerPublicKey) + "_GEVISEDI01/Header/Kopfdaten/Positionsdaten/Einheitencode_") + date), field20), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Einheitencode-EDI_") + date), field20), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Preis_") + date), field21), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Kopfadressen[3]/Adresse-2_") + date), field22), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Artikel-EDI_") + date), field23), StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Kopfdaten/Positionsdaten/Positionsreferenzen/Artikel-EDI_") + date), field23)] | |
118 | 121 | else throw("at least one field is empty") | |
119 | 122 | } | |
120 | 123 | ||
121 | 124 | ||
122 | 125 | @Verifier(tx) | |
123 | 126 | func verify () = match tx { | |
124 | 127 | case _: DataTransaction => | |
125 | 128 | true | |
126 | 129 | case _: SetScriptTransaction => | |
127 | 130 | true | |
128 | 131 | case _ => | |
129 | 132 | true | |
130 | 133 | } | |
131 | 134 |
github/deemru/w8io/169f3d6 64.28 ms ◑