This is in a shared library, I have to do this backward compatibility.
Original method
def rrp_exc_sales_tax=(num)
price_set(1, num, currency_code)
end
Need to improve and add currency_code
def rrp_exc_sales_tax=(num, currency_code=nil)
print "num=#{num}"
print "currency_code=#{currency_code}"
price_set(1, num, currency_code)
end
some_class.rrp_exc_sales_tax=2, "USD"
num=[2, "USD"]
currency_code=
No value is assigned to currency_code
source
share