Jump to content

Alain G.

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Alain G.

  1. 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.

  2. Hi everybody,

    I am new to Sage. I am a C# developer trying to build a software for my boss. I am using Sage 50 Pro Accounting (Canadian) 2022, and I am currently on the trial version.

    I followed the example that comes with the SDK for creating a new order:

    image.png.9f7ed9e2270495020d79d1736ca33539.png

     

    When I get to the part where I need to set the OrderQuoteNum property, I get the error message: "The order/quote number field is disabled or it is hidden because the company data does not have order/quote feature turned on." I searched in the different settings, and from what I could find (see below image), every feature seems to be turned on:

     

    image.png.bd8ee73afc64f7f9d4a476c57f1363c2.png

     

    I tried commenting out this line in my code, to see if I could create an order without it, but I get another error when I get to the purJournal.SetOrdered(50, 1) line. The error is: "The field you are trying to change or function you are calling is not accessible under current circumstance."

    Finally, when I comment out that line in the code too, I make it to purJourn.Post() line, but I then get the following error message: "The Invoice number is undefined.  Enter the Invoice number." I don't understand why I am getting this error, since I am not creating an Invoice but a PurchaseOrder.

    I couldn't really find help online for these different errors. I would appreciate any help I can get.

    Thanks :)

×
×
  • Create New...