Merge pull request #9673 from rohitwaghchaure/serial_no_sales_return_issue

Remove sales invoice from serial number while making sales return entery using delivery note
This commit is contained in:
Nabin Hait 2017-07-10 19:04:30 +05:30 committed by GitHub
commit cdf4320b3b

View File

@ -85,6 +85,10 @@ class SerialNo(StockController):
self.supplier, self.supplier_name = \
frappe.db.get_value("Purchase Receipt", purchase_sle.voucher_no,
["supplier", "supplier_name"])
# If sales return entry
if self.purchase_document_type == 'Delivery Note':
self.sales_invoice = None
else:
for fieldname in ("purchase_document_type", "purchase_document_no",
"purchase_date", "purchase_time", "purchase_rate", "supplier", "supplier_name"):