Sha256: ab967f09b44f26266587e4f8c46421ff5162924a97fd86fa67b3423bc6012817
Contents?: true
Size: 433 Bytes
Versions: 4
Compression:
Stored size: 433 Bytes
Contents
Spree::LineItem.class_eval do def to_hash { 'Index' => id, 'Name' => name, 'ItemID' => sku, 'Price' => price.to_s, 'Qty' => quantity, 'TaxCategory' => tax_category } end def avatax_cache_key key = ['Spree::LineItem'] key << self.id key << self.quantity key << self.price key << self.promo_total key.join('-') end def avatax_line_code 'LI' end end
Version data entries
4 entries across 4 versions & 1 rubygems