mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
Merge branch 'develop' into misc_asset_fixes
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
"api_details_section",
|
"api_details_section",
|
||||||
|
"disabled",
|
||||||
"service_provider",
|
"service_provider",
|
||||||
"api_endpoint",
|
"api_endpoint",
|
||||||
"url",
|
"url",
|
||||||
@@ -77,12 +78,18 @@
|
|||||||
"label": "Service Provider",
|
"label": "Service Provider",
|
||||||
"options": "frankfurter.app\nexchangerate.host\nCustom",
|
"options": "frankfurter.app\nexchangerate.host\nCustom",
|
||||||
"reqd": 1
|
"reqd": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"fieldname": "disabled",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "Disabled"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"issingle": 1,
|
"issingle": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2022-01-10 15:51:14.521174",
|
"modified": "2023-01-09 12:19:03.955906",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Currency Exchange Settings",
|
"name": "Currency Exchange Settings",
|
||||||
|
|||||||
@@ -49,7 +49,6 @@
|
|||||||
<br>
|
<br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ _("Against") }}: {{ row.against }}
|
|
||||||
<br>{{ _("Remarks") }}: {{ row.remarks }}
|
<br>{{ _("Remarks") }}: {{ row.remarks }}
|
||||||
{% if row.bill_no %}
|
{% if row.bill_no %}
|
||||||
<br>{{ _("Supplier Invoice No") }}: {{ row.bill_no }}
|
<br>{{ _("Supplier Invoice No") }}: {{ row.bill_no }}
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 12%">{%= __("Date") %}</th>
|
<th style="width: 12%">{%= __("Date") %}</th>
|
||||||
<th style="width: 15%">{%= __("Ref") %}</th>
|
<th style="width: 15%">{%= __("Reference") %}</th>
|
||||||
<th style="width: 25%">{%= __("Party") %}</th>
|
<th style="width: 25%">{%= __("Remarks") %}</th>
|
||||||
<th style="width: 15%">{%= __("Debit") %}</th>
|
<th style="width: 15%">{%= __("Debit") %}</th>
|
||||||
<th style="width: 15%">{%= __("Credit") %}</th>
|
<th style="width: 15%">{%= __("Credit") %}</th>
|
||||||
<th style="width: 18%">{%= __("Balance (Dr - Cr)") %}</th>
|
<th style="width: 18%">{%= __("Balance (Dr - Cr)") %}</th>
|
||||||
@@ -45,7 +45,6 @@
|
|||||||
<br>
|
<br>
|
||||||
{% } %}
|
{% } %}
|
||||||
|
|
||||||
{{ __("Against") }}: {%= data[i].against %}
|
|
||||||
<br>{%= __("Remarks") %}: {%= data[i].remarks %}
|
<br>{%= __("Remarks") %}: {%= data[i].remarks %}
|
||||||
{% if(data[i].bill_no) { %}
|
{% if(data[i].bill_no) { %}
|
||||||
<br>{%= __("Supplier Invoice No") %}: {%= data[i].bill_no %}
|
<br>{%= __("Supplier Invoice No") %}: {%= data[i].bill_no %}
|
||||||
|
|||||||
@@ -269,6 +269,7 @@ erpnext.patches.v13_0.reset_corrupt_defaults
|
|||||||
erpnext.patches.v13_0.create_accounting_dimensions_for_asset_repair
|
erpnext.patches.v13_0.create_accounting_dimensions_for_asset_repair
|
||||||
erpnext.patches.v15_0.delete_taxjar_doctypes
|
erpnext.patches.v15_0.delete_taxjar_doctypes
|
||||||
erpnext.patches.v15_0.create_asset_depreciation_schedules_from_assets
|
erpnext.patches.v15_0.create_asset_depreciation_schedules_from_assets
|
||||||
|
erpnext.patches.v14_0.update_reference_due_date_in_journal_entry
|
||||||
|
|
||||||
[post_model_sync]
|
[post_model_sync]
|
||||||
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
|
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
if frappe.db.get_value("Journal Entry Account", {"reference_due_date": ""}):
|
||||||
|
frappe.db.sql(
|
||||||
|
"""
|
||||||
|
UPDATE `tabJournal Entry Account`
|
||||||
|
SET reference_due_date = NULL
|
||||||
|
WHERE reference_due_date = ''
|
||||||
|
"""
|
||||||
|
)
|
||||||
@@ -81,6 +81,11 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None, args=No
|
|||||||
if entries:
|
if entries:
|
||||||
return flt(entries[0].exchange_rate)
|
return flt(entries[0].exchange_rate)
|
||||||
|
|
||||||
|
if frappe.get_cached_value(
|
||||||
|
"Currency Exchange Settings", "Currency Exchange Settings", "disabled"
|
||||||
|
):
|
||||||
|
return 0.00
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cache = frappe.cache()
|
cache = frappe.cache()
|
||||||
key = "currency_exchange_rate_{0}:{1}:{2}".format(transaction_date, from_currency, to_currency)
|
key = "currency_exchange_rate_{0}:{1}:{2}".format(transaction_date, from_currency, to_currency)
|
||||||
|
|||||||
Reference in New Issue
Block a user