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

chore: Due date validation in quotation #1294

Merged

Conversation

shantanu-kadam-epi
Copy link

@hrwX hrwX changed the title chore :Due date validation in quotation chore: Due date validation in quotation May 19, 2021
@@ -850,7 +850,7 @@ def validate_payment_schedule_dates(self):
if self.doctype == 'Sales Invoice' and self.is_pos: return

for d in self.get("payment_schedule"):
if self.doctype == "Sales Order" and getdate(d.due_date) < getdate(self.transaction_date):
if self.doctype in ("Sales Invoice", "Quotation") and getdate(d.due_date) < getdate(self.transaction_date):
Copy link

Choose a reason for hiding this comment

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

  • Was there any reason to change sales order to sales invoice ?

@shantanu-kadam-epi
Copy link
Author

@hrwX , I referred the above condition, so it was by mistake. I have updated doctype name

@vishdha
Copy link

vishdha commented May 21, 2021

@sahil28297 validated with @neilLasrado

@vishdha vishdha reopened this May 21, 2021
@sahil28297 sahil28297 merged commit 8b3363d into Bloomstack:bs-may-sprint-1 May 21, 2021
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