moy_sklad 1.0.0.beta4 → 1.0.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56580c50ba831d4d4ae94fbb263f6112fb62caa1
4
- data.tar.gz: 328ac493e664135885acc87257cde43b0bdbceb3
3
+ metadata.gz: 1e531f8d56f6003c7eec36ddc04729d57ad8a43c
4
+ data.tar.gz: 8047a4c134d73fec5941a71f9d845ab407f0a375
5
5
  SHA512:
6
- metadata.gz: 64d7b1509ac96759ae3b5314b48993d5e99e87f0c791bc183642d3163dc7cd974370db8bcc0ea14d00002b319b6d5aa8c0d3fa0d303589ffb016c8719173b740
7
- data.tar.gz: d703d0ef50df96f23aa0335983d0bfd314c5facc47cb1aa26a978d27e8e75e188035668806c0ee3f7e872dbf87b2f8ecf20b7e8be720325d9101eca3e537407b
6
+ metadata.gz: 21b5dc66c5f9a30e2b721e113ecc6189eaa47461c32b9cc9c4469e00f730c0960b8e11560a2a1fab143318c54777065169fb56d6b9b05112d9d3aec5f5447082
7
+ data.tar.gz: 4f0e323ac6f42af0183b0141cfdc4be0b9b2b11a56b5aa74167edfb474c63cc0f6501367bcc705236532aaa6d1c76ed82e7610676dae44a335d19b29a9e50c73
@@ -64,8 +64,8 @@ xml.cashIn(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
64
64
  xml.sum(sum: sum.sum, sumInCurrency: sum.sumInCurrency)
65
65
 
66
66
  xml.demandsUuid {
67
- to_a(:demandsUuid).each do |r|
67
+ demandsUuid.to_a(:demandRef).each do |r|
68
68
  xml.demandRef_ r
69
69
  end
70
- }
70
+ } unless demandsUuid.empty?
71
71
  }
@@ -69,22 +69,22 @@ xml.customerOrder(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgent
69
69
  }
70
70
 
71
71
  xml.invoicesOutUuid {
72
- to_a(:invoicesOutUuid).each do |r|
72
+ invoicesOutUuid.to_a(:invoiceOutRef).each do |r|
73
73
  xml.invoiceOutRef_ r
74
74
  end
75
- }
75
+ } unless invoicesOutUuid.empty?
76
76
 
77
77
  xml.paymentsUuid {
78
- to_a(:paymentsUuid).each do |r|
79
- xml.financeInRef r
78
+ paymentsUuid.to_a(:financeInRef).each do |r|
79
+ xml.financeInRef_ r
80
80
  end
81
- }
81
+ } unless paymentsUuid.empty?
82
82
 
83
83
  xml.purchaseOrdersUuid {
84
- to_a(:purchaseOrdersUuid).each do |r|
85
- xml.purchaseOrderRef r
84
+ purchaseOrdersUuid.to_a(:purchaseOrderRef).each do |r|
85
+ xml.purchaseOrderRef_ r
86
86
  end
87
- }
87
+ } unless purchaseOrdersUuid.empty?
88
88
 
89
89
 
90
90
  to_a(:customerOrderPosition).each do |o|
@@ -62,16 +62,16 @@ xml.demand(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
62
62
  xml.sum(sum: sum.sum, sumInCurrency: sum.sumInCurrency)
63
63
 
64
64
  xml.invoicesOutUuid {
65
- to_a(:invoicesOutUuid).each do |r|
65
+ invoicesOutUuid.to_a(:invoiceOutRef).each do |r|
66
66
  xml.invoiceOutRef_ r
67
67
  end
68
- }
68
+ } unless invoicesOutUuid.empty?
69
69
 
70
70
  xml.paymentsUuid {
71
- to_a(:paymentsUuid).each do |r|
72
- xml.financeInRef r
71
+ paymentsUuid.to_a(:financeInRef).each do |r|
72
+ xml.financeInRef_ r
73
73
  end
74
- }
74
+ } unless paymentsUuid.empty?
75
75
 
76
76
  to_a(:shipmentOut).each do |s|
77
77
  xml.shipmentOut(discount: s.discount, quantity: s.quantity, goodPackUuid: s.goodPackUuid, consignmentUuid: s.consignmentUuid,
@@ -136,10 +136,10 @@ xml.demand(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
136
136
 
137
137
 
138
138
  xml.salesReturnsUuid {
139
- to_a(:salesReturnsUuid).each do |r|
140
- xml.salesReturnRef r
139
+ salesReturnsUuid.to_a(:salesReturnRef).each do |r|
140
+ xml.salesReturnRef_ r
141
141
  end
142
- }
142
+ } unless salesReturnsUuid.empty?
143
143
 
144
144
  xml.extension(consigneeUuid: consigneeUuid, opened: opened, carrierUuid: carrierUuid, loadName: loadName,
145
145
  consignorIndication: consignorIndication, transportFacility: transportFacility, goodPackQuantity: goodPackQuantity,
@@ -43,12 +43,14 @@ xml.good(name: name, archived: archived, parentUuid: parentUuid, productCode: pr
43
43
  }
44
44
  end
45
45
 
46
- xml.barcode(barcode: barcode.barcode, barcodeType: barcode.barcodeType) {
47
- xml.accountUuid_ barcode.accountUuid
48
- xml.accountId_ barcode.accountId
49
- xml.uuid_ barcode.uuid
50
- xml.groupUuid_ barcode.groupUuid
51
- } unless xml.barcode.empty?
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
52
54
 
53
55
  xml.salePrices {
54
56
  salePrices.to_a(:price).each do |p|
@@ -64,8 +64,8 @@ xml.paymentIn(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid
64
64
  xml.sum(sum: sum.sum, sumInCurrency: sum.sumInCurrency)
65
65
 
66
66
  xml.demandsUuid {
67
- to_a(:demandsUuid).each do |r|
67
+ demandsUuid.to_a(:demandRef).each do |r|
68
68
  xml.demandRef_ r
69
69
  end
70
- }
70
+ } unless demandsUuid.empty?
71
71
  }
@@ -62,18 +62,18 @@ xml.supply(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
62
62
  xml.sum(sum: sum.sum, sumInCurrency: sum.sumInCurrency)
63
63
 
64
64
  xml.invoicesInUuid {
65
- to_a(:invoicesInUuid).each do |r|
65
+ invoicesInUuid.to_a(:invoiceInRef).each do |r|
66
66
  xml.invoiceInRef_ r
67
67
  end
68
- }
68
+ } unless invoicesInUuid.empty?
69
69
 
70
70
  xml.overhead(sum: overhead.sum, sumInCurrency: overhead.sumInCurrency)
71
71
 
72
72
  xml.paymentsUuid {
73
- to_a(:paymentsUuid).each do |r|
74
- xml.financeInRef r
73
+ paymentsUuid.to_a(:financeInRef).each do |r|
74
+ xml.financeInRef_ r
75
75
  end
76
- }
76
+ } unless paymentsUuid.empty?
77
77
 
78
78
  to_a(:shipmentIn).each do |s|
79
79
  xml.shipmentIn(discount: s.discount, quantity: s.quantity, goodPackUuid: s.goodPackUuid, consignmentUuid: s.consignmentUuid,
@@ -137,8 +137,8 @@ xml.supply(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
137
137
  end
138
138
 
139
139
  xml.purchaseReturnsUuid {
140
- to_a(:purchaseReturnsUuid).each do |r|
141
- xml.purchaseReturnRef r
140
+ purchaseReturnsUuid.to_a(:purchaseReturnRef).each do |r|
141
+ xml.purchaseReturnRef_ r
142
142
  end
143
- }
143
+ } unless purchaseReturnsUuid.empty?
144
144
  }
@@ -1,3 +1,3 @@
1
1
  module MoySklad
2
- VERSION = '1.0.0.beta4'
2
+ VERSION = '1.0.0.beta5'
3
3
  end
data/moy_sklad.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['i.have@no.mail', 'sergey.zyablitsky@gmail.com']
11
11
  spec.description = 'MoySklad API'
12
12
  spec.summary = 'MoySklad API wrapper'
13
- spec.homepage = 'https://github.com/uno4ki/moy_sklad'
13
+ spec.homepage = 'https://github.com/the-furnish/moy_sklad'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
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.beta4
4
+ version: 1.0.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - uno4ki
@@ -175,7 +175,7 @@ files:
175
175
  - spec/unit/good_spec.rb
176
176
  - spec/unit/payment_in_spec.rb
177
177
  - spec/unit/supply_spec.rb
178
- homepage: https://github.com/uno4ki/moy_sklad
178
+ homepage: https://github.com/the-furnish/moy_sklad
179
179
  licenses:
180
180
  - MIT
181
181
  metadata: {}