Skip to content

feat: confirm with user before resetting posting date #47667

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

debinnn
Copy link
Contributor

@debinnn debinnn commented May 21, 2025

continuation of #41992

A confirmation with user before resetting posting date if 'edit posting date and time' is unchecked in all relevant transactions(Sales Invoice, Purchase Invoice, Delivery Note, etc.)
Demo for this is available on the original PR.

This can be enabled/disabled from Account Settings (Enabled by default)
image

@debinnn debinnn requested a review from ruthra-kumar as a code owner May 21, 2025 14:02
@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label May 21, 2025
)

if (!is_confirmation_reqd) return;
if (frappe.datetime.get_today() == this.frm.doc.posting_date) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

move this condition to top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants