Adding Item to ItemInoiceLine doesn't get UnitPrice and calculate total automatically - using SDK

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
smagar
3 Posts
User

3Posts

0Kudos

0Solutions

Adding Item to ItemInoiceLine doesn't get UnitPrice and calculate total automatically - using SDK

Hi,

I am wondering why MYOB Api expecting to pass all the ItemInvoiceLine details for unit such as 

- UnitPrice

- UnitOfMeasure

- Total 

even when passing Item GUID (created in Sales > Items) and UnitCount.

I am expecting to get above details automatically (as all the details about Item is in MYOB) when creating invoice by passing Item detail and UnitCount in Invoice line.

Please let me know if I am missing something to work as expected or there is a way to make it automatic.

Thanks in advance.

2 REPLIES 2
John_Dinning
Trusted User
71 Posts
Trusted User
Australia
Trusted User

71Posts

15Kudos

6Solutions

Re: Adding Item to ItemInoiceLine doesn't get UnitPrice and calculate total automatically - using SDK

Hi smagar,

You need to provide the Item UID, ShipQuantity and Total (the total sale price for the line) and TaxCode UID as a minimum.

AR will calculate the Item price from these (the UnitPrice in your invoice may be  different from the price on file).

 

You do not need to supply the UnitPrice or UnitOf Measure.

 

You may need to supply Discount details and Location if applicable.

smagar
3 Posts
User

3Posts

0Kudos

0Solutions

Re: Adding Item to ItemInoiceLine doesn't get UnitPrice and calculate total automatically - using SDK

Hi John, 

Thank you for your reply. Yes I can create invoice with those minimum required field. However, what I am expecting is; when exporting invoice by passing those minimum required field and Item UID, it should add Unit Price and Total calculation (i.e., unit * unit price) by getting details from Item UID automatically like other Invoicing system does. 

thanks

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post