Merge branch 'hotfix'
This commit is contained in:
commit
40f5d1845f
@ -2,7 +2,7 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
__version__ = '7.2.27'
|
||||
__version__ = '7.2.28'
|
||||
|
||||
def get_default_company(user=None):
|
||||
'''Get default company for user'''
|
||||
|
@ -37,16 +37,8 @@ class JournalEntry(AccountsController):
|
||||
self.validate_credit_debit_note()
|
||||
self.validate_empty_accounts_table()
|
||||
self.set_account_and_party_balance()
|
||||
self.clear_zero_debit_credit_row()
|
||||
if not self.title:
|
||||
self.title = self.get_title()
|
||||
|
||||
def clear_zero_debit_credit_row(self):
|
||||
self.accounts = [account for account in self.accounts
|
||||
if not (account.debit_in_account_currency==0.0 and account.credit_in_account_currency==0.0)]
|
||||
|
||||
if not self.accounts:
|
||||
frappe.throw("Debit or Credit amount is not found in account table")
|
||||
|
||||
def on_submit(self):
|
||||
self.check_credit_limit()
|
||||
|
@ -141,8 +141,7 @@ def calculate_values(accounts_by_name, gl_entries_by_account, period_list, accum
|
||||
|
||||
if entry.posting_date <= period.to_date:
|
||||
if (accumulated_values or entry.posting_date >= period.from_date) and \
|
||||
(entry.fiscal_year == period.to_date_fiscal_year or not ignore_accumulated_values_for_fy):
|
||||
frappe.errprint([entry.fiscal_year, period.to_date_fiscal_year])
|
||||
(not ignore_accumulated_values_for_fy or entry.fiscal_year == period.to_date_fiscal_year):
|
||||
d[period.key] = d.get(period.key, 0.0) + flt(entry.debit) - flt(entry.credit)
|
||||
|
||||
if entry.posting_date < period_list[0].year_start_date:
|
||||
|
@ -2,8 +2,8 @@
|
||||
{%= frappe.boot.letter_heads[filters.letter_head || frappe.defaults.get_default("letter_head")] %}
|
||||
</div>
|
||||
<h2 class="text-center">{%= __(report.report_name) %}</h2>
|
||||
<h5 class="text-center">Fiscal Year: {%= filters.fiscal_year %}</h5>
|
||||
<h5 class="text-center">Month: {%= filters.month %}</h5>
|
||||
<h5 class="text-center">From Date: {%= filters.from_date %}</h5>
|
||||
<h5 class="text-center">To Date: {%= filters.to_date %}</h5>
|
||||
<hr>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
|
Loading…
Reference in New Issue
Block a user