fix intendation

This commit is contained in:
Ranjith 2018-05-16 12:17:57 +05:30
parent db120fb0bc
commit 4bbf705e58
2 changed files with 2 additions and 3 deletions

View File

@ -750,7 +750,7 @@ class PurchaseInvoice(BuyingController):
self.db_set('on_hold', 0) self.db_set('on_hold', 0)
self.db_set('release_date', None) self.db_set('release_date', None)
def set_tax_withholding(self): def set_tax_withholding(self):
""" """
1. Get TDS Configurations against Supplier 1. Get TDS Configurations against Supplier
""" """
@ -812,4 +812,3 @@ def block_invoice(name, hold_comment):
def make_inter_company_sales_invoice(source_name, target_doc=None): def make_inter_company_sales_invoice(source_name, target_doc=None):
from erpnext.accounts.doctype.sales_invoice.sales_invoice import make_inter_company_invoice from erpnext.accounts.doctype.sales_invoice.sales_invoice import make_inter_company_invoice
return make_inter_company_invoice("Purchase Invoice", source_name, target_doc) return make_inter_company_invoice("Purchase Invoice", source_name, target_doc)

View File

@ -602,7 +602,7 @@ def get_outstanding_invoices(party_type, party, account, condition=None):
invoice = 'Sales Invoice' if erpnext.get_party_account_type(party_type) == 'Receivable' else 'Purchase Invoice' invoice = 'Sales Invoice' if erpnext.get_party_account_type(party_type) == 'Receivable' else 'Purchase Invoice'
held_invoices = get_held_invoices(party_type, party) held_invoices = get_held_invoices(party_type, party)
invoice_list = frappe.db.sql(""" invoice_list = frappe.db.sql("""
select select
voucher_no, voucher_type, posting_date, ifnull(sum({dr_or_cr}), 0) as invoice_amount, voucher_no, voucher_type, posting_date, ifnull(sum({dr_or_cr}), 0) as invoice_amount,
( (