Merge pull request #18516 from rohitwaghchaure/can_t_compare_datetime_issue_for_quotation

fix: can't compare datetime.date to unicode
This commit is contained in:
rohitwaghchaure 2019-07-29 17:59:08 +05:30 committed by GitHub
commit 3e4cabfd6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ class Quotation(SellingController):
self.with_items = 1
def validate_valid_till(self):
if self.valid_till and self.valid_till < self.transaction_date:
if self.valid_till and getdate(self.valid_till) < getdate(self.transaction_date):
frappe.throw(_("Valid till date cannot be before transaction date"))
def has_sales_order(self):