Truncate order items when itemization is enabled and an order has more than 30

Created on 4 March 2020, almost 5 years ago
Updated 6 December 2022, about 2 years ago

When itemization of orders is enabled, we need to truncate long line items lists since Accept.js won't accept API requests with more than 30 items. We should count the number of items we've added, and for the 30th create a truncated item whose quantity is the number of remaining order items, amount is the combined amount of those items, and whose title is "other items". The description should be, "This order exceeded the 30 item limit for transactions in Authorize.Net. Refer to the order on your site for the full item list."

I actually don't think it's required to identify teach line item as taxable or not, and I don't know that we're doing that for our line items right now anyways. Choose the simplest approach here for that consolidated line item that preserves required data integrity.

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rszrama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024