Merge branch 'version-13' into version-13-hotfix
This commit is contained in:
@@ -4,7 +4,7 @@ import frappe
|
|||||||
|
|
||||||
from erpnext.hooks import regional_overrides
|
from erpnext.hooks import regional_overrides
|
||||||
|
|
||||||
__version__ = "13.42.7"
|
__version__ = "13.52.3"
|
||||||
|
|
||||||
|
|
||||||
def get_default_company(user=None):
|
def get_default_company(user=None):
|
||||||
|
|||||||
@@ -206,6 +206,7 @@ class PaymentEntry(AccountsController):
|
|||||||
elif latest.outstanding_amount < latest.invoice_amount and flt(
|
elif latest.outstanding_amount < latest.invoice_amount and flt(
|
||||||
d.outstanding_amount, d.precision("outstanding_amount")
|
d.outstanding_amount, d.precision("outstanding_amount")
|
||||||
) != flt(latest.outstanding_amount, d.precision("outstanding_amount")):
|
) != flt(latest.outstanding_amount, d.precision("outstanding_amount")):
|
||||||
|
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
"{0} {1} has already been partly paid. Please use the 'Get Outstanding Invoice' or the 'Get Outstanding Orders' button to get the latest outstanding amounts."
|
"{0} {1} has already been partly paid. Please use the 'Get Outstanding Invoice' or the 'Get Outstanding Orders' button to get the latest outstanding amounts."
|
||||||
|
|||||||
@@ -29,6 +29,10 @@ doctype_js = {
|
|||||||
|
|
||||||
override_doctype_class = {"Address": "erpnext.accounts.custom.address.ERPNextAddress"}
|
override_doctype_class = {"Address": "erpnext.accounts.custom.address.ERPNextAddress"}
|
||||||
|
|
||||||
|
override_whitelisted_methods = {
|
||||||
|
"frappe.www.contact.send_message": "erpnext.templates.utils.send_message"
|
||||||
|
}
|
||||||
|
|
||||||
welcome_email = "erpnext.setup.utils.welcome_email"
|
welcome_email = "erpnext.setup.utils.welcome_email"
|
||||||
|
|
||||||
# setup wizard
|
# setup wizard
|
||||||
|
|||||||
@@ -3,18 +3,6 @@
|
|||||||
|
|
||||||
if(!window.erpnext) window.erpnext = {};
|
if(!window.erpnext) window.erpnext = {};
|
||||||
|
|
||||||
// Add / update a new Lead / Communication
|
|
||||||
// subject, sender, description
|
|
||||||
frappe.send_message = function(opts, btn) {
|
|
||||||
return frappe.call({
|
|
||||||
type: "POST",
|
|
||||||
method: "erpnext.templates.utils.send_message",
|
|
||||||
btn: btn,
|
|
||||||
args: opts,
|
|
||||||
callback: opts.callback
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
erpnext.subscribe_to_newsletter = function(opts, btn) {
|
erpnext.subscribe_to_newsletter = function(opts, btn) {
|
||||||
return frappe.call({
|
return frappe.call({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
@@ -24,6 +12,3 @@ erpnext.subscribe_to_newsletter = function(opts, btn) {
|
|||||||
callback: opts.callback
|
callback: opts.callback
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// for backward compatibility
|
|
||||||
erpnext.send_message = frappe.send_message;
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ def execute(filters=None):
|
|||||||
"gst_category",
|
"gst_category",
|
||||||
"export_type",
|
"export_type",
|
||||||
"ecommerce_gstin",
|
"ecommerce_gstin",
|
||||||
"gst_hsn_code",
|
"`tabPurchase Invoice Item`.gst_hsn_code",
|
||||||
"bill_no",
|
"bill_no",
|
||||||
"bill_date",
|
"bill_date",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ def execute(filters=None):
|
|||||||
"gst_category",
|
"gst_category",
|
||||||
"export_type",
|
"export_type",
|
||||||
"ecommerce_gstin",
|
"ecommerce_gstin",
|
||||||
"gst_hsn_code",
|
"`tabSales Invoice Item`.gst_hsn_code",
|
||||||
]
|
]
|
||||||
|
|
||||||
additional_conditions = get_conditions(filters, additional_query_columns)
|
additional_conditions = get_conditions(filters, additional_query_columns)
|
||||||
|
|||||||
Reference in New Issue
Block a user