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,38 +1,45 @@
1
- xml.invoiceOut(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, sourceAgentUuid: sourceAgentUuid, targetStoreUuid: targetStoreUuid,
2
- sourceStoreUuid: sourceStoreUuid, applicable: applicable, projectUuid: projectUuid, contractUuid: contractUuid, moment: moment,
3
- targetAccountUuid: targetAccountUuid, sourceAccountUuid: sourceAccountUuid, payerVat: payerVat, retailStoreUuid: retailStoreUuid,
4
- currencyUuid: currencyUuid, rate: rate, vatIncluded: vatIncluded, employeeUuid: employeeUuid, paymentPlannedMoment: paymentPlannedMoment,
5
- customerOrderUuid: customerOrderUuid) {
1
+ xml.invoiceOut(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, paymentPlannedMoment: paymentPlannedMoment, customerOrderUuid: customerOrderUuid) {
6
+
6
7
  xml.accountUuid_ accountUuid
7
8
  xml.accountId_ accountId
8
9
  xml.uuid_ uuid
9
10
  xml.groupUuid_ groupUuid
11
+ xml.ownerUid_ ownerUid
12
+ xml.shared_ shared
10
13
  xml.deleted_ deleted
11
14
  xml.code_ code
12
15
  xml.externalcode_ externalcode
13
16
  xml.description_ description
14
17
 
15
18
  to_a(:attribute).each do |a|
16
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
17
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
18
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
19
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
20
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
21
- 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) {
22
24
 
23
25
  xml.accountUuid_ a.accountUuid
24
26
  xml.accountId_ a.accountId
25
27
  xml.uuid_ a.uuid
26
28
  xml.groupUuid_ a.groupUuid
29
+ xml.ownerUid_ a.ownerUid
30
+ xml.shared_ a.shared
27
31
  xml.deleted_ a.deleted
28
32
 
29
33
  a.to_a(:file).each do |f|
30
- 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) {
31
36
 
32
37
  xml.accountUuid_ f.accountUuid
33
38
  xml.accountId_ f.accountId
34
39
  xml.uuid_ f.uuid
35
40
  xml.groupUuid_ f.groupUuid
41
+ xml.ownerUid_ f.ownerUid
42
+ xml.shared_ f.shared
36
43
  xml.deleted_ f.deleted
37
44
  xml.code_ f.code
38
45
  xml.externalcode_ f.externalcode
@@ -44,12 +51,15 @@ xml.invoiceOut(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUui
44
51
  end
45
52
 
46
53
  to_a(:document) do |d|
47
- xml.document(name: d.name, created: d.created, filename: d.filename, miniatureUuid: d.miniatureUuid,
48
- emailedDate: d.emailedDate, publicId: d.publicId, operationUuid: d.operationUuid) {
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) {
49
57
  xml.accountUuid_ d.accountUuid
50
58
  xml.accountId_ d.accountId
51
59
  xml.uuid_ d.uuid
52
60
  xml.groupUuid_ d.groupUuid
61
+ xml.ownerUid_ d.ownerUid
62
+ xml.shared_ d.shared
53
63
  xml.deleted_ d.deleted
54
64
  xml.code_ d.code
55
65
  xml.externalcode_ d.externalcode
@@ -61,51 +71,59 @@ xml.invoiceOut(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUui
61
71
  xml.sum(sum: sum.sum, sumInCurrency: sum.sumInCurrency)
62
72
 
63
73
  to_a(:invoicePosition).each do |p|
64
- xml.invoicePosition(discount: p.discount, quantity: p.quantity, goodPackUuid: p.goodPackUuid, consignmentUuid: p.consignmentUuid,
65
- goodUuid: p.goodUuid, slotUuid: p.slotUuid, vat: p.vat) {
74
+ xml.invoicePosition(readMode: p.readMode, changeMode: p.changeMode, discount: p.discount, quantity: p.quantity, goodPackUuid: p.goodPackUuid,
75
+ consignmentUuid: p.consignmentUuid, goodUuid: p.goodUuid, slotUuid: p.slotUuid, vat: p.vat) {
66
76
 
67
77
  xml.accountUuid_ p.accountUuid
68
78
  xml.accountId_ p.accountId
69
79
  xml.uuid_ p.uuid
70
80
  xml.groupUuid_ p.groupUuid
81
+ xml.ownerUid_ p.ownerUid
82
+ xml.shared_ p.shared
71
83
 
72
84
  xml.basePrice(sum: p.basePrice.sum, sumInCurrency: p.basePrice.sumInCurrency)
73
85
  xml.price(sum: p.price.sum, sumInCurrency: p.price.sumInCurrency)
74
86
 
75
- xml.thins {
87
+ xml.things {
76
88
  p.to_a(:thingRef).each do |t|
77
- xml.thingRef(name: t.name, goodUuid: t.goodUuid) {
89
+ xml.thingRef(readMode: t.readMode, changeMode: t.changeMode, updated: t.updated, updatedBy: t.updatedBy, name: t.name, goodUuid: t.goodUuid) {
78
90
 
79
91
  xml.accountUuid_ t.accountUuid
80
92
  xml.accountId_ t.accountId
81
93
  xml.uuid_ t.uuid
82
94
  xml.groupUuid_ t.groupUuid
95
+ xml.ownerUid_ t.ownerUid
96
+ xml.shared_ t.shared
83
97
  xml.deleted_ t.deleted
84
98
  xml.code_ t.code
85
99
  xml.externalcode_ t.externalcode
86
100
  xml.description_ t.description
87
101
 
88
102
  t.to_a(:attribute).each do |a|
89
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
90
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
91
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
92
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
93
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
94
- goodUuid: a.goodUuid) {
103
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
104
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
105
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
106
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
107
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
95
108
 
96
109
  xml.accountUuid_ a.accountUuid
97
110
  xml.accountId_ a.accountId
98
111
  xml.uuid_ a.uuid
99
112
  xml.groupUuid_ a.groupUuid
113
+ xml.ownerUid_ a.ownerUid
114
+ xml.shared_ a.shared
100
115
  xml.deleted_ a.deleted
101
116
 
102
- a.to_a(:file) do |f|
103
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
117
+ a.to_a(:file).each do |f|
118
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
119
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
104
120
 
105
121
  xml.accountUuid_ f.accountUuid
106
122
  xml.accountId_ f.accountId
107
123
  xml.uuid_ f.uuid
108
124
  xml.groupUuid_ f.groupUuid
125
+ xml.ownerUid_ f.ownerUid
126
+ xml.shared_ f.shared
109
127
  xml.deleted_ f.deleted
110
128
  xml.code_ f.code
111
129
  xml.externalcode_ f.externalcode
@@ -128,7 +146,7 @@ xml.invoiceOut(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUui
128
146
  } if demandsUuid.present?
129
147
 
130
148
  xml.paymentsUuid {
131
- paymentsUuid.to_a(:demandRef).each do |r|
149
+ paymentsUuid.to_a(:financeInRef).each do |r|
132
150
  xml.financeInRef_ r
133
151
  end
134
152
  } if paymentsUuid.present?
@@ -1,41 +1,47 @@
1
- xml.paymentIn(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, sourceAgentUuid: sourceAgentUuid,
2
- targetStoreUuid: targetStoreUuid, sourceStoreUuid: sourceStoreUuid, applicable: applicable, projectUuid: projectUuid,
3
- contractUuid: contractUuid, moment: moment, targetAccountUuid: targetAccountUuid, sourceAccountUuid: sourceAccountUuid,
4
- payerVat: payerVat, retailStoreUuid: retailStoreUuid, currencyUuid: currencyUuid, rate: rate, vatIncluded: vatIncluded,
5
- employeeUuid: employeeUuid, expenseItemUuid: expenseItemUuid, incomingDate: incomingDate, incomingNumber: incomingNumber,
6
- paymentPurpose: paymentPurpose, vatSum: vatSum, commissionReportUuid: commissionReportUuid, customerOrderUuid: customerOrderUuid,
7
- factureOutUuid: factureOutUuid, invoiceOutUuid: invoiceOutUuid, purchaseReturnUuid: purchaseReturnUuid) {
1
+ xml.paymentIn(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, expenseItemUuid: expenseItemUuid, incomingDate: incomingDate,
6
+ incomingNumber: incomingNumber, paymentPurpose: paymentPurpose, vatSum: vatSum, commissionReportUuid: commissionReportUuid,
7
+ customerOrderUuid: customerOrderUuid, factureOutUuid: factureOutUuid, invoiceOutUuid: invoiceOutUuid, purchaseReturnUuid: purchaseReturnUuid) {
8
8
 
9
9
  xml.accountUuid_ accountUuid
10
10
  xml.accountId_ accountId
11
11
  xml.uuid_ uuid
12
12
  xml.groupUuid_ groupUuid
13
+ xml.ownerUid_ ownerUid
14
+ xml.shared_ shared
13
15
  xml.deleted_ deleted
14
16
  xml.code_ code
15
17
  xml.externalcode_ externalcode
16
18
  xml.description_ description
17
19
 
18
20
  to_a(:attribute).each do |a|
19
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
20
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
21
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
22
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
23
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
24
- goodUuid: a.goodUuid) {
21
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
22
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
23
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
24
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
25
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
25
26
 
26
27
  xml.accountUuid_ a.accountUuid
27
28
  xml.accountId_ a.accountId
28
29
  xml.uuid_ a.uuid
29
30
  xml.groupUuid_ a.groupUuid
31
+ xml.ownerUid_ a.ownerUid
32
+ xml.shared_ a.shared
30
33
  xml.deleted_ a.deleted
31
34
 
32
35
  a.to_a(:file).each do |f|
33
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
36
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
37
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
34
38
 
35
39
  xml.accountUuid_ f.accountUuid
36
40
  xml.accountId_ f.accountId
37
41
  xml.uuid_ f.uuid
38
42
  xml.groupUuid_ f.groupUuid
43
+ xml.ownerUid_ f.ownerUid
44
+ xml.shared_ f.shared
39
45
  xml.deleted_ f.deleted
40
46
  xml.code_ f.code
41
47
  xml.externalcode_ f.externalcode
@@ -47,12 +53,15 @@ xml.paymentIn(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid
47
53
  end
48
54
 
49
55
  to_a(:document) do |d|
50
- xml.document(name: d.name, created: d.created, filename: d.filename, miniatureUuid: d.miniatureUuid,
51
- emailedDate: d.emailedDate, publicId: d.publicId, operationUuid: d.operationUuid) {
56
+ xml.document(readMode: d.readMode, changeMode: d.changeMode, updated: d.updated, updatedBy: d.updatedBy, name: d.name,
57
+ created: d.created, filename: d.filename, miniatureUuid: d.miniatureUuid, emailedDate: d.emailedDate,
58
+ publicId: d.publicId, operationUuid: d.operationUuid) {
52
59
  xml.accountUuid_ d.accountUuid
53
60
  xml.accountId_ d.accountId
54
61
  xml.uuid_ d.uuid
55
62
  xml.groupUuid_ d.groupUuid
63
+ xml.ownerUid_ d.ownerUid
64
+ xml.shared_ d.shared
56
65
  xml.deleted_ d.deleted
57
66
  xml.code_ d.code
58
67
  xml.externalcode_ d.externalcode
@@ -1,39 +1,46 @@
1
- xml.supply(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, sourceAgentUuid: sourceAgentUuid,
2
- targetStoreUuid: targetStoreUuid, sourceStoreUuid: sourceStoreUuid, applicable: applicable, projectUuid: projectUuid,
3
- contractUuid: contractUuid, moment: moment, targetAccountUuid: targetAccountUuid, sourceAccountUuid: sourceAccountUuid,
4
- payerVat: payerVat, retailStoreUuid: retailStoreUuid, currencyUuid: currencyUuid, rate: rate, vatIncluded: vatIncluded,
5
- employeeUuid: employeeUuid, factureInUuid: factureInUuid, incomingDate: incomingDate, incomingNumber: incomingNumber,
6
- overheadDistribution: overheadDistribution, purchaseOrderUuid: purchaseOrderUuid) {
1
+ xml.supply(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, factureInUuid: factureInUuid, incomingDate: incomingDate,
6
+ incomingNumber: incomingNumber, overheadDistribution: overheadDistribution, purchaseOrderUuid: purchaseOrderUuid) {
7
7
 
8
8
  xml.accountUuid_ accountUuid
9
9
  xml.accountId_ accountId
10
10
  xml.uuid_ uuid
11
11
  xml.groupUuid_ groupUuid
12
+ xml.ownerUid_ ownerUid
13
+ xml.shared_ shared
12
14
  xml.deleted_ deleted
13
15
  xml.code_ code
14
16
  xml.externalcode_ externalcode
15
17
  xml.description_ description
16
18
 
17
19
  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) {
20
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
21
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
22
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
23
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
24
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
24
25
 
25
26
  xml.accountUuid_ a.accountUuid
26
27
  xml.accountId_ a.accountId
27
28
  xml.uuid_ a.uuid
28
29
  xml.groupUuid_ a.groupUuid
30
+ xml.ownerUid_ a.ownerUid
31
+ xml.shared_ a.shared
29
32
  xml.deleted_ a.deleted
33
+
30
34
  a.to_a(:file).each do |f|
31
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
35
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
36
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
32
37
 
33
38
  xml.accountUuid_ f.accountUuid
34
39
  xml.accountId_ f.accountId
35
40
  xml.uuid_ f.uuid
36
41
  xml.groupUuid_ f.groupUuid
42
+ xml.ownerUid_ f.ownerUid
43
+ xml.shared_ f.shared
37
44
  xml.deleted_ f.deleted
38
45
  xml.code_ f.code
39
46
  xml.externalcode_ f.externalcode
@@ -44,13 +51,16 @@ xml.supply(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
44
51
  }
45
52
  end
46
53
 
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) {
54
+ to_a(:document) do |d|
55
+ xml.document(readMode: d.readMode, changeMode: d.changeMode, updated: d.updated, updatedBy: d.updatedBy, name: d.name,
56
+ created: d.created, filename: d.filename, miniatureUuid: d.miniatureUuid, emailedDate: d.emailedDate,
57
+ publicId: d.publicId, operationUuid: d.operationUuid) {
50
58
  xml.accountUuid_ d.accountUuid
51
59
  xml.accountId_ d.accountId
52
60
  xml.uuid_ d.uuid
53
61
  xml.groupUuid_ d.groupUuid
62
+ xml.ownerUid_ d.ownerUid
63
+ xml.shared_ d.shared
54
64
  xml.deleted_ d.deleted
55
65
  xml.code_ d.code
56
66
  xml.externalcode_ d.externalcode
@@ -76,51 +86,60 @@ xml.supply(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
76
86
  } if paymentsUuid.present?
77
87
 
78
88
  to_a(:shipmentIn).each do |s|
79
- xml.shipmentIn(discount: s.discount, quantity: s.quantity, goodPackUuid: s.goodPackUuid, consignmentUuid: s.consignmentUuid,
80
- goodUuid: s.goodUuid, slotUuid: s.slotUuid, vat: s.vat, countryUuid: s.countryUuid, gtdUuid: s.gtdUuid,
81
- overhead: s.overhead) {
89
+ xml.shipmentIn(readMode: s.readMode, changeMode: s.changeMode, discount: s.discount, quantity: s.quantity, goodPackUuid: s.goodPackUuid,
90
+ consignmentUuid: s.consignmentUuid, goodUuid: s.goodUuid, slotUuid: s.slotUuid, vat: s.vat, countryUuid: s.countryUuid,
91
+ gtdUuid: s.gtdUuid, overhead: s.overhead) {
82
92
 
83
93
  xml.accountUuid_ s.accountUuid
84
94
  xml.accountId_ s.accountId
85
95
  xml.uuid_ s.uuid
86
96
  xml.groupUuid_ s.groupUuid
97
+ xml.ownerUid_ s.ownerUid
98
+ xml.shared_ s.shared
87
99
 
88
100
  xml.basePrice(sum: s.basePrice.sum, sumInCurrency: s.basePrice.sumInCurrency)
89
101
  xml.price(sum: s.price.sum, sumInCurrency: s.price.sumInCurrency)
90
102
 
91
103
  xml.things {
92
- s.to_a(:thingsRef).each do |t|
104
+ s.to_a(:thingRef).each do |t|
105
+ xml.thingRef(readMode: t.readMode, changeMode: t.changeMode, updated: t.updated, updatedBy: t.updatedBy, name: t.name, goodUuid: t.goodUuid) {
93
106
 
94
- xml.thingRef(name: t.name, goodUuid: t.goodUuid) {
95
107
  xml.accountUuid_ t.accountUuid
96
108
  xml.accountId_ t.accountId
97
109
  xml.uuid_ t.uuid
98
110
  xml.groupUuid_ t.groupUuid
111
+ xml.ownerUid_ t.ownerUid
112
+ xml.shared_ t.shared
99
113
  xml.deleted_ t.deleted
100
114
  xml.code_ t.code
101
115
  xml.externalcode_ t.externalcode
102
116
  xml.description_ t.description
103
117
 
104
118
  t.to_a(:attribute).each do |a|
105
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
106
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
107
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
108
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
109
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
110
- goodUuid: a.goodUuid) {
119
+ xml.attribute(readMode: a.readMode, changeMode: a.changeMode, updated: a.updated, updatedBy: a.updatedBy, metadataUuid: a.metadataUuid,
120
+ valueText: a.valueText, valueString: a.valueString, doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
121
+ timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid, goodValueUuid: a.goodValueUuid,
122
+ placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid, contractValueUuid: a.contractValueUuid,
123
+ projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid, operationUuid: a.operationUuid) {
111
124
 
112
125
  xml.accountUuid_ a.accountUuid
113
126
  xml.accountId_ a.accountId
114
127
  xml.uuid_ a.uuid
115
128
  xml.groupUuid_ a.groupUuid
129
+ xml.ownerUid_ a.ownerUid
130
+ xml.shared_ a.shared
116
131
  xml.deleted_ a.deleted
132
+
117
133
  a.to_a(:file).each do |f|
118
- xml.file(name: f.name, created: f.created, filename: f.filename, miniatureUuid: f.miniatureUuid) {
134
+ xml.file(readMode: f.readMode, changeMode: f.changeMode, updated: f.updated, updatedBy: f.updatedBy, name: f.name, created: f.created,
135
+ filename: f.filename, miniatureUuid: f.miniatureUuid) {
119
136
 
120
137
  xml.accountUuid_ f.accountUuid
121
138
  xml.accountId_ f.accountId
122
139
  xml.uuid_ f.uuid
123
140
  xml.groupUuid_ f.groupUuid
141
+ xml.ownerUid_ f.ownerUid
142
+ xml.shared_ f.shared
124
143
  xml.deleted_ f.deleted
125
144
  xml.code_ f.code
126
145
  xml.externalcode_ f.externalcode
@@ -1,33 +1,41 @@
1
- xml.warehouse(updated: updated, updatedBy: updatedBy, name: name, agentUuid: agentUuid, archived: archived, parentUuid: parentUuid) {
1
+ xml.warehouse(readMode: readMode, changeMode: changeMode, updated: updated, updatedBy: updatedBy, name: name, archived: archived, parentUuid: parentUuid) {
2
+
2
3
  xml.accountUuid_ accountUuid
3
4
  xml.accountId_ accountId
4
5
  xml.uuid_ uuid
5
6
  xml.groupUuid_ groupUuid
7
+ xml.ownerUid_ ownerUid
8
+ xml.shared_ shared
6
9
  xml.deleted_ deleted
7
10
  xml.code_ code
8
11
  xml.externalcode_ externalcode
9
12
  xml.description_ description
10
13
 
11
14
  to_a(:attribute).each do |a|
12
- xml.attribute(metadataUuid: a.metadataUuid, valueText: a.valueText, valueString: a.valueString,
13
- doubleValue: a.doubleValue, longValue: a.longValue, booleanValue: a.booleanValue,
14
- timeValue: a.timeValue, entityValueUuid: a.entityValueUuid, agentValueUuid: a.agentValueUuid,
15
- goodValueUuid: a.goodValueUuid, placeValueUuid: a.placeValueUuid, consignmentValueUuid: a.consignmentValueUuid,
16
- contractValueUuid: a.contractValueUuid, projectValueUuid: a.projectValueUuid, employeeValueUuid: a.employeeValueUuid,
17
- 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) {
18
20
 
19
21
  xml.accountUuid_ a.accountUuid
20
22
  xml.accountId_ a.accountId
21
23
  xml.uuid_ a.uuid
22
24
  xml.groupUuid_ a.groupUuid
25
+ xml.ownerUid_ a.ownerUid
26
+ xml.shared_ a.shared
23
27
  xml.deleted_ a.deleted
28
+
24
29
  a.to_a(:file).each do |f|
25
- 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) {
26
32
 
27
33
  xml.accountUuid_ f.accountUuid
28
34
  xml.accountId_ f.accountId
29
35
  xml.uuid_ f.uuid
30
36
  xml.groupUuid_ f.groupUuid
37
+ xml.ownerUid_ f.ownerUid
38
+ xml.shared_ f.shared
31
39
  xml.deleted_ f.deleted
32
40
  xml.code_ f.code
33
41
  xml.externalcode_ f.externalcode
@@ -38,18 +46,22 @@ xml.warehouse(updated: updated, updatedBy: updatedBy, name: name, agentUuid: age
38
46
  }
39
47
  end
40
48
 
41
- xml.contact(address: contact.address, phones: contact.phones, faxes: contact.faxes, mobiles: contact.mobiles, email: contact.email)
49
+ xml.contact(address: contact.address, phones: contact.phones, faxes: contact.faxes, mobiles: contact.mobiles, email: contact.email) if contact.present?
42
50
 
43
- to_a(:slots).each do |s|
44
- xml.slot(updated: s.updated, updatedBy: s.updatedBy, name: s.name, warehouseUuid: s.warehouseUuid) {
45
- xml.accountUuid_ s.accountUuid
46
- xml.accountId_ s.accountId
47
- xml.uuid_ s.uuid
48
- xml.groupUuid_ s.groupUuid
49
- xml.deleted_ s.deleted
50
- xml.code_ s.code
51
- xml.externalcode_ s.externalcode
52
- xml.description_ s.description
53
- }
54
- end
51
+ xml.slots {
52
+ slots.to_a(:slot).each do |s|
53
+ xml.slot(readMode: s.readMode, changeMode: s.changeMode, updated: s.updated, updatedBy: s.updatedBy, name: s.name, warehouseUuid: s.warehouseUuid) {
54
+ xml.accountUuid_ s.accountUuid
55
+ xml.accountId_ s.accountId
56
+ xml.uuid_ s.uuid
57
+ xml.groupUuid_ s.groupUuid
58
+ xml.ownerUid_ s.ownerUid
59
+ xml.shared_ s.shared
60
+ xml.deleted_ s.deleted
61
+ xml.code_ s.code
62
+ xml.externalcode_ s.externalcode
63
+ xml.description_ s.description
64
+ }
65
+ end
66
+ } if slots.present?
55
67
  }
@@ -1,3 +1,3 @@
1
1
  module MoySklad
2
- VERSION = '1.0.0.rc10'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moy_sklad
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc10
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - uno4ki
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-16 00:00:00.000000000 Z
12
+ date: 2015-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -122,16 +122,19 @@ files:
122
122
  - README.md
123
123
  - Rakefile
124
124
  - bin/gencountry
125
+ - doc/xml/CashIn.xml
125
126
  - doc/xml/Company.xml
126
127
  - doc/xml/Currency.xml
127
128
  - doc/xml/CustomEntity.xml
128
129
  - doc/xml/CustomerOrder.xml
130
+ - doc/xml/Demand.xml
129
131
  - doc/xml/Good.xml
130
132
  - doc/xml/GoodFolder.xml
131
133
  - doc/xml/InvoiceOut.xml
132
134
  - doc/xml/MOYsklad.xsd
133
135
  - doc/xml/PaymentIn.xml
134
136
  - doc/xml/README.md
137
+ - doc/xml/Supply.xml
135
138
  - doc/xml/Warehouse.xml
136
139
  - lib/moy_sklad.rb
137
140
  - lib/moy_sklad/client.rb
@@ -202,9 +205,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
205
  version: '0'
203
206
  required_rubygems_version: !ruby/object:Gem::Requirement
204
207
  requirements:
205
- - - ">"
208
+ - - ">="
206
209
  - !ruby/object:Gem::Version
207
- version: 1.3.1
210
+ version: '0'
208
211
  requirements: []
209
212
  rubyforge_project:
210
213
  rubygems_version: 2.4.7