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

Don't break out orders with quantities #2119

Merged
merged 14 commits into from
Apr 14, 2017

Conversation

brent-hoover
Copy link
Collaborator

@brent-hoover brent-hoover commented Apr 13, 2017

Closes #2102 and resolves blocker with Avalara

Changes the behavior copyCartToOrder to not break out lines with quantities into individual lines

To Test

This change should have no visibility to the user except for seeing new orders not broken out. The most important thing to test is that nothing is broken. With the exception for adding in some conditionals for Inventory hooks I didn't see any compatibility issues with moving forward from old versions.

@brent-hoover brent-hoover changed the title [WIP] Don't explode orders Don't break out orders with quantities Apr 14, 2017
});
return _.extend(item, { taxDetail });
});
} else {
items = returnItems;
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

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

We need more comments, not less.

for (const orderItem of orderItems) {
const cartItem = {
_id: orderItem.cartItemId,
_id: orderItem.cartItemId || orderItem._id,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change / behaviour documented elsewhere? Should be added to release docs?

Copy link
Contributor

@aaronjudd aaronjudd left a comment

Choose a reason for hiding this comment

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

Tested, reviewed, looks good.

@aaronjudd aaronjudd merged commit ea62de2 into development Apr 14, 2017
@aaronjudd aaronjudd deleted the brent-fix-explode-orders-2102 branch April 14, 2017 19:22
@aaronjudd aaronjudd removed the review label Apr 14, 2017
@aaronjudd aaronjudd mentioned this pull request Apr 18, 2017
@spencern spencern mentioned this pull request Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants