diff --git a/supplier-portal/src/pages/NewInvoice.vue b/supplier-portal/src/pages/NewInvoice.vue
index 9f71c5c..7cd1eab 100644
--- a/supplier-portal/src/pages/NewInvoice.vue
+++ b/supplier-portal/src/pages/NewInvoice.vue
@@ -25,11 +25,7 @@
diff --git a/supplier-portal/src/pages/SupplierInvoice.vue b/supplier-portal/src/pages/SupplierInvoice.vue
index 0b21772..0dc5e89 100644
--- a/supplier-portal/src/pages/SupplierInvoice.vue
+++ b/supplier-portal/src/pages/SupplierInvoice.vue
@@ -288,14 +288,14 @@ const documents = reactive({})
const invoice = createDocumentResource({
doctype: 'Purchase Invoice',
name: supplierInvoiceNumber,
- onSuccess: (data) => {
+ onSuccess: data => {
documents.invoice = data
documents.address = createDocumentResource({
doctype: 'Address',
name: data.supplier_address,
- auto: true
+ auto: true,
})
- }
+ },
})
diff --git a/suppliers_portal/patches/move_invoices_to_erpnext.py b/suppliers_portal/patches/move_invoices_to_erpnext.py
index f8b8667..5477a6f 100644
--- a/suppliers_portal/patches/move_invoices_to_erpnext.py
+++ b/suppliers_portal/patches/move_invoices_to_erpnext.py
@@ -88,9 +88,7 @@ def setup_accounts():
force=True,
)
update_account_number(f"1110 - Cash - {abbr}", "Petty Cash", account_number="1110")
- update_account_number(
- f"Primary Checking - {abbr}", "Primary Checking", account_number="1201"
- )
+ update_account_number(f"Primary Checking - {abbr}", "Primary Checking", account_number="1201")
def create_fiscal_years():
@@ -324,9 +322,7 @@ def import_invoices():
"paid_from": get_account_name("Bank", "Asset"),
"reference_no": payment.get("payment_reference_number")
or "Note: Missing reference during ERPNext import",
- "reference_date": getdate(
- payment.get("payment_reference_date")
- ),
+ "reference_date": getdate(payment.get("payment_reference_date")),
"references": [
{
"reference_doctype": invoice_doc.doctype,
@@ -341,6 +337,4 @@ def import_invoices():
payment_doc.insert(ignore_permissions=True)
payment_doc.submit()
except Exception as e:
- print(
- f"Error importing payment for invoice {invoice_doc.bill_no}: {e}"
- )
+ print(f"Error importing payment for invoice {invoice_doc.bill_no}: {e}")
diff --git a/suppliers_portal/public/supplier-portal/index.html b/suppliers_portal/public/supplier-portal/index.html
index a6d8cb3..8f3a79b 100644
--- a/suppliers_portal/public/supplier-portal/index.html
+++ b/suppliers_portal/public/supplier-portal/index.html
@@ -16,6 +16,6 @@
-
+