API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Invoice_FindByOtherReference

0
Hi

Can anyone tell me what I'm doing wrong here? I'm trying to use FindByOtherReference:

$my = $client-Invoice_FindByOtherReference(array('otherReference' = '356'))-Invoice_FindByOtherReferenceResult;
print_r($my)  ;

It returns an empty object each time? But if I try to do the same exercise with Debtors it works fine!

$myDebtor = $client-Debtor_FindByNumber(array('number' = 104))-Debtor_FindByNumberResult;
print_r($myDebtor)  ;

I have also tried to get all invoices to control it, but it returns nothing to:

$my2 = $client-Invoice_GetAll()-Invoice_GetAllReferenceResult;
print_r($my2)  ;
created Aug 14, 2010 by koldstar
0% Accept Rate
Q 6 A 2 C 0

2 Answers

0
Can i plase know what your point is?

are you crating a ordre after that upgradet to invoice or?
answered Nov 17, 2010 by ParisNakitaKejser
0
Code works fine. Do you have a booked invoice that has 365 as other ref?
Invoice searches booked invoices.
If you want to find a invoice that is active (Under the Invoices menu in the webinterface), you have to use CurrentInvoice.
And the refernce must be exact, It won't find reference that is 3654 or 3651, it will only find reference that is 365
answered Nov 17, 2010 by Madman

Network

Find all the documentation and resources you need to build great apps.
Go to Developer site

Newsletter

Get the latest news and important info from the e-conomic developer world.
Sign up now

Visma e-conomic A/S
...