I have an entity (company) with one eca and one contact item. Using Perl's lwp toolset to request that entity in json format (GET http://localhost/ledgersmb/rest/1.4/inv-upload/Contact/2.json) returns:
{
"locations" : null,
"license_number" : "1",
"name" : "A",
"contact" : null,
"bank_accounts" : null,
"sic_code" : "11",
"control_code" : "A-00003",
"entity_class" : "1",
"country_id" : "4",
"credit_accounts" : null,
"entity_id" : "2",
"tax_id" : "1",
"entity_type" : "Company",
"legal_name" : "A",
"sales_tax_id" : "1"
}
As you can see, the "contact" item is empty and so is the "credit_accounts". When using the xml version (GET http://localhost/ledgersmb/rest/1.4/inv-upload/Contact/2.xml), I get:
<LedgerSMB::REST_Class::Contact name="A" bank_accounts="" contact="" control_code="A-00003" country_id="4" credit_accounts="" entity_class="1" entity_id="2" entity_type="Company" legal_name="A" license_number="1" locations="" sales_tax_id="1" sic_code="11" tax_id="1" />
Which indicates empty credit accounts and empty contact info as well.
Diff:
Reducing to sev 8 due to other web service failrues not being sev 9. Expect to be fixed after RC1
As of RC1, I am seeing entity acconts listed but not addresses, contact info, or bank accounts.
Ok, so currently this only pulls locations and contact information that is attached to the entity. This may need to be changed in the future.
Hi Chris,
You closed "works-for-me", but does it load ECAs for you? It doesn't for me... [I'll test again to be 200% sure, but I know it didn't.]
Regards,
Erik.