Browse Source

refactor: remove unused function 'get_postings'

develop
ruthra 3 years ago
parent
commit
a8a598ace7
  1. 6
      erpnext/accounts/report/deferred_revenue_and_expense/deferred_revenue_and_expense.py

6
erpnext/accounts/report/deferred_revenue_and_expense/deferred_revenue_and_expense.py

@ -181,12 +181,6 @@ class Deferred_Invoice(object):
for item in self.uniq_items:
self.items.append(Deferred_Item(item, self, [x for x in items if x.item == item]))
def get_postings(self):
"""
get GL/Journal postings for deferred items in invoice
"""
[item.get_gl_and_journal_postings() for item in self.items]
def calculate_invoice_revenue_expense_for_period(self):
"""
calculate deferred revenue/expense for all items in invoice

Loading…
Cancel
Save