mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -756,6 +756,7 @@ def manage_recurring_invoices(next_date=None):
|
||||
|
||||
def make_new_invoice(ref_wrapper, posting_date):
|
||||
from webnotes.model.wrapper import clone
|
||||
from accounts.utils import get_fiscal_year
|
||||
new_invoice = clone(ref_wrapper)
|
||||
|
||||
mcount = month_map[ref_wrapper.doc.recurring_type]
|
||||
@@ -772,7 +773,7 @@ def make_new_invoice(ref_wrapper, posting_date):
|
||||
|
||||
"invoice_period_to_date": \
|
||||
get_next_date(ref_wrapper.doc.invoice_period_to_date, mcount),
|
||||
|
||||
"fiscal_year": get_fiscal_year(posting_date)[0],
|
||||
"owner": ref_wrapper.doc.owner,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user