Skip to content

Commit

Permalink
fix: merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait committed Jul 16, 2021
2 parents ad12fd7 + 4e6f492 commit 1147548
Show file tree
Hide file tree
Showing 24 changed files with 493 additions and 1,180 deletions.
2 changes: 1 addition & 1 deletion erpnext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from erpnext.hooks import regional_overrides
from frappe.utils import getdate

__version__ = '13.6.0'
__version__ = '13.7.0'

def get_default_company(user=None):
'''Get default company for user'''
Expand Down
Empty file removed erpnext/accounts/accounts
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class ChartofAccountsImporter(Document):
def validate(self):
validate_accounts(self.import_file)


@frappe.whitelist()
def validate_company(company):
parent_company, allow_account_creation_against_child_company = frappe.db.get_value('Company',
Expand Down Expand Up @@ -304,9 +303,8 @@ def validate_accounts(file_name):
accounts_dict[account["parent_account"]]["is_group"] = 1

validate_root(accounts_dict)

validate_account_types(accounts_dict)


return [True, len(accounts)]

Expand Down
4 changes: 2 additions & 2 deletions erpnext/accounts/doctype/dunning/test_dunning.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def create_dunning_type_with_zero_interest_rate():
dunning_type.append(
"dunning_letter_text", {
'language': 'en',
'body_text': 'We have still not received payment for our invoice ',
'body_text': 'We have still not received payment for our invoice ',
'closing_text': 'We kindly request that you pay the outstanding amount immediately, and late fees.'
}
)
dunning_type.save()
dunning_type.save()
18 changes: 0 additions & 18 deletions erpnext/accounts/doctype/tax_rule/tax_rule.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt

cur_frm.add_fetch("customer", "customer_group", "customer_group" );
cur_frm.add_fetch("supplier", "supplier_group_name", "supplier_group" );

frappe.ui.form.on("Tax Rule", "tax_type", function(frm) {
frm.toggle_reqd("sales_tax_template", frm.doc.tax_type=="Sales");
frm.toggle_reqd("purchase_tax_template", frm.doc.tax_type=="Purchase");
})

frappe.ui.form.on("Tax Rule", "onload", function(frm) {
if(frm.doc.__islocal) {
frm.set_value("use_for_shopping_cart", 1);
}
})

frappe.ui.form.on("Tax Rule", "refresh", function(frm) {
frappe.ui.form.trigger("Tax Rule", "tax_type");
})

frappe.ui.form.on("Tax Rule", "customer", function(frm) {
if(frm.doc.customer) {
frappe.call({
Expand Down
Loading

0 comments on commit 1147548

Please sign in to comment.