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: Set default reference Id for "On Previous Row Amount" and "On Previous Row Total" #22346

Merged
merged 5 commits into from
Jun 22, 2020

Conversation

AfshanKhan
Copy link
Contributor

@AfshanKhan AfshanKhan commented Jun 19, 2020

  • Added client side validation for "On Previous Row Amount" and "On Previous Row Total"
  • On selecting "On Previous Row Amount" or "On Previous Row Total" in taxes table an error used to pop up in console which broke the script if reference row is not selected. And many times user is not aware that reference row field exists. So by default use previous row reference id

image

…able "tax", also replaced "-1" by "-2" as "idx" starts with 0 rather than 1
@deepeshgarg007 deepeshgarg007 self-assigned this Jun 19, 2020
@AfshanKhan AfshanKhan requested a review from nabinhait June 19, 2020 10:53
@deepeshgarg007
Copy link
Member

@Mergifyio backport version-12-hotfix

@mergify
Copy link
Contributor

mergify bot commented Jun 22, 2020

Command backport version-12-hotfix: pending

Waiting for the pull request to get merged

@deepeshgarg007 deepeshgarg007 merged commit 49f51f4 into frappe:develop Jun 22, 2020
@deepeshgarg007 deepeshgarg007 changed the title fix: set row_id by default as previous row for On Previous Row Amount and On Previous Row Total fix: Set default reference Id for "On Previous Row Amount" and "On Previous Row Total" Jun 22, 2020
@mergify
Copy link
Contributor

mergify bot commented Jun 22, 2020

Command backport version-12-hotfix: failure

No backport have been created

  • Backport to branch version-12-hotfix failed

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.

2 participants