Merge pull request #9224 from rohitwaghchaure/pos_due_date_issue

[fix] Due Date cannot be before Posting Date during POS records syncing
This commit is contained in:
Makarand Bauskar 2017-06-12 13:23:11 +05:30 committed by GitHub
commit 13239339a6

View File

@ -320,6 +320,7 @@ def make_invoice(doc_list={}, email_queue_list={}, customers_list={}):
si_doc = frappe.new_doc('Sales Invoice')
si_doc.offline_pos_name = name
si_doc.update(doc)
si_doc.set_posting_time = 1
si_doc.customer = get_customer_id(doc)
si_doc.due_date = doc.get('posting_date')
submit_invoice(si_doc, name, doc)