Hi everyone, i'm using the creospace php class to interact with API. Having problems with a couple of methods not returning values. here and here are two such methods that don't return anything to me. The manual suggests that these methods don't return values but the guys at kashflow insist that it returns the receipt number. When the manual states that the method does return a value here i´ve not had a problem. I've also emailed creospace to ask if they know anything about these particular methods and the values they return but i wondered if anyone on this forum has experience using these methods and can confirm to me that they do actually return values. thanks for your time. Also anybody know if you can update a receipt line. You can add and delete one from what i can see but not update a line. Would you have to update the entire receipt just to update one line.
ok, so if you use the creospace php class then you wont get the returned value. To fix this yourself do the following: go to desired function need to put "$retr" = in front of call $retr = $this->CallFunction(); and then return value below to return value return (int)$retr[0]; I'll email creospace and kashflow have told me they will update documentation when they can to show when values should be returned... Still waiting to hear from them about the possibility of having an update receipt/invoice line method though.