mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Merge pull request #1935 from nabinhait/hotfix
Default letter head in general ledger and bank reco statement print
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
<div style="margin-bottom: 7px;" class="text-center">
|
||||||
|
{%= frappe.boot.letter_heads[frappe.defaults.get_default("letter_head")] %}
|
||||||
|
</div>
|
||||||
<h2 class="text-center">{%= __("Bank Reconciliation Statement") %}</h2>
|
<h2 class="text-center">{%= __("Bank Reconciliation Statement") %}</h2>
|
||||||
<h4 class="text-center">{%= filters.account %}</h3>
|
<h4 class="text-center">{%= filters.account %}</h3>
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
|
<div style="margin-bottom: 7px;" class="text-center">
|
||||||
|
{%= frappe.boot.letter_heads[frappe.defaults.get_default("letter_head")] %}
|
||||||
|
</div>
|
||||||
<h2 class="text-center">{%= __("Statement of Account") %}</h2>
|
<h2 class="text-center">{%= __("Statement of Account") %}</h2>
|
||||||
<h4 class="text-center">{%= filters.account || "General Ledger" %}</h3>
|
<h4 class="text-center">{%= filters.account || "General Ledger" %}</h4>
|
||||||
|
<h5 class="text-center">
|
||||||
|
{%= dateutil.str_to_user(filters.from_date) %}
|
||||||
|
{%= __("to") %}
|
||||||
|
{%= dateutil.str_to_user(filters.to_date) %}
|
||||||
|
</h5>
|
||||||
<hr>
|
<hr>
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -68,3 +68,4 @@ erpnext.patches.v4_1.set_outgoing_email_footer
|
|||||||
erpnext.patches.v4_1.fix_jv_remarks
|
erpnext.patches.v4_1.fix_jv_remarks
|
||||||
erpnext.patches.v4_1.fix_sales_order_delivered_status
|
erpnext.patches.v4_1.fix_sales_order_delivered_status
|
||||||
erpnext.patches.v4_1.fix_delivery_and_billing_status
|
erpnext.patches.v4_1.fix_delivery_and_billing_status
|
||||||
|
execute:frappe.db.sql("update `tabAccount` set root_type='Liability' where root_type='Income' and report_type='Balance Sheet'")
|
||||||
@@ -241,7 +241,7 @@ class Company(Document):
|
|||||||
[_('Sales'),_('Direct Income'),'Ledger','Income Account','Profit and Loss', None, 'Income'],
|
[_('Sales'),_('Direct Income'),'Ledger','Income Account','Profit and Loss', None, 'Income'],
|
||||||
[_('Service'),_('Direct Income'),'Ledger','Income Account','Profit and Loss', None, 'Income'],
|
[_('Service'),_('Direct Income'),'Ledger','Income Account','Profit and Loss', None, 'Income'],
|
||||||
[_('Indirect Income'),_('Income'),'Group','Income Account','Profit and Loss', None, 'Income'],
|
[_('Indirect Income'),_('Income'),'Group','Income Account','Profit and Loss', None, 'Income'],
|
||||||
[_('Source of Funds (Liabilities)'), None,'Group', None,'Balance Sheet', None, 'Income'],
|
[_('Source of Funds (Liabilities)'), None,'Group', None,'Balance Sheet', None, 'Liability'],
|
||||||
[_('Capital Account'),_('Source of Funds (Liabilities)'),'Group', None,'Balance Sheet', None, 'Liability'],
|
[_('Capital Account'),_('Source of Funds (Liabilities)'),'Group', None,'Balance Sheet', None, 'Liability'],
|
||||||
[_('Reserves and Surplus'),_('Capital Account'),'Ledger', None,'Balance Sheet', None, 'Liability'],
|
[_('Reserves and Surplus'),_('Capital Account'),'Ledger', None,'Balance Sheet', None, 'Liability'],
|
||||||
[_('Shareholders Funds'),_('Capital Account'),'Ledger', None,'Balance Sheet', None, 'Liability'],
|
[_('Shareholders Funds'),_('Capital Account'),'Ledger', None,'Balance Sheet', None, 'Liability'],
|
||||||
|
|||||||
@@ -676,9 +676,9 @@ def get_batch_no(doctype, txt, searchfield, start, page_len, filters):
|
|||||||
|
|
||||||
batch_nos = None
|
batch_nos = None
|
||||||
args = {
|
args = {
|
||||||
'item_code': filters['item_code'],
|
'item_code': filters.get("item_code"),
|
||||||
's_warehouse': filters['s_warehouse'],
|
's_warehouse': filters.get('s_warehouse'),
|
||||||
'posting_date': filters['posting_date'],
|
'posting_date': filters.get('posting_date'),
|
||||||
'txt': "%%%s%%" % txt,
|
'txt': "%%%s%%" % txt,
|
||||||
'mcond':get_match_cond(doctype),
|
'mcond':get_match_cond(doctype),
|
||||||
"start": start,
|
"start": start,
|
||||||
|
|||||||
Reference in New Issue
Block a user