diff options
| author | Charlotte Koch <charlotte@magentastripe.com> | 2024-09-12 12:26:40 -0700 |
|---|---|---|
| committer | Charlotte Koch <charlotte@magentastripe.com> | 2024-09-12 12:26:40 -0700 |
| commit | 9aeac0aa0ba5e2ce385095d904457d5985f2506f (patch) | |
| tree | 24640fefd0c42bff052d8fa7f55bf1861430eba1 /packingslip.rb | |
| parent | 61b79b83cd227340488e69465cb50df4a0a309f5 (diff) | |
Diffstat (limited to 'packingslip.rb')
| -rw-r--r-- | packingslip.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packingslip.rb b/packingslip.rb index 7373222..a5e6513 100644 --- a/packingslip.rb +++ b/packingslip.rb @@ -2,6 +2,8 @@ # MAGENTA STRIPE MEDIA # Packing Slip Generator Tool # +# Charlotte Koch <charlotte@magentastripe.com> +# require 'optparse' require 'prawn' @@ -106,7 +108,7 @@ class MagentaStripeMedia::Manifest @business_info = YAML.load(File.read(kwargs[:business_info])) details = YAML.load(File.read(kwargs[:manifest_file])) - @items = details["manifest"].map do |data| + @items = details["items"].map do |data| catalog_no = sprintf("MSM-%05d", data["catalog_no"]) the_product = @catalog.detect { |product| product["CATALOG-NO"] == catalog_no } |
