Hi everybody,
I'm trying to figure out the margin on invoices for a certain period.
I'm using Invoice_FindByDateInterval, to get all the invoices, and Invoice_GetDataArray to get the data for each invoice.
But I can't find the margin associated with that Invoice, in the API.
I can find the Order Number it was created with, and Order_FindByNumber to find the ID of the order, but it seems that Orders that have been promoted to an Invoice isn't found anymore. So I can't even find the order details, and take it from here.
Are there any one who have figured otu a solution to getting the Margin for an Invoice ?
I'm trying to figure out the margin on invoices for a certain period.
I'm using Invoice_FindByDateInterval, to get all the invoices, and Invoice_GetDataArray to get the data for each invoice.
But I can't find the margin associated with that Invoice, in the API.
I can find the Order Number it was created with, and Order_FindByNumber to find the ID of the order, but it seems that Orders that have been promoted to an Invoice isn't found anymore. So I can't even find the order details, and take it from here.
Are there any one who have figured otu a solution to getting the Margin for an Invoice ?