rvista 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/testtask'
5
5
  require "rake/gempackagetask"
6
6
  require "rubygems"
7
7
 
8
- PKG_VERSION = "0.5.4"
8
+ PKG_VERSION = "0.5.5"
9
9
  PKG_NAME = "rvista"
10
10
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
11
11
 
data/lib/rvista/poa.rb CHANGED
@@ -54,8 +54,10 @@ module RVista
54
54
  # message line items
55
55
  @items.each { |item| msg << item.to_s << "\n"}
56
56
 
57
+ total_qty = @items.inject(0) { |sum, item| sum+item.demand_qty }
58
+
57
59
  # message summary
58
- msg << "S,#{@items.size.to_s},\n"
60
+ msg << "S,#{@items.size.to_s},#{total_qty}\n"
59
61
 
60
62
  return msg
61
63
  end
@@ -1,4 +1,4 @@
1
1
  H,1111111,2222222,,,,,1234,060915,,071010,071030,SP,1111111,Some Store
2
2
  D,1,0701180358,,DIGGING TO AMERICA,10.00,1,0,10.00,,1111111,Some Store,,1,01,1,11.00,40.00,20071015,
3
3
  D,2,071267344X,,THE LAST ENEMY,15.00,1,0,10.00,,1111111,Some Store,,7,02,5,16.50,50.00,20071015,
4
- S,2,
4
+ S,2,6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rvista
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Healy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-07 00:00:00 +11:00
12
+ date: 2008-10-15 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency