Discussions

Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
To help you get the most out of your 2025.2 Release Preview account, review the topics outlined in the 2025.2 Release Preview Guide.
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
Intelligent Payment Automation version 1.0.3 is now available in the SuiteApp Marketplace. The SuiteApp, powered by BILL, lets you automate payments, manage vendor details, and bank account information within NetSuite. Learn more

add invoice for partial fulfillment with an item quantity 0 giving error - is bug?

edited Dec 2, 2019 3:01PM in SuiteCloud / Customization 1 comment

When I initialize an invoice from a partially fulfilled Sales Order, NetSuite  returns an invoice with amount 0, costEstimate 0 for the item(s) in the item list that are not yet fulfilled.

When I do an addRequest with the result, I get code USER_ERROR with message: The minimum quantity for this item is 1.

Should I be pruning items with amount 0 out of the itemList before trying to add the invoice, or is the error a bug?

The process works fine if all items in the order are fulfilled. Code that looks for invoice for a sales order, totals to see if amount left to invoice, initialize invlice, and add below:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 4 (Oct-Dec 2025)

This Week's Leaders

This Month's Leaders

All Time Leaders