You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue occurred using Solidus 2.4 and a version of this gem with the following changes.
When using a Spree::Promotion that contains the "Make all shipments free" action that automatically applies to orders that meet the Rules, it causes the following error response to be logged and no tax to be applied to the order. This might be limited to orders that contain no other discounts.
[AVATAX] Get Tax Error {"error"=>{"code"=>"NoLinesDiscounted", "message"=>"Transaction has no lines which are discounted.", "target"=>"IncorrectData", "details"=>[{"code"=>"NoLinesDiscounted", "number"=>190, "message"=>"Transaction has no lines which are discounted.", "description"=>"The CreateTransactionModel object with discount amount set must have at least one line which is discounted.", "faultCode"=>"Client", "helpLink"=>"http://developer.avalara.com/avatax/errors/NoLinesDiscounted", "severity"=>"Error"}, {"code"=>"NoLinesDiscounted", "number"=>190, "message"=>"Transaction has no lines which are discounted.", "description"=>"The CreateTransactionModel object with discount amount set must have at least one line which is discounted.", "faultCode"=>"Client", "helpLink"=>"http://developer.avalara.com/avatax/errors/NoLinesDiscounted", "severity"=>"Error"}]}}
Note: the above shipFrom address has been modified.
In the request hash there is a discount set at the highest level, however all of the items show that discounted is set to false. This value seems to be hardcoded to false for all shipments sent to AvaTax.
In the above order in Solidus, the Spree::Shipment itself had a before promo total of 9.99 with a 9.99 discount applied by the Free Shipping promotion.
Looking at SolidusAvataxCertified::Line, I'm unsure if #shipment_line should be updated to reflect itself being discounted, or if the the discount key should have its calculation updated in SolidusAvataxCertified::Request::GetTax – or something else entirely.
The text was updated successfully, but these errors were encountered:
This issue occurred using Solidus 2.4 and a version of this gem with the following changes.
When using a
Spree::Promotion
that contains the "Make all shipments free" action that automatically applies to orders that meet the Rules, it causes the following error response to be logged and no tax to be applied to the order. This might be limited to orders that contain no other discounts.Here's the corresponding request hash:
Note: the above
shipFrom
address has been modified.In the request hash there is a
discount
set at the highest level, however all of the items show thatdiscounted
is set tofalse
. This value seems to be hardcoded tofalse
for all shipments sent to AvaTax.In the above order in Solidus, the
Spree::Shipment
itself had a before promo total of 9.99 with a 9.99 discount applied by the Free Shipping promotion.Looking at
SolidusAvataxCertified::Line
, I'm unsure if#shipment_line
should be updated to reflect itself being discounted, or if the thediscount
key should have its calculation updated inSolidusAvataxCertified::Request::GetTax
– or something else entirely.The text was updated successfully, but these errors were encountered: