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

fix: import supplier invoice not working
This commit is contained in:
rohitwaghchaure 2020-06-04 14:40:30 +05:30 committed by GitHub
commit dd97a5f4a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)