Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #990: Adding Reports field and preventing crash #991

Merged
merged 1 commit into from
Nov 22, 2018

Conversation

AkshGautam
Copy link
Contributor

@AkshGautam AkshGautam commented Jun 9, 2018

Fix #990
Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the MifosStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@AkshGautam
Copy link
Contributor Author

@therajanmaurya @tarun0 Please review
20180609_111123

@AkshGautam AkshGautam force-pushed the client_report branch 4 times, most recently from b865995 to ef781fb Compare June 13, 2018 18:29
@AkshGautam
Copy link
Contributor Author

@AkshGautam AkshGautam force-pushed the client_report branch 3 times, most recently from 6c731cf to 9421675 Compare July 25, 2018 08:28
@AkshGautam AkshGautam force-pushed the client_report branch 2 times, most recently from 6b94301 to 14f2d59 Compare August 2, 2018 14:44
tarun0
tarun0 previously requested changes Oct 4, 2018
toolbar.addView(spinner);
intent = new Intent("report");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use any Action like this. From the documentation :

Note that the action must be in a namespace because Intents are used globally in the system -- for example the system VIEW action is android.intent.action.VIEW; an application's custom action would be something like com.google.app.myapp.CUSTOM_ACTION

@@ -60,6 +74,7 @@ public static ClientReportCategoryFragment newInstance() {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
((MifosBaseActivity) getActivity()).getActivityComponent().inject(this);
getActivity().registerReceiver(this.broadCastNewMessage, new IntentFilter("report"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll be better to keep this action too in the Constants file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tarun0 done

<string name="savings_acc_deposit">SavingsAccDeposit</string>
<string name="glaccount">GLAccountNO</string>
<string name="obligation_date_type">Obligation date type</string>
<string name="start_date">Start Date</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please verify if these are already not present. There are chances that these may already be used somewhere. Ignore if they are not present earlier.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tarun0 verified

@therajanmaurya therajanmaurya dismissed tarun0’s stale review November 22, 2018 07:53

Aksh Made the changes. I am merging the changes.

@therajanmaurya therajanmaurya merged commit c586b73 into openMF:master Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants