Merge pull request #22108 from rohitwaghchaure/fixed-import-supplier-invoice-not-worked-v12

fix: import supplier invoice not working
This commit is contained in:
rohitwaghchaure
2020-06-04 14:35:10 +05:30
committed by GitHub

View File

@@ -64,7 +64,8 @@ class ImportSupplierInvoice(Document):
"buying_price_list": self.default_buying_price_list
}
if not invoices_args.get("invoice_no", ''): return
if not invoices_args.get("bill_no", ''):
frappe.throw(_("Numero has not set in the XML file"))
supp_dict = get_supplier_details(file_content)
invoices_args["destination_code"] = get_destination_code_from_file(file_content)