Sha256: f2d33f6cafae06264b84a66a02aabbcbe74e99c963dcee3cac7a1caabfb90389
Contents?: true
Size: 788 Bytes
Versions: 5
Compression:
Stored size: 788 Bytes
Contents
module Skr module Concerns module SO module Lines 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
5 entries across 5 versions & 2 rubygems