Closed zliu1020-zz closed 5 years ago
Not really following what's going on in this PR. Could you explain in more detail?
wait now i get it
This change fixes the behaviour when it's a Hash
but the value as float is negative. Right?
To tophat, try running the file from Wolz again. We should no longer see any error from discount
pipeline stage this time.
This change fixes the behaviour when it's a
Hash
but the value as float is negative. Right?
@JordanVerasamy This change fixes the behaviour when it's a Hash but the value as float is 0. I doubt negative discount percentage is actually meaningful and I've never seen it before. But you get the general idea.
Right, sorry, when I said negative I really meant non-positive. My b.
What it does and why:
Properly handle the case where the
line_items
is a singular hash instead of an array.Checklist:
Related issues:
Closes: https://github.com/Shopify/shopify_transporter/issues/124