pbrzoski / freshbooks-php-library

Automatically exported from code.google.com/p/freshbooks-php-library
0 stars 0 forks source link

$invoice->invoiceId returns string(6) rather than string(11) #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Create a new Invoice.
2. Call $invoice->invoiceId.
3. You get a string such as (var_dump output below):

 string(6) "324319"

The problem with this is that the correct format is:

 string(11) "00000324319"

This is evident if you attempt to call $invoice->get('324319') - it will fail 
because no such invoice exists. Whereas, $invoice->get('00000324319') works.

Original issue reported on code.google.com by jspit...@gmail.com on 28 Dec 2013 at 10:30

GoogleCodeExporter commented 9 years ago
After some more investigation, it appears that this is by design (and part of 
the Freshbooks API).

Original comment by jspit...@gmail.com on 28 Dec 2013 at 12:29