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

Brinks: Order field: includesBulkOrder is always false #210

Open
brettski opened this issue Dec 20, 2022 · 2 comments
Open

Brinks: Order field: includesBulkOrder is always false #210

brettski opened this issue Dec 20, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@brettski
Copy link
Contributor

The includesBulkOrder field is always written as false.
This is a two-step fix

  1. Determine field is actually used
  2. Fix logic driving field if it is in use, otherwise remove field
@brettski
Copy link
Contributor Author

brettski commented Dec 20, 2022

It isn't read in brinks, downstream processes need to be reviewed.
Value is written in two placed depending on the order type:

includesBulkPurchase:
newLineItems.filter(li => li.isBulkPurchase === true) > 0,
};

includesBulkPurchase:
lineItems.filter(li => li.isBulkPurchase === true) > 0,
};

I see the issue there, in both.
lineItems.filter(li => li.isBulkPurchase === true) > 0,
should be
lineItems.filter(li => li.isBulkPurchase === true)?.length > 0,

@brettski brettski self-assigned this Dec 20, 2022
@brettski brettski added the bug Something isn't working label Dec 20, 2022
@brettski
Copy link
Contributor Author

Github org search shows no other matches for includesBulkPurchase

https://github.com/search?q=org%3AThatConference%20includesBulkPurchase&type=code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant