Submit Receipt fixed
'find' works, recurring options work, only thing that needs doing is adding organisation's address to api request
This commit is contained in:
parent
60873a07ef
commit
a3a52ebe4a
3 changed files with 92 additions and 136 deletions
|
@ -26,12 +26,12 @@ List<Organisation> jsonToOrganisations(String json) {
|
|||
|
||||
List<dynamic> validated = decoded['unvalidated'];
|
||||
// Map organisation = validated[0];
|
||||
|
||||
print("");
|
||||
print("Response:");
|
||||
for (var i = 0; i < validated.length; i++) {
|
||||
print(validated[i]);
|
||||
}
|
||||
//
|
||||
// print("");
|
||||
// print("Response:");
|
||||
// for (var i = 0; i < validated.length; i++) {
|
||||
// print(validated[i]);
|
||||
// }
|
||||
|
||||
List<Map> organisationsMaps = new List<Map>();
|
||||
|
||||
|
@ -61,14 +61,14 @@ List<Organisation> jsonToOrganisations(String json) {
|
|||
|
||||
// the reason some organizations do not show up is because they are not all validated
|
||||
// option to 'show unvalidated' should be added along with maybe a settings section
|
||||
|
||||
print("");
|
||||
print("Local:");
|
||||
for (var i = 0; i < organisations.length; i++)
|
||||
{
|
||||
print(organisations[i].name);
|
||||
}
|
||||
print("");
|
||||
//
|
||||
// print("");
|
||||
// print("Local:");
|
||||
// for (var i = 0; i < organisations.length; i++)
|
||||
// {
|
||||
// print(organisations[i].name);
|
||||
// }
|
||||
// print("");
|
||||
|
||||
return organisations;
|
||||
}
|
||||
|
|
Reference in a new issue