Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logs when we found isFee from Avalara response #1638

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

krzysztofzuraw
Copy link
Member

Scope of the PR

Added warning logs when Avalara returns isFee in product or shipping line details.

Related issues

Checklist

@krzysztofzuraw krzysztofzuraw requested review from a team as code owners October 28, 2024 09:37
Copy link

changeset-bot bot commented Oct 28, 2024

🦋 Changeset detected

Latest commit: 9b0e801

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
app-avatax Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saleor-app-avatax ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 1:38pm
5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
saleor-app-cms ⬜️ Skipped (Inspect) 💬 Add feedback Oct 28, 2024 1:38pm
saleor-app-klaviyo ⬜️ Skipped (Inspect) Oct 28, 2024 1:38pm
saleor-app-products-feed ⬜️ Skipped (Inspect) 💬 Add feedback Oct 28, 2024 1:38pm
saleor-app-search ⬜️ Skipped (Inspect) 💬 Add feedback Oct 28, 2024 1:38pm
saleor-app-smtp ⬜️ Skipped (Inspect) 💬 Add feedback Oct 28, 2024 1:38pm

const hasFee = shippingLine.details?.some((details) => details.isFee);

if (hasFee) {
logger.warn("Shipping line has a fee. App will report this fee as shipping_tax_rate", {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why warning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm open to change but we are wrongly reporting rate to Saleor - maybe for Colorado Tax it will be fine (as this is different product - at least if client uses our recommended integration guide) but for other cases we may not be lucky 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is wrong, maybe this should be error?

@vercel vercel bot temporarily deployed to Preview – saleor-app-cms October 28, 2024 13:36 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-products-feed October 28, 2024 13:36 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-search October 28, 2024 13:36 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-smtp October 28, 2024 13:36 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-klaviyo October 28, 2024 13:36 Inactive
@krzysztofzuraw krzysztofzuraw merged commit 5a6ea74 into main Oct 28, 2024
16 checks passed
@krzysztofzuraw krzysztofzuraw deleted the shopx-1382 branch October 28, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants