openils-mapper 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/openils/mapper.rb +3 -3
  2. metadata +4 -4
@@ -3,7 +3,7 @@ require 'edi/mapper'
3
3
  module OpenILS
4
4
 
5
5
  class Mapper < EDI::E::Mapper
6
- VERSION = '0.9.3'
6
+ VERSION = '0.9.4'
7
7
  end
8
8
 
9
9
  end
@@ -30,8 +30,8 @@ OpenILS::Mapper.map 'order' do |mapper,key,value|
30
30
  value['vendor'].to_a.each { |vendor| mapper.add('vendor',vendor) }
31
31
  mapper.add('currency',value['currency'])
32
32
  value['items'].each_with_index { |item,index|
33
- item['line_index'] = index + 1
34
- item['line_number'] = "#{value['po_number']}/#{index+1}" if item['line_number'].nil?
33
+ item['line_index'] = index + 1 if item['line_index'].nil?
34
+ item['line_number'] = "#{value['po_number']}/#{item['line_index']}" if item['line_number'].nil?
35
35
  mapper.add('item', item)
36
36
  }
37
37
  mapper.add("UNS", {})
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openils-mapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 3
10
- version: 0.9.3
9
+ - 4
10
+ version: 0.9.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael B. Klein
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-09 00:00:00 -07:00
18
+ date: 2010-07-27 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency