Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
YujithIsura committed Jul 23, 2024
2 parents 484f527 + 2f98f98 commit 2341fd0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion campus/bffs/asset/api/client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public isolated client class GraphqlClient {
}

remote isolated function getConsumableWeeklyReport(string from_date, string to_date, int organization_id) returns GetConsumableWeeklyReportResponse|graphql:ClientError {
string query = string `query getConsumableWeeklyReport($organization_id:Int!,$from_date:String!,$to_date:String!) {consumable_weekly_report(organization_id:$organization_id,from_date:$from_date,to_date:$to_date) {id avinya_type {id global_type name} consumable {id name description manufacturer} quantity quantity_in quantity_out resource_property {id property value} updated}}`;
string query = string `query getConsumableWeeklyReport($organization_id:Int!,$from_date:String!,$to_date:String!) {consumable_weekly_report(organization_id:$organization_id,from_date:$from_date,to_date:$to_date) {id avinya_type {id global_type name} consumable {id name description manufacturer} prev_quantity quantity_in quantity_out resource_property {id property value} updated}}`;
map<anydata> variables = {"from_date": from_date, "to_date": to_date, "organization_id": organization_id};
json graphqlResponse = check self.graphqlClient->executeWithType(query, variables);
return <GetConsumableWeeklyReportResponse>check performDataBinding(graphqlResponse, GetConsumableWeeklyReportResponse);
Expand Down
2 changes: 1 addition & 1 deletion campus/bffs/asset/api/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ public type GetConsumableWeeklyReportResponse record {|
string? description;
string? manufacturer;
|}? consumable;
anydata? quantity;
anydata? prev_quantity;
anydata? quantity_in;
anydata? quantity_out;
record {|
Expand Down
2 changes: 1 addition & 1 deletion campus/bffs/asset/graphql_client/asset.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ query getConsumableWeeklyReport($organization_id: Int!,$from_date: String!,$to_d
description
manufacturer
}
quantity
prev_quantity
quantity_in
quantity_out
resource_property{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public isolated client class GraphqlClient {
return <GetInventoryDataByOrganizationResponse> check performDataBinding(graphqlResponse, GetInventoryDataByOrganizationResponse);
}
remote isolated function getConsumableWeeklyReport(string from_date, string to_date, int organization_id) returns GetConsumableWeeklyReportResponse|graphql:ClientError {
string query = string `query getConsumableWeeklyReport($organization_id:Int!,$from_date:String!,$to_date:String!) {consumable_weekly_report(organization_id:$organization_id,from_date:$from_date,to_date:$to_date) {id avinya_type {id global_type name} consumable {id name description manufacturer} quantity quantity_in quantity_out resource_property {id property value} updated}}`;
string query = string `query getConsumableWeeklyReport($organization_id:Int!,$from_date:String!,$to_date:String!) {consumable_weekly_report(organization_id:$organization_id,from_date:$from_date,to_date:$to_date) {id avinya_type {id global_type name} consumable {id name description manufacturer} prev_quantity quantity_in quantity_out resource_property {id property value} updated}}`;
map<anydata> variables = {"from_date": from_date, "to_date": to_date, "organization_id": organization_id};
json graphqlResponse = check self.graphqlClient->executeWithType(query, variables);
return <GetConsumableWeeklyReportResponse> check performDataBinding(graphqlResponse, GetConsumableWeeklyReportResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ public type GetConsumableWeeklyReportResponse record {|
string? description;
string? manufacturer;
|}? consumable;
anydata? quantity;
anydata? prev_quantity;
anydata? quantity_in;
anydata? quantity_out;
record {|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bool organizationsLoaded = false;
}

setState(() {
assetTypesLoaded = true;
assetTypesLoaded = false;
});
}

Expand All @@ -60,6 +60,7 @@ bool organizationsLoaded = false;

setState(() {
organizationsLoaded = true;
assetTypesLoaded = true;
});
}

Expand Down Expand Up @@ -170,8 +171,7 @@ bool organizationsLoaded = false;
Container(
margin: EdgeInsets.only(top: 10),
child: SpinKitCircle(
color: (Colors
.blue), // Customize the color of the indicator
color: (Colors.yellow[700]), // Customize the color of the indicator
size: 40, // Customize the size of the indicator
),
),
Expand Down Expand Up @@ -217,12 +217,11 @@ bool organizationsLoaded = false;
);
}).toList(),
),
if (!assetTypesLoaded)
if (!assetTypesLoaded)
Container(
margin: EdgeInsets.only(top: 10),
child: SpinKitCircle(
color: (Colors
.blue), // Customize the color of the indicator
color: (Colors.yellow[700]), // Customize the color of the indicator
size: 40, // Customize the size of the indicator
),
),
Expand Down

0 comments on commit 2341fd0

Please sign in to comment.