Sha256: d0a0d557388e2d7e948c8aa0b34dae5fb544144fa5db4938b91390deb0dd175d
Contents?: true
Size: 1003 Bytes
Versions: 4
Compression:
Stored size: 1003 Bytes
Contents
module Skr module Concerns module SO module Lines def other_charge select{|l| l.sku.is_other_charge? } end def regular reject{|l| l.sku.is_other_charge? } end def set_ship_qty each{|l| l.qty_to_ship = l.qty } end def eq_qty if proxy_association.loaded? inject(0){ | sum, sol | sum + (sol.eq_qty*uom_size) } else sum('qty*uom_size') end end def eq_qty_allocated if proxy_association.loaded? inject(0){ | sum, sol | sum + (sol.qty_allocated * uom_size) } else sum('qty_allocated*uom_size') end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems