Hi all, we are facing a problem and we are wonderi...
# support
c
Hi all, we are facing a problem and we are wondering if this is a bug. The problem happens when there’s more than one country, with different VAT, and no price is set for the product. This line gets executed before the validation checks that the amount is present, and since
amount
is nil,
net_amount
crashes. I believe that: • the implementation of
net_amount
should check if
amount.nil?
and not crash, but return
nil
when
amount
is
nil
. • the generation of vat prices should be suspended if amount is
nil
Opinions? Shall I open a PR?