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(Immutable Ledger): Item wise backdated stock entry posting #22366

Merged
merged 3 commits into from
Jun 22, 2020

Conversation

deepeshgarg007
Copy link
Member

Currently System won't allow backdated entry for any Item before the last stock transaction.

After this fix Item Wise Backdated will be checked

For Eg: If Stock Transaction is posted for Item A is made at 21 June 2020
Then Stock Transaction for Item B can still be made at 20 June 2020

cur_doc_posting_datetime = "%s %s" % (self.posting_date, self.get("posting_time") or "00:00:00")

if last_transaction_time and get_datetime(cur_doc_posting_datetime) < get_datetime(last_transaction_time):
frappe.throw(_("""Last Stock Transaction for item {0} was on {1}.
Copy link
Member

Choose a reason for hiding this comment

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

The multiline message creates problem in translations. Please use <br> tag to create a multiline message.

@nabinhait nabinhait self-assigned this Jun 22, 2020
@nabinhait nabinhait merged commit 5dc175f into frappe:develop Jun 22, 2020
@sammish
Copy link
Contributor

sammish commented Aug 18, 2020

@nabinhait @deepeshgarg007 when can we expect the release in version-13

Please update very urgent

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.

4 participants