Merge pull request #21828 from marination/italian-invoice-import

fix: Supplier Invoice No not fetched in Import Supplier Invoice
This commit is contained in:
rohitwaghchaure 2020-05-21 14:22:59 +05:30 committed by GitHub
commit e8c592698e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ class ImportSupplierInvoice(Document):
"naming_series": self.invoice_series,
"document_type": line.TipoDocumento.text,
"bill_date": get_datetime_str(line.Data.text),
"invoice_no": line.Numero.text,
"bill_no": line.Numero.text,
"total_discount": 0,
"items": [],
"buying_price_list": self.default_buying_price_list
@ -249,7 +249,7 @@ def create_supplier(supplier_group, args):
return existing_supplier_name
else:
new_supplier = frappe.new_doc("Supplier")
new_supplier.supplier_name = re.sub('&amp', '&', args.supplier)
new_supplier.supplier_group = supplier_group