moy_sklad 1.0.0.rc10 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,17 @@
1
- xml.currency(name: name, enteredRate: enteredRate, invertRate: invertRate, rate: rate) {
1
+ xml.currency(readMode: readMode, changeMode: changeMode, updated: updated, updatedBy: updatedBy, name: name, enteredRate: enteredRate,
2
+ invertRate: invertRate, rate: rate) {
3
+
2
4
  xml.accountUuid_ accountUuid
3
5
  xml.accountId_ accountId
4
6
  xml.uuid_ uuid
5
7
  xml.groupUuid_ groupUuid
8
+ xml.ownerUid_ ownerUid
9
+ xml.shared_ shared
6
10
  xml.deleted_ deleted
7
11
  xml.code_ code
8
12
  xml.externalcode_ externalcode
9
13
  xml.description_ description
14
+
10
15
  xml.major(s1: major.s1, s24: major.s24, s5: major.s5, sex: major.sex)
11
16
  xml.minor(s1: minor.s1, s24: minor.s24, s5: minor.s5, sex: minor.sex)
12
17
  }
@@ -1,35 +1,41 @@
1
- xml.customEntity(name: name, entityMetadataUuid: entityMetadataUuid) {
1
+ xml.customEntity(readMode: readMode, changeMode: changeMode, updated: updated, updatedBy: updatedBy, name: name, entityMetadataUuid: entityMetadataUuid) {
2
2
 
3
3
  xml.accountUuid_ accountUuid
4
4
  xml.accountId_ accountId
5
5
  xml.uuid_ uuid
6
6
  xml.groupUuid_ groupUuid
7
+ xml.ownerUid_ ownerUid
8
+ xml.shared_ shared
7
9
  xml.deleted_ deleted
8
10
  xml.code_ code
9
11
  xml.externalcode_ externalcode
10
12
  xml.description_ description
11
13
 
12
14
  to_a(:attribute).each do |a|
13
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
14
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
15
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
16
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
17
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
18
- goodUuid: a.goodUuid) {
15
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
16
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
17
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
18
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
19
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
19
20
 
20
21
  xml.accountUuid_ a.accountUuid
21
22
  xml.accountId_ a.accountId
22
23
  xml.uuid_ a.uuid
23
24
  xml.groupUuid_ a.groupUuid
25
+ xml.ownerUid_ a.ownerUid
26
+ xml.shared_ a.shared
24
27
  xml.deleted_ a.deleted
25
28
 
26
29
  a.to_a(:file).each do |f|
27
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
30
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
31
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
28
32
 
29
33
  xml.accountUuid_ f.accountUuid
30
34
  xml.accountId_ f.accountId
31
35
  xml.uuid_ f.uuid
32
36
  xml.groupUuid_ f.groupUuid
37
+ xml.ownerUid_ f.ownerUid
38
+ xml.shared_ f.shared
33
39
  xml.deleted_ f.deleted
34
40
  xml.code_ f.code
35
41
  xml.externalcode_ f.externalcode
@@ -1,40 +1,45 @@
1
- xml.customerOrder(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, sourceAgentUuid: sourceAgentUuid,
2
- targetStoreUuid: targetStoreUuid, sourceStoreUuid: sourceStoreUuid, applicable: applicable,
3
- projectUuid: projectUuid, contractUuid: contractUuid, moment: moment, targetAccountUuid: targetAccountUuid,
4
- sourceAccountUuid: sourceAccountUuid, payerVat: payerVat, retailStoreUuid: retailStoreUuid,
5
- currencyUuid: currencyUuid, rate: rate, vatIncluded: vatIncluded, created: created, createdBy: createdBy,
6
- employeeUuid: employeeUuid, deliveryPlannedMoment: deliveryPlannedMoment,
7
- reservedSum: reservedSum) {
1
+ xml.customerOrder(readMode: readMode, changeMode: changeMode, updated: updated, updatedBy: updatedBy, name: name, stateUuid: stateUuid,
2
+ targetAgentUuid: targetAgentUuid, sourceAgentUuid: sourceAgentUuid, targetStoreUuid: targetStoreUuid, sourceStoreUuid: sourceStoreUuid,
3
+ applicable: applicable, projectUuid: projectUuid, contractUuid: contractUuid, moment: moment, targetAccountUuid: targetAccountUuid,
4
+ sourceAccountUuid: sourceAccountUuid, payerVat: payerVat, retailStoreUuid: retailStoreUuid, currencyUuid: currencyUuid, rate: rate,
5
+ vatIncluded: vatIncluded, created: created, createdBy: createdBy, deliveryPlannedMoment: deliveryPlannedMoment, reservedSum: reservedSum) {
6
+
8
7
  xml.accountUuid_ accountUuid
9
8
  xml.accountId_ accountId
10
9
  xml.uuid_ uuid
11
10
  xml.groupUuid_ groupUuid
11
+ xml.ownerUid_ ownerUid
12
+ xml.shared_ shared
12
13
  xml.deleted_ deleted
13
14
  xml.code_ code
14
15
  xml.externalcode_ externalcode
15
16
  xml.description_ description
16
17
 
17
18
  to_a(:attribute).each do |a|
18
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
19
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
20
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
21
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
22
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
23
- goodUuid: a.goodUuid) {
19
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
20
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
21
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
22
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
23
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
24
24
 
25
25
  xml.accountUuid_ a.accountUuid
26
26
  xml.accountId_ a.accountId
27
27
  xml.uuid_ a.uuid
28
28
  xml.groupUuid_ a.groupUuid
29
+ xml.ownerUid_ a.ownerUid
30
+ xml.shared_ a.shared
29
31
  xml.deleted_ a.deleted
30
32
 
31
33
  a.to_a(:file).each do |f|
32
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
34
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
35
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
33
36
 
34
37
  xml.accountUuid_ f.accountUuid
35
38
  xml.accountId_ f.accountId
36
39
  xml.uuid_ f.uuid
37
40
  xml.groupUuid_ f.groupUuid
41
+ xml.ownerUid_ f.ownerUid
42
+ xml.shared_ f.shared
38
43
  xml.deleted_ f.deleted
39
44
  xml.code_ f.code
40
45
  xml.externalcode_ f.externalcode
@@ -45,13 +50,16 @@ xml.customerOrder(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgent
45
50
  }
46
51
  end
47
52
 
48
- to_a(:document).each do |d|
49
- xml.document(name: d.name, created: d.created, filename: d.filename, miniatureUuid: d.miniatureUuid,
50
- emailedDate: d.emailedDate, publicId: d.publicId, operationUuid: d.operationUuid) {
53
+ to_a(:document) do |d|
54
+ xml.document(readMode: d.readMode, changeMode: d.changeMode, updated: d.updated, updatedBy: d.updatedBy, name: d.name,
55
+ created: d.created, filename: d.filename, miniatureUuid: d.miniatureUuid, emailedDate: d.emailedDate,
56
+ publicId: d.publicId, operationUuid: d.operationUuid) {
51
57
  xml.accountUuid_ d.accountUuid
52
58
  xml.accountId_ d.accountId
53
59
  xml.uuid_ d.uuid
54
60
  xml.groupUuid_ d.groupUuid
61
+ xml.ownerUid_ d.ownerUid
62
+ xml.shared_ d.shared
55
63
  xml.deleted_ d.deleted
56
64
  xml.code_ d.code
57
65
  xml.externalcode_ d.externalcode
@@ -88,52 +96,60 @@ xml.customerOrder(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgent
88
96
 
89
97
 
90
98
  to_a(:customerOrderPosition).each do |o|
91
- xml.customerOrderPosition(discount: o.discount, quantity: o.quantity,
92
- goodPackUuid: o.goodPackUuid, consignmentUuid: o.consignmentUuid, goodUuid: o.goodUuid,
93
- slotUuid: o.slotUuid, vat: o.vat) {
99
+ xml.customerOrderPosition(readMode: o.readMode, changeMode: o.changeMode, discount: o.discount, quantity: o.quantity, goodPackUuid: o.goodPackUuid,
100
+ consignmentUuid: o.consignmentUuid, goodUuid: o.goodUuid, slotUuid: o.slotUuid, vat: o.vat) {
101
+
94
102
  xml.accountUuid_ o.accountUuid
95
103
  xml.accountId_ o.accountId
96
104
  xml.uuid_ o.uuid
97
105
  xml.groupUuid_ o.groupUuid
98
- xml.reserve_ o.reserve
106
+ xml.ownerUid_ o.ownerUid
107
+ xml.shared_ o.shared
108
+ xml.reserve_ o.reserve
99
109
 
100
110
  xml.basePrice(sum: o.basePrice.sum, sumInCurrency: o.basePrice.sumInCurrency)
101
111
  xml.price(sum: o.price.sum, sumInCurrency: o.price.sumInCurrency)
102
112
 
103
113
  xml.things {
104
114
  o.to_a(:thingRef).each do |t|
105
- xml.thingRef(name: t.name, goodUuid: t.goodUuid) {
115
+ xml.thingRef(readMode: t.readMode, changeMode: t.changeMode, updated: t.updated, updatedBy: t.updatedBy, name: t.name, goodUuid: t.goodUuid) {
106
116
 
107
117
  xml.accountUuid_ t.accountUuid
108
118
  xml.accountId_ t.accountId
109
119
  xml.uuid_ t.uuid
110
120
  xml.groupUuid_ t.groupUuid
121
+ xml.ownerUid_ t.ownerUid
122
+ xml.shared_ t.shared
111
123
  xml.deleted_ t.deleted
112
124
  xml.code_ t.code
113
125
  xml.externalcode_ t.externalcode
114
126
  xml.description_ t.description
115
127
 
116
128
  t.to_a(:attribute).each do |a|
117
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
118
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
119
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
120
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
121
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
122
- goodUuid: a.goodUuid) {
129
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
130
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
131
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
132
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
133
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
123
134
 
124
135
  xml.accountUuid_ a.accountUuid
125
136
  xml.accountId_ a.accountId
126
137
  xml.uuid_ a.uuid
127
138
  xml.groupUuid_ a.groupUuid
139
+ xml.ownerUid_ a.ownerUid
140
+ xml.shared_ a.shared
128
141
  xml.deleted_ a.deleted
129
142
 
130
- a.to_a(:file) do |f|
131
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
143
+ a.to_a(:file).each do |f|
144
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
145
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
132
146
 
133
147
  xml.accountUuid_ f.accountUuid
134
148
  xml.accountId_ f.accountId
135
149
  xml.uuid_ f.uuid
136
150
  xml.groupUuid_ f.groupUuid
151
+ xml.ownerUid_ f.ownerUid
152
+ xml.shared_ f.shared
137
153
  xml.deleted_ f.deleted
138
154
  xml.code_ f.code
139
155
  xml.externalcode_ f.externalcode
@@ -1,39 +1,45 @@
1
- xml.demand(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, sourceAgentUuid: sourceAgentUuid, targetStoreUuid: targetStoreUuid,
2
- sourceStoreUuid: sourceStoreUuid, applicable: applicable, projectUuid: projectUuid, contractUuid: contractUuid,
3
- moment: moment, targetAccountUuid: targetAccountUuid, sourceAccountUuid: sourceAccountUuid, payerVat: payerVat,
4
- retailStoreUuid: retailStoreUuid, currencyUuid: currencyUuid, rate: rate, vatIncluded: vatIncluded,
5
- employeeUuid: employeeUuid, customerOrderUuid: customerOrderUuid, factureUuid: factureUuid) {
1
+ xml.demand(readMode: readMode, changeMode: changeMode, updated: updated, updatedBy: updatedBy, name: name, stateUuid: stateUuid,
2
+ targetAgentUuid: targetAgentUuid, sourceAgentUuid: sourceAgentUuid, targetStoreUuid: targetStoreUuid, sourceStoreUuid: sourceStoreUuid,
3
+ applicable: applicable, projectUuid: projectUuid, contractUuid: contractUuid, moment: moment, targetAccountUuid: targetAccountUuid,
4
+ sourceAccountUuid: sourceAccountUuid, payerVat: payerVat, retailStoreUuid: retailStoreUuid, currencyUuid: currencyUuid, rate: rate,
5
+ vatIncluded: vatIncluded, created: created, createdBy: createdBy, customerOrderUuid: customerOrderUuid, factureUuid: factureUuid) {
6
6
 
7
7
  xml.accountUuid_ accountUuid
8
8
  xml.accountId_ accountId
9
9
  xml.uuid_ uuid
10
10
  xml.groupUuid_ groupUuid
11
+ xml.ownerUid_ ownerUid
12
+ xml.shared_ shared
11
13
  xml.deleted_ deleted
12
14
  xml.code_ code
13
15
  xml.externalcode_ externalcode
14
16
  xml.description_ description
15
17
 
16
18
  to_a(:attribute).each do |a|
17
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
18
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
19
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
20
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
21
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
22
- goodUuid: a.goodUuid) {
19
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
20
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
21
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
22
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
23
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
23
24
 
24
25
  xml.accountUuid_ a.accountUuid
25
26
  xml.accountId_ a.accountId
26
27
  xml.uuid_ a.uuid
27
28
  xml.groupUuid_ a.groupUuid
29
+ xml.ownerUid_ a.ownerUid
30
+ xml.shared_ a.shared
28
31
  xml.deleted_ a.deleted
29
32
 
30
33
  a.to_a(:file).each do |f|
31
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
34
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
35
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
32
36
 
33
37
  xml.accountUuid_ f.accountUuid
34
38
  xml.accountId_ f.accountId
35
39
  xml.uuid_ f.uuid
36
40
  xml.groupUuid_ f.groupUuid
41
+ xml.ownerUid_ f.ownerUid
42
+ xml.shared_ f.shared
37
43
  xml.deleted_ f.deleted
38
44
  xml.code_ f.code
39
45
  xml.externalcode_ f.externalcode
@@ -44,13 +50,16 @@ xml.demand(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
44
50
  }
45
51
  end
46
52
 
47
- to_a(:document).each do |d|
48
- xml.document(name: d.name, created: d.created, filename: d.filename, miniatureUuid: d.miniatureUuid,
49
- emailedDate: d.emailedDate, publicId: d.publicId, operationUuid: d.operationUuid) {
53
+ to_a(:document) do |d|
54
+ xml.document(readMode: d.readMode, changeMode: d.changeMode, updated: d.updated, updatedBy: d.updatedBy, name: d.name,
55
+ created: d.created, filename: d.filename, miniatureUuid: d.miniatureUuid, emailedDate: d.emailedDate,
56
+ publicId: d.publicId, operationUuid: d.operationUuid) {
50
57
  xml.accountUuid_ d.accountUuid
51
58
  xml.accountId_ d.accountId
52
59
  xml.uuid_ d.uuid
53
60
  xml.groupUuid_ d.groupUuid
61
+ xml.ownerUid_ d.ownerUid
62
+ xml.shared_ d.shared
54
63
  xml.deleted_ d.deleted
55
64
  xml.code_ d.code
56
65
  xml.externalcode_ d.externalcode
@@ -74,51 +83,61 @@ xml.demand(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
74
83
  } if paymentsUuid.present?
75
84
 
76
85
  to_a(:shipmentOut).each do |s|
77
- xml.shipmentOut(discount: s.discount, quantity: s.quantity, goodPackUuid: s.goodPackUuid, consignmentUuid: s.consignmentUuid,
78
- goodUuid: s.goodUuid, slotUuid: s.slotUuid, vat: s.vat, countryUuid: s.countryUuid, gtdUuid: s.gtdUuid) {
86
+ xml.shipmentOut(readMode: s.readMode, changeMode: s.changeMode, discount: s.discount, quantity: s.quantity, goodPackUuid: s.goodPackUuid,
87
+ consignmentUuid: s.consignmentUuid, goodUuid: s.goodUuid, slotUuid: s.slotUuid, vat: s.vat, countryUuid: s.countryUuid,
88
+ gtdUuid: s.gtdUuid) {
79
89
 
80
90
  xml.accountUuid_ s.accountUuid
81
91
  xml.accountId_ s.accountId
82
92
  xml.uuid_ s.uuid
83
93
  xml.groupUuid_ s.groupUuid
94
+ xml.ownerUid_ s.ownerUid
95
+ xml.shared_ s.shared
84
96
  xml.reserve_ s.reserve
85
97
 
86
98
  xml.basePrice(sum: s.basePrice.sum, sumInCurrency: s.basePrice.sumInCurrency)
87
99
  xml.price(sum: s.price.sum, sumInCurrency: s.price.sumInCurrency)
88
100
 
89
101
  xml.things {
90
- s.to_a(:thingsRef).each do |t|
102
+ o.to_a(:thingRef).each do |t|
103
+ xml.thingRef(readMode: t.readMode, changeMode: t.changeMode, updated: t.updated, updatedBy: t.updatedBy, name: t.name, goodUuid: t.goodUuid) {
91
104
 
92
- xml.thingRef(name: t.name, goodUuid: t.goodUuid) {
93
105
  xml.accountUuid_ t.accountUuid
94
106
  xml.accountId_ t.accountId
95
107
  xml.uuid_ t.uuid
96
108
  xml.groupUuid_ t.groupUuid
109
+ xml.ownerUid_ t.ownerUid
110
+ xml.shared_ t.shared
97
111
  xml.deleted_ t.deleted
98
112
  xml.code_ t.code
99
113
  xml.externalcode_ t.externalcode
100
114
  xml.description_ t.description
101
115
 
102
116
  t.to_a(:attribute).each do |a|
103
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
104
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
105
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
106
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
107
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
108
- goodUuid: a.goodUuid) {
117
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
118
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
119
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
120
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
121
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
109
122
 
110
123
  xml.accountUuid_ a.accountUuid
111
124
  xml.accountId_ a.accountId
112
125
  xml.uuid_ a.uuid
113
126
  xml.groupUuid_ a.groupUuid
127
+ xml.ownerUid_ a.ownerUid
128
+ xml.shared_ a.shared
114
129
  xml.deleted_ a.deleted
130
+
115
131
  a.to_a(:file).each do |f|
116
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
132
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
133
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
117
134
 
118
135
  xml.accountUuid_ f.accountUuid
119
136
  xml.accountId_ f.accountId
120
137
  xml.uuid_ f.uuid
121
138
  xml.groupUuid_ f.groupUuid
139
+ xml.ownerUid_ f.ownerUid
140
+ xml.shared_ f.shared
122
141
  xml.deleted_ f.deleted
123
142
  xml.code_ f.code
124
143
  xml.externalcode_ f.externalcode
@@ -134,14 +153,13 @@ xml.demand(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
134
153
  }
135
154
  end
136
155
 
137
-
138
156
  xml.salesReturnsUuid {
139
157
  salesReturnsUuid.to_a(:salesReturnRef).each do |r|
140
158
  xml.salesReturnRef_ r
141
159
  end
142
160
  } if salesReturnsUuid.present?
143
161
 
144
- xml.extension(consigneeUuid: consigneeUuid, opened: opened, carrierUuid: carrierUuid, loadName: loadName,
145
- consignorIndication: consignorIndication, transportFacility: transportFacility, goodPackQuantity: goodPackQuantity,
146
- carNumber: carNumber)
162
+ xml.extension(consigneeUuid: extension.consigneeUuid, opened: extension.opened, carrierUuid: extension.carrierUuid, loadName: extension.loadName,
163
+ consignorIndication: extension.consignorIndication, transportFacility: extension.transportFacility,
164
+ goodPackQuantity: extension.goodPackQuantity, carNumber: extension.carNumber) if extension.present?
147
165
  }
@@ -1,38 +1,44 @@
1
- xml.good(name: name, archived: archived, parentUuid: parentUuid, productCode: productCode,
2
- vat: vat, minPrice: minPrice, uomUuid: uomUuid, countryUuid: countryUuid,
3
- supplierUuid: supplierUuid, salePrice: salePrice, saleCurrencyUuid: saleCurrencyUuid,
4
- buyCurrencyUuid: buyCurrencyUuid, isSerialTrackable: isSerialTrackable, buyPrice: buyPrice,
1
+ xml.good(readMode: readMode, changeMode: changeMode, updated: updated, updatedBy: updatedBy, name: name, archived: archived, parentUuid: parentUuid,
2
+ productCode: productCode, vat: vat, uomUuid: uomUuid, countryUuid: countryUuid, supplierUuid: supplierUuid, minPrice: minPrice, salePrice: salePrice,
3
+ saleCurrencyUuid: saleCurrencyUuid, buyCurrencyUuid: buyCurrencyUuid, buyPrice: buyPrice, isSerialTrackable: isSerialTrackable,
5
4
  minimumBalance: minimumBalance, weight: weight, volume: volume) {
6
5
 
7
6
  xml.accountUuid_ accountUuid
8
7
  xml.accountId_ accountId
9
8
  xml.uuid_ uuid
10
9
  xml.groupUuid_ groupUuid
10
+ xml.ownerUid_ ownerUid
11
+ xml.shared_ shared
11
12
  xml.deleted_ deleted
12
13
  xml.code_ code
13
14
  xml.externalcode_ externalcode
14
15
  xml.description_ description
15
16
 
16
17
  to_a(:attribute).each do |a|
17
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
18
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
19
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
20
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
21
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
22
- goodUuid: a.goodUuid) {
18
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
19
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
20
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
21
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
22
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
23
23
 
24
24
  xml.accountUuid_ a.accountUuid
25
25
  xml.accountId_ a.accountId
26
26
  xml.uuid_ a.uuid
27
27
  xml.groupUuid_ a.groupUuid
28
+ xml.ownerUid_ a.ownerUid
29
+ xml.shared_ a.shared
28
30
  xml.deleted_ a.deleted
31
+
29
32
  a.to_a(:file).each do |f|
30
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
33
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
34
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
31
35
 
32
36
  xml.accountUuid_ f.accountUuid
33
37
  xml.accountId_ f.accountId
34
38
  xml.uuid_ f.uuid
35
39
  xml.groupUuid_ f.groupUuid
40
+ xml.ownerUid_ f.ownerUid
41
+ xml.shared_ f.shared
36
42
  xml.deleted_ f.deleted
37
43
  xml.code_ f.code
38
44
  xml.externalcode_ f.externalcode
@@ -43,42 +49,50 @@ xml.good(name: name, archived: archived, parentUuid: parentUuid, productCode: pr
43
49
  }
44
50
  end
45
51
 
46
- to_a(:barcode).each do |barcode|
47
- xml.barcode(barcode: barcode.barcode, barcodeType: barcode.barcodeType) {
48
- xml.accountUuid_ barcode.accountUuid
49
- xml.accountId_ barcode.accountId
50
- xml.uuid_ barcode.uuid
51
- xml.groupUuid_ barcode.groupUuid
52
- }
53
- end
54
-
55
52
  xml.salePrices {
56
53
  salePrices.to_a(:price).each do |p|
57
- xml.price(currencyUuid: p.currencyUuid, priceTypeUuid: p.priceTypeUuid, value: p.value) {
54
+ xml.price(readMode: p.readMode, changeMode: p.changeMode, currencyUuid: p.currencyUuid, priceTypeUuid: p.priceTypeUuid, value: p.value) {
58
55
  xml.accountUuid_ p.accountUuid
59
56
  xml.accountId_ p.accountId
60
57
  xml.uuid_ p.uuid
61
58
  xml.groupUuid_ p.groupUuid
59
+ xml.ownerUid_ p.ownerUid
60
+ xml.shared_ p.shared
62
61
  }
63
62
  end
64
63
  }
65
64
 
65
+ to_a(:barcode).each do |barcode|
66
+ xml.barcode(readMode: barcode.readMode, changeMode: barcode.changeMode, barcode: barcode.barcode, barcodeType: barcode.barcodeType) {
67
+ xml.accountUuid_ barcode.accountUuid
68
+ xml.accountId_ barcode.accountId
69
+ xml.uuid_ barcode.uuid
70
+ xml.groupUuid_ barcode.groupUuid
71
+ xml.ownerUid_ barcode.ownerUid
72
+ xml.shared_ barcode.shared
73
+ }
74
+ end
75
+
66
76
  to_a(:pack).each do |p|
67
- xml.pack(quantity: p.quantity, uomUuid: p.uomUuid) {
77
+ xml.pack(readMode: p.readMode, changeMode: p.changeMode, quantity: p.quantity, uomUuid: p.uomUuid) {
68
78
  xml.accountUuid_ p.accountUuid
69
79
  xml.accountId_ p.accountId
70
80
  xml.uuid_ p.uuid
71
81
  xml.groupUuid_ p.groupUuid
82
+ xml.ownerUid_ p.ownerUid
83
+ xml.shared_ p.shared
72
84
  }
73
85
  end
74
86
 
75
87
  xml.preferences {
76
88
  to_a(:preference).each do |p|
77
- xml.preference(slotUuid: p.slotUuid) {
89
+ xml.preference(readMode: p.readMode, changeMode: p.changeMode, slotUuid: p.slotUuid) {
78
90
  xml.accountUuid_ p.accountUuid
79
91
  xml.accountId_ p.accountId
80
92
  xml.uuid_ p.uuid
81
93
  xml.groupUuid_ p.groupUuid
94
+ xml.ownerUid_ p.ownerUid
95
+ xml.shared_ p.shared
82
96
  }
83
97
  end
84
98
  }
@@ -1,34 +1,42 @@
1
- xml.goodFolder(name: name, archived: archived, parentUuid: parentUuid, productCode: productCode, vat: vat) {
1
+ xml.goodFolder(readMode: readMode, changeMode: changeMode, updated: updated, updatedBy: updatedBy, name: name,
2
+ archived: archived, parentUuid: parentUuid, productCode: productCode, vat: vat) {
2
3
 
3
4
  xml.accountUuid_ accountUuid
4
5
  xml.accountId_ accountId
5
6
  xml.uuid_ uuid
6
7
  xml.groupUuid_ groupUuid
8
+ xml.ownerUid_ ownerUid
9
+ xml.shared_ shared
7
10
  xml.deleted_ deleted
8
11
  xml.code_ code
9
12
  xml.externalcode_ externalcode
10
13
  xml.description_ description
11
14
 
12
15
  to_a(:attribute).each do |a|
13
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
14
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
15
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
16
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
17
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
18
- goodUuid: a.goodUuid) {
16
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
17
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
18
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
19
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
20
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
19
21
 
20
22
  xml.accountUuid_ a.accountUuid
21
23
  xml.accountId_ a.accountId
22
24
  xml.uuid_ a.uuid
23
25
  xml.groupUuid_ a.groupUuid
26
+ xml.ownerUid_ a.ownerUid
27
+ xml.shared_ a.shared
24
28
  xml.deleted_ a.deleted
29
+
25
30
  a.to_a(:file).each do |f|
26
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
31
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
32
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
27
33
 
28
34
  xml.accountUuid_ f.accountUuid
29
35
  xml.accountId_ f.accountId
30
36
  xml.uuid_ f.uuid
31
37
  xml.groupUuid_ f.groupUuid
38
+ xml.ownerUid_ f.ownerUid
39
+ xml.shared_ f.shared
32
40
  xml.deleted_ f.deleted
33
41
  xml.code_ f.code
34
42
  xml.externalcode_ f.externalcode