Jump to content

How to access quantity on hand for a given product (Sage 50 Accounting) in C#?


 Share

Recommended Posts

Hi everybody,

When I try to convert a purchase order to an invoice, I get an exception if I set a quantity for an item that exceeds the available stock on hand. To avoid this, I want to retrieve the quantity on hand of a given product before I set the invoice quantity.... but I can't seem to find any property of method for retrieving the quantity on hand! I am able to retrieve a particular product (inventory item) like this:

image.png.ac81c93c2a9e15310df58783efdb0f3d.png

 

However, when I look at the different properties and methods for the InventoryLedger object I am returning, I can't find anything related to quantities. Am I looking at the wrong place? I couldn't find any information online, so any help would be appreciated.


Thanks.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...