This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# used to make a LOT of data nice and easy to loop through in the view | |
orders = orders.group_by(&:ItemCode) | |
orders.each do |key, order| | |
orders[key] = order.group_by(&:year) | |
orders[key].each do |k, year| | |
orders[key][k] = year.group_by(&:month) | |
total = 0 | |
orders[key][k].each do |m, data| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'soap/wsdlDriver' | |
class Login | |
attr_accessor :userName | |
attr_accessor :password | |
def initialize(userName = nil, password = nil) | |
@userName = userName | |
@password = password |
NewerOlder