moy_sklad 1.0.0.beta5 → 1.0.0.beta6

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: 1e531f8d56f6003c7eec36ddc04729d57ad8a43c
4
- data.tar.gz: 8047a4c134d73fec5941a71f9d845ab407f0a375
3
+ metadata.gz: 78edcab08eb295e43cbd6e3f2b0518bd4a3ff1e4
4
+ data.tar.gz: f4df7a100895db1792fd39ce3ce042f2fc4fd37f
5
5
  SHA512:
6
- metadata.gz: 21b5dc66c5f9a30e2b721e113ecc6189eaa47461c32b9cc9c4469e00f730c0960b8e11560a2a1fab143318c54777065169fb56d6b9b05112d9d3aec5f5447082
7
- data.tar.gz: 4f0e323ac6f42af0183b0141cfdc4be0b9b2b11a56b5aa74167edfb474c63cc0f6501367bcc705236532aaa6d1c76ed82e7610676dae44a335d19b29a9e50c73
6
+ metadata.gz: 6f52f147035767c11e47079f38c44f95cf882e65db9daf132467a5d67948ab36cdcf64a54fb13f05354bb0a80acc75a00c323694f829ed5c40a2723d63136987
7
+ data.tar.gz: ed5c6d948468b59af5dade7ac18141954c16f7cc17e77acac3a2c40f9cdc006092546e00aa495d6e479e388f27292323a39b1ee71ec757df907a1045e6309592
@@ -67,5 +67,5 @@ xml.cashIn(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
67
67
  demandsUuid.to_a(:demandRef).each do |r|
68
68
  xml.demandRef_ r
69
69
  end
70
- } unless demandsUuid.empty?
70
+ } if demandsUuid.present?
71
71
  }
@@ -56,8 +56,8 @@ xml.company(name: name, discount: discount, autoDiscount: autoDiscount, discoun
56
56
  xml.uuid_ requisite.bankAccount.uuid
57
57
  xml.groupUuid_ requisite.bankAccount.groupUuid
58
58
  xml.deleted_ requisite.bankAccount.deleted
59
- } unless requisite.bankAccount.empty?
60
- } unless requisite.empty?
59
+ } if requisite.bankAccount.present?
60
+ } if requisite.present?
61
61
 
62
62
  to_a(:bankAccount).each do |b|
63
63
  xml.bankAccount(accountNumber: b.accountNumber, bankLocation: b.bankLocation, bankName: b.bankName, bic: b.bic,
@@ -72,19 +72,19 @@ xml.customerOrder(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgent
72
72
  invoicesOutUuid.to_a(:invoiceOutRef).each do |r|
73
73
  xml.invoiceOutRef_ r
74
74
  end
75
- } unless invoicesOutUuid.empty?
75
+ } if invoicesOutUuid.present?
76
76
 
77
77
  xml.paymentsUuid {
78
78
  paymentsUuid.to_a(:financeInRef).each do |r|
79
79
  xml.financeInRef_ r
80
80
  end
81
- } unless paymentsUuid.empty?
81
+ } if paymentsUuid.present?
82
82
 
83
83
  xml.purchaseOrdersUuid {
84
84
  purchaseOrdersUuid.to_a(:purchaseOrderRef).each do |r|
85
85
  xml.purchaseOrderRef_ r
86
86
  end
87
- } unless purchaseOrdersUuid.empty?
87
+ } if purchaseOrdersUuid.present?
88
88
 
89
89
 
90
90
  to_a(:customerOrderPosition).each do |o|
@@ -65,13 +65,13 @@ xml.demand(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
65
65
  invoicesOutUuid.to_a(:invoiceOutRef).each do |r|
66
66
  xml.invoiceOutRef_ r
67
67
  end
68
- } unless invoicesOutUuid.empty?
68
+ } if invoicesOutUuid.present?
69
69
 
70
70
  xml.paymentsUuid {
71
71
  paymentsUuid.to_a(:financeInRef).each do |r|
72
72
  xml.financeInRef_ r
73
73
  end
74
- } unless paymentsUuid.empty?
74
+ } if paymentsUuid.present?
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,
@@ -139,7 +139,7 @@ xml.demand(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
139
139
  salesReturnsUuid.to_a(:salesReturnRef).each do |r|
140
140
  xml.salesReturnRef_ r
141
141
  end
142
- } unless salesReturnsUuid.empty?
142
+ } if salesReturnsUuid.present?
143
143
 
144
144
  xml.extension(consigneeUuid: consigneeUuid, opened: opened, carrierUuid: carrierUuid, loadName: loadName,
145
145
  consignorIndication: consignorIndication, transportFacility: transportFacility, goodPackQuantity: goodPackQuantity,
@@ -67,5 +67,5 @@ xml.paymentIn(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid
67
67
  demandsUuid.to_a(:demandRef).each do |r|
68
68
  xml.demandRef_ r
69
69
  end
70
- } unless demandsUuid.empty?
70
+ } if demandsUuid.present?
71
71
  }
@@ -65,7 +65,7 @@ xml.supply(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
65
65
  invoicesInUuid.to_a(:invoiceInRef).each do |r|
66
66
  xml.invoiceInRef_ r
67
67
  end
68
- } unless invoicesInUuid.empty?
68
+ } if invoicesInUuid.present?
69
69
 
70
70
  xml.overhead(sum: overhead.sum, sumInCurrency: overhead.sumInCurrency)
71
71
 
@@ -73,7 +73,7 @@ xml.supply(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
73
73
  paymentsUuid.to_a(:financeInRef).each do |r|
74
74
  xml.financeInRef_ r
75
75
  end
76
- } unless paymentsUuid.empty?
76
+ } if paymentsUuid.present?
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,
@@ -140,5 +140,5 @@ xml.supply(name: name, stateUuid: stateUuid, targetAgentUuid: targetAgentUuid, s
140
140
  purchaseReturnsUuid.to_a(:purchaseReturnRef).each do |r|
141
141
  xml.purchaseReturnRef_ r
142
142
  end
143
- } unless purchaseReturnsUuid.empty?
143
+ } if purchaseReturnsUuid.present?
144
144
  }
@@ -1,3 +1,3 @@
1
1
  module MoySklad
2
- VERSION = '1.0.0.beta5'
2
+ VERSION = '1.0.0.beta6'
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.beta5
4
+ version: 1.0.0.beta6
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: 2014-12-04 00:00:00.000000000 Z
12
+ date: 2014-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler