Merge branch 'develop' into fix_sl_rounding
This commit is contained in:
commit
dd02b5abf1
@ -5,7 +5,7 @@ import frappe
|
|||||||
from erpnext.hooks import regional_overrides
|
from erpnext.hooks import regional_overrides
|
||||||
from frappe.utils import getdate
|
from frappe.utils import getdate
|
||||||
|
|
||||||
__version__ = '13.0.0-dev'
|
__version__ = '13.0.1'
|
||||||
|
|
||||||
def get_default_company(user=None):
|
def get_default_company(user=None):
|
||||||
'''Get default company for user'''
|
'''Get default company for user'''
|
||||||
|
@ -42,10 +42,9 @@ let add_fields_to_mapping_table = function (frm) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
frappe.meta.get_docfield("Bank Transaction Mapping", "bank_transaction_field",
|
frm.fields_dict.bank_transaction_mapping.grid.update_docfield_property(
|
||||||
frm.doc.name).options = options;
|
'bank_transaction_field', 'options', options
|
||||||
|
);
|
||||||
frm.fields_dict.bank_transaction_mapping.grid.refresh();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {
|
erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {
|
||||||
|
@ -327,18 +327,16 @@ erpnext.accounts.JournalEntry = frappe.ui.form.Controller.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setup_balance_formatter: function() {
|
setup_balance_formatter: function() {
|
||||||
var me = this;
|
const formatter = function(value, df, options, doc) {
|
||||||
$.each(["balance", "party_balance"], function(i, field) {
|
|
||||||
var df = frappe.meta.get_docfield("Journal Entry Account", field, me.frm.doc.name);
|
|
||||||
df.formatter = function(value, df, options, doc) {
|
|
||||||
var currency = frappe.meta.get_field_currency(df, doc);
|
var currency = frappe.meta.get_field_currency(df, doc);
|
||||||
var dr_or_cr = value ? ('<label>' + (value > 0.0 ? __("Dr") : __("Cr")) + '</label>') : "";
|
var dr_or_cr = value ? ('<label>' + (value > 0.0 ? __("Dr") : __("Cr")) + '</label>') : "";
|
||||||
return "<div style='text-align: right'>"
|
return "<div style='text-align: right'>"
|
||||||
+ ((value==null || value==="") ? "" : format_currency(Math.abs(value), currency))
|
+ ((value==null || value==="") ? "" : format_currency(Math.abs(value), currency))
|
||||||
+ " " + dr_or_cr
|
+ " " + dr_or_cr
|
||||||
+ "</div>";
|
+ "</div>";
|
||||||
}
|
};
|
||||||
})
|
this.frm.fields_dict.accounts.grid.update_docfield_property('balance', 'formatter', formatter);
|
||||||
|
this.frm.fields_dict.accounts.grid.update_docfield_property('party_balance', 'formatter', formatter);
|
||||||
},
|
},
|
||||||
|
|
||||||
reference_name: function(doc, cdt, cdn) {
|
reference_name: function(doc, cdt, cdn) {
|
||||||
@ -431,15 +429,6 @@ cur_frm.cscript.validate = function(doc,cdt,cdn) {
|
|||||||
cur_frm.cscript.update_totals(doc);
|
cur_frm.cscript.update_totals(doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.select_print_heading = function(doc,cdt,cdn){
|
|
||||||
if(doc.select_print_heading){
|
|
||||||
// print heading
|
|
||||||
cur_frm.pformat.print_heading = doc.select_print_heading;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
cur_frm.pformat.print_heading = __("Journal Entry");
|
|
||||||
}
|
|
||||||
|
|
||||||
frappe.ui.form.on("Journal Entry Account", {
|
frappe.ui.form.on("Journal Entry Account", {
|
||||||
party: function(frm, cdt, cdn) {
|
party: function(frm, cdt, cdn) {
|
||||||
var d = frappe.get_doc(cdt, cdn);
|
var d = frappe.get_doc(cdt, cdn);
|
||||||
@ -511,8 +500,11 @@ $.extend(erpnext.journal_entry, {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$.each(field_label_map, function (fieldname, label) {
|
$.each(field_label_map, function (fieldname, label) {
|
||||||
var df = frappe.meta.get_docfield("Journal Entry Account", fieldname, frm.doc.name);
|
frm.fields_dict.accounts.grid.update_docfield_property(
|
||||||
df.label = frm.doc.multi_currency ? (label + " in Account Currency") : label;
|
fieldname,
|
||||||
|
'label',
|
||||||
|
frm.doc.multi_currency ? (label + " in Account Currency") : label
|
||||||
|
);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@
|
|||||||
"idx": 1,
|
"idx": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2020-06-24 14:06:54.833738",
|
"modified": "2020-06-26 14:06:54.833738",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Journal Entry Account",
|
"name": "Journal Entry Account",
|
||||||
|
@ -234,8 +234,9 @@ erpnext.accounts.PaymentReconciliationController = frappe.ui.form.Controller.ext
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (invoices) {
|
if (invoices) {
|
||||||
frappe.meta.get_docfield("Payment Reconciliation Payment", "invoice_number",
|
this.frm.fields_dict.payment.grid.update_docfield_property(
|
||||||
me.frm.doc.name).options = "\n" + invoices.join("\n");
|
'invoice_number', 'options', "\n" + invoices.join("\n")
|
||||||
|
);
|
||||||
|
|
||||||
$.each(me.frm.doc.payments || [], function(i, p) {
|
$.each(me.frm.doc.payments || [], function(i, p) {
|
||||||
if(!in_list(invoices, cstr(p.invoice_number))) p.invoice_number = null;
|
if(!in_list(invoices, cstr(p.invoice_number))) p.invoice_number = null;
|
||||||
|
@ -108,7 +108,6 @@ class POSInvoice(SalesInvoice):
|
|||||||
filters = { "item_code": d.item_code, "warehouse": d.warehouse }
|
filters = { "item_code": d.item_code, "warehouse": d.warehouse }
|
||||||
if d.batch_no:
|
if d.batch_no:
|
||||||
filters["batch_no"] = d.batch_no
|
filters["batch_no"] = d.batch_no
|
||||||
|
|
||||||
reserved_serial_nos = get_pos_reserved_serial_nos(filters)
|
reserved_serial_nos = get_pos_reserved_serial_nos(filters)
|
||||||
serial_nos = get_serial_nos(d.serial_no)
|
serial_nos = get_serial_nos(d.serial_no)
|
||||||
invalid_serial_nos = [s for s in serial_nos if s in reserved_serial_nos]
|
invalid_serial_nos = [s for s in serial_nos if s in reserved_serial_nos]
|
||||||
|
@ -70,6 +70,7 @@ class POSProfile(Document):
|
|||||||
{"parent": d.mode_of_payment, "company": self.company},
|
{"parent": d.mode_of_payment, "company": self.company},
|
||||||
"default_account"
|
"default_account"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not account:
|
if not account:
|
||||||
invalid_modes.append(get_link_to_form("Mode of Payment", d.mode_of_payment))
|
invalid_modes.append(get_link_to_form("Mode of Payment", d.mode_of_payment))
|
||||||
|
|
||||||
|
@ -92,11 +92,21 @@ def make_pos_profile(**args):
|
|||||||
"write_off_cost_center": args.write_off_cost_center or "_Test Write Off Cost Center - _TC"
|
"write_off_cost_center": args.write_off_cost_center or "_Test Write Off Cost Center - _TC"
|
||||||
})
|
})
|
||||||
|
|
||||||
payments = [{
|
mode_of_payment = frappe.get_doc("Mode of Payment", "Cash")
|
||||||
|
company = args.company or "_Test Company"
|
||||||
|
default_account = args.income_account or "Sales - _TC"
|
||||||
|
|
||||||
|
if not frappe.db.get_value("Mode of Payment Account", {"company": company, "parent": "Cash"}):
|
||||||
|
mode_of_payment.append("accounts", {
|
||||||
|
"company": company,
|
||||||
|
"default_account": default_account
|
||||||
|
})
|
||||||
|
mode_of_payment.save()
|
||||||
|
|
||||||
|
pos_profile.append("payments", {
|
||||||
'mode_of_payment': 'Cash',
|
'mode_of_payment': 'Cash',
|
||||||
'default': 1
|
'default': 1
|
||||||
}]
|
})
|
||||||
pos_profile.set("payments", payments)
|
|
||||||
|
|
||||||
if not frappe.db.exists("POS Profile", args.name or "_Test POS Profile"):
|
if not frappe.db.exists("POS Profile", args.name or "_Test POS Profile"):
|
||||||
pos_profile.insert()
|
pos_profile.insert()
|
||||||
|
@ -16,8 +16,11 @@ frappe.ui.form.on('POS Settings', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
frappe.meta.get_docfield("POS Field", "fieldname", frm.doc.name).options = [""].concat(fields);
|
frm.fields_dict.invoice_fields.grid.update_docfield_property(
|
||||||
|
'fieldname', 'options', [""].concat(fields)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ def apply_pricing_rule_on_transaction(doc):
|
|||||||
|
|
||||||
if not d.get(pr_field): continue
|
if not d.get(pr_field): continue
|
||||||
|
|
||||||
if d.validate_applied_rule and doc.get(field) < d.get(pr_field):
|
if d.validate_applied_rule and doc.get(field) is not None and doc.get(field) < d.get(pr_field):
|
||||||
frappe.msgprint(_("User has not applied rule on the invoice {0}")
|
frappe.msgprint(_("User has not applied rule on the invoice {0}")
|
||||||
.format(doc.name))
|
.format(doc.name))
|
||||||
else:
|
else:
|
||||||
|
@ -92,7 +92,7 @@ frappe.ui.form.on('Process Statement Of Accounts', {
|
|||||||
frm.refresh_field('customers');
|
frm.refresh_field('customers');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
frappe.msgprint('No Customers found with selected options.');
|
frappe.throw('No Customers found with selected options.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -126,9 +126,11 @@ def get_customers_based_on_sales_person(sales_person):
|
|||||||
sales_person_records = frappe._dict()
|
sales_person_records = frappe._dict()
|
||||||
for d in records:
|
for d in records:
|
||||||
sales_person_records.setdefault(d.parenttype, set()).add(d.parent)
|
sales_person_records.setdefault(d.parenttype, set()).add(d.parent)
|
||||||
customers = frappe.get_list('Customer', fields=['name', 'email_id'], \
|
if sales_person_records.get('Customer'):
|
||||||
|
return frappe.get_list('Customer', fields=['name', 'email_id'], \
|
||||||
filters=[['name', 'in', list(sales_person_records['Customer'])]])
|
filters=[['name', 'in', list(sales_person_records['Customer'])]])
|
||||||
return customers
|
else:
|
||||||
|
return []
|
||||||
|
|
||||||
def get_recipients_and_cc(customer, doc):
|
def get_recipients_and_cc(customer, doc):
|
||||||
recipients = []
|
recipients = []
|
||||||
|
@ -496,15 +496,6 @@ cur_frm.fields_dict['items'].grid.get_field('project').get_query = function(doc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.select_print_heading = function(doc,cdt,cdn){
|
|
||||||
if(doc.select_print_heading){
|
|
||||||
// print heading
|
|
||||||
cur_frm.pformat.print_heading = doc.select_print_heading;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
cur_frm.pformat.print_heading = __("Purchase Invoice");
|
|
||||||
}
|
|
||||||
|
|
||||||
frappe.ui.form.on("Purchase Invoice", {
|
frappe.ui.form.on("Purchase Invoice", {
|
||||||
setup: function(frm) {
|
setup: function(frm) {
|
||||||
frm.custom_make_buttons = {
|
frm.custom_make_buttons = {
|
||||||
|
@ -1370,7 +1370,7 @@
|
|||||||
"idx": 204,
|
"idx": 204,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-30 21:45:58.334107",
|
"modified": "2021-03-30 22:45:58.334107",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Purchase Invoice",
|
"name": "Purchase Invoice",
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||||
// License: GNU General Public License v3. See license.txt
|
// License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
// print heading
|
|
||||||
cur_frm.pformat.print_heading = 'Invoice';
|
|
||||||
|
|
||||||
{% include 'erpnext/selling/sales_common.js' %};
|
{% include 'erpnext/selling/sales_common.js' %};
|
||||||
frappe.provide("erpnext.accounts");
|
frappe.provide("erpnext.accounts");
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ from erpnext.accounts.deferred_revenue import validate_service_stop_date
|
|||||||
from erpnext.accounts.doctype.tax_withholding_category.tax_withholding_category import get_party_tax_withholding_details
|
from erpnext.accounts.doctype.tax_withholding_category.tax_withholding_category import get_party_tax_withholding_details
|
||||||
from frappe.model.utils import get_fetch_values
|
from frappe.model.utils import get_fetch_values
|
||||||
from frappe.contacts.doctype.address.address import get_address_display
|
from frappe.contacts.doctype.address.address import get_address_display
|
||||||
|
from erpnext.accounts.doctype.tax_withholding_category.tax_withholding_category import get_party_tax_withholding_details
|
||||||
|
|
||||||
from erpnext.healthcare.utils import manage_invoice_submit_cancel
|
from erpnext.healthcare.utils import manage_invoice_submit_cancel
|
||||||
|
|
||||||
@ -211,6 +212,9 @@ class SalesInvoice(SellingController):
|
|||||||
# this sequence because outstanding may get -ve
|
# this sequence because outstanding may get -ve
|
||||||
self.make_gl_entries()
|
self.make_gl_entries()
|
||||||
|
|
||||||
|
if self.update_stock == 1:
|
||||||
|
self.repost_future_sle_and_gle()
|
||||||
|
|
||||||
if self.update_stock == 1:
|
if self.update_stock == 1:
|
||||||
self.repost_future_sle_and_gle()
|
self.repost_future_sle_and_gle()
|
||||||
|
|
||||||
|
@ -1166,10 +1166,12 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
|
|
||||||
def test_create_so_with_margin(self):
|
def test_create_so_with_margin(self):
|
||||||
si = create_sales_invoice(item_code="_Test Item", qty=1, do_not_submit=True)
|
si = create_sales_invoice(item_code="_Test Item", qty=1, do_not_submit=True)
|
||||||
price_list_rate = 100
|
price_list_rate = flt(100) * flt(si.plc_conversion_rate)
|
||||||
si.items[0].price_list_rate = price_list_rate
|
si.items[0].price_list_rate = price_list_rate
|
||||||
si.items[0].margin_type = 'Percentage'
|
si.items[0].margin_type = 'Percentage'
|
||||||
si.items[0].margin_rate_or_amount = 25
|
si.items[0].margin_rate_or_amount = 25
|
||||||
|
si.items[0].discount_amount = 0.0
|
||||||
|
si.items[0].discount_percentage = 0.0
|
||||||
si.save()
|
si.save()
|
||||||
self.assertEqual(si.get("items")[0].rate, flt((price_list_rate*25)/100 + price_list_rate))
|
self.assertEqual(si.get("items")[0].rate, flt((price_list_rate*25)/100 + price_list_rate))
|
||||||
|
|
||||||
|
@ -443,6 +443,16 @@
|
|||||||
"onboard": 0,
|
"onboard": 0,
|
||||||
"type": "Link"
|
"type": "Link"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"dependencies": "GL Entry",
|
||||||
|
"hidden": 0,
|
||||||
|
"is_query_report": 1,
|
||||||
|
"label": "UAE VAT 201",
|
||||||
|
"link_to": "UAE VAT 201",
|
||||||
|
"link_type": "Report",
|
||||||
|
"onboard": 0,
|
||||||
|
"type": "Link"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"is_query_report": 0,
|
"is_query_report": 0,
|
||||||
|
471
erpnext/change_log/v13/v13_0_0.md
Normal file
471
erpnext/change_log/v13/v13_0_0.md
Normal file
@ -0,0 +1,471 @@
|
|||||||
|
# Version 13.0.0 Release Notes
|
||||||
|
|
||||||
|
### Accounting
|
||||||
|
- [New and refreshed POS](https://github.com/frappe/erpnext/pull/20789)
|
||||||
|
- [GST E-invoicing for India](https://docs.erpnext.com/docs/user/manual/en/regional/india/setup-e-invoicing)
|
||||||
|
- [Distributed Cost Center](https://docs.erpnext.com/docs/user/manual/en/accounts/distributed-cost-center)
|
||||||
|
- [Process Bulk Statement Of Accounts](https://docs.erpnext.com/docs/user/manual/en/accounts/process-statement-of-accounts)
|
||||||
|
- [More controlled deferred revenue booking](https://docs.erpnext.com/docs/user/manual/en/accounts/process-deferred-accounting)
|
||||||
|
- [Dunning](https://docs.erpnext.com/docs/user/manual/en/accounts/dunning)
|
||||||
|
- [Journal Entry Template](https://docs.erpnext.com/docs/user/manual/en/accounts/journal-entry-template)
|
||||||
|
- [POS Register report](https://github.com/frappe/erpnext/pull/23313)
|
||||||
|
- [UAE VAT 201 Report](https://github.com/frappe/erpnext/pull/23447)
|
||||||
|
|
||||||
|
|
||||||
|
### Loan Management
|
||||||
|
- [Loan Application](https://docs.erpnext.com/docs/user/manual/en/loan-management/loan-application)
|
||||||
|
- [Loan](https://docs.erpnext.com/docs/user/manual/en/loan-management/loan)
|
||||||
|
- [Loan Security Pledge](https://docs.erpnext.com/docs/user/manual/en/loan-management/loan-security-pledge)
|
||||||
|
- [Loan Disbursement](https://docs.erpnext.com/docs/user/manual/en/loan-management/loan-disbursement)
|
||||||
|
- [Loan Repayment](https://docs.erpnext.com/docs/user/manual/en/loan-management/loan-repayment)
|
||||||
|
- [Loan Interest Accrual](https://docs.erpnext.com/docs/user/manual/en/loan-management/loan-interest-accrual)
|
||||||
|
- [Loan Write Off](https://docs.erpnext.com/docs/user/manual/en/loan-management/loan-write-off)
|
||||||
|
|
||||||
|
### Healthcare
|
||||||
|
- [Refactored Healthcare Module](https://docs.erpnext.com/docs/user/manual/en/healthcare)
|
||||||
|
- [Rehabilitation Module](https://docs.erpnext.com/docs/user/manual/en/healthcare/exercise_type)
|
||||||
|
- [Laboratory Module](https://docs.erpnext.com/docs/user/manual/en/healthcare/setup_laboratory)
|
||||||
|
- [Patient Progress Page](https://github.com/frappe/erpnext/pull/22474)
|
||||||
|
- [Inpatient Medication Order and Entry](https://docs.erpnext.com/docs/user/manual/en/healthcare/inpatient_medication_entry)
|
||||||
|
- [Therapy Plan Template](https://docs.erpnext.com/docs/user/manual/en/healthcare/therapy_plan)
|
||||||
|
- [Multi company support in Healthcare](https://github.com/frappe/erpnext/pull/21290)
|
||||||
|
- [Inpatient Medication Orders Script Report](https://github.com/frappe/erpnext/pull/23984)
|
||||||
|
- [Patient History Enhancements](https://github.com/frappe/erpnext/pull/24033)
|
||||||
|
|
||||||
|
|
||||||
|
### Stock
|
||||||
|
- [Putaway](https://docs.erpnext.com/docs/user/manual/en/stock/putaway-rule)
|
||||||
|
- [More accurate stock valuation in case of back-dated stock transactions](https://github.com/frappe/erpnext/pull/24183)
|
||||||
|
- [Repost item costing via background job](https://github.com/frappe/erpnext/pull/24183)
|
||||||
|
- [Item valuation for internal stock transfers](https://github.com/frappe/erpnext/pull/24200)
|
||||||
|
- [Multi currency in Landed Cost Voucher](https://github.com/frappe/erpnext/pull/24127)
|
||||||
|
- [Formula based Quality Inspection](https://docs.erpnext.com/docs/user/manual/en/stock/quality-inspection)
|
||||||
|
- [Value Based and Numeric Quality Inspection](https://github.com/frappe/erpnext/pull/24181)
|
||||||
|
- [Shipment](https://github.com/frappe/erpnext/pull/22914)
|
||||||
|
- [Return tracking in PR/DN](https://github.com/frappe/erpnext/pull/22859)
|
||||||
|
|
||||||
|
### Manufacturing
|
||||||
|
- [Production forecasting using Exponential Smoothing method](https://docs.erpnext.com/docs/user/manual/en/manufacturing/reports/demand-driven-forecasting)
|
||||||
|
- [BOM Template](https://docs.erpnext.com/docs/user/manual/en/manufacturing/bill-of-materials#34-bom-template)
|
||||||
|
- [Downtime Entry](https://docs.erpnext.com/docs/user/manual/en/manufacturing/downtime-entry)
|
||||||
|
- [Quality Inspection on Job Card](https://github.com/frappe/erpnext/pull/23964)
|
||||||
|
- New Reports
|
||||||
|
- Production Planning Report ([#21763](https://github.com/frappe/erpnext/pull/21763))
|
||||||
|
- BOM Operations Time ([#21763](https://github.com/frappe/erpnext/pull/21763))
|
||||||
|
- Work Order Summary ([#21430](https://github.com/frappe/erpnext/pull/21430))
|
||||||
|
- Job card Summary ([#21430](https://github.com/frappe/erpnext/pull/21430))
|
||||||
|
- Downtime Analysis ([#21430](https://github.com/frappe/erpnext/pull/21430))
|
||||||
|
- Quality Inspection ([#21430](https://github.com/frappe/erpnext/pull/21430))
|
||||||
|
|
||||||
|
### HR
|
||||||
|
- [Leave policy assignment](https://github.com/frappe/erpnext/pull/23112)
|
||||||
|
- [In and Out time in attendance](https://github.com/frappe/erpnext/pull/21547)
|
||||||
|
- [Shift management](https://docs.erpnext.com/docs/user/manual/en/human-resources/shift-management)
|
||||||
|
- [Recruitment analytics](https://github.com/frappe/erpnext/pull/21732)
|
||||||
|
- [Bulk Mark Attendance](https://github.com/frappe/erpnext/pull/20062)
|
||||||
|
- [Leave type with partial payment](https://github.com/frappe/erpnext/pull/23173)
|
||||||
|
- New and enhanced reports
|
||||||
|
- Employee Analytics ([#21705](https://github.com/frappe/erpnext/pull/21705))
|
||||||
|
- Employee Leave Balance ([#20754](https://github.com/frappe/erpnext/pull/20754))
|
||||||
|
- Employee Leave Balance Summary ([#20754](https://github.com/frappe/erpnext/pull/20754))
|
||||||
|
|
||||||
|
### Payroll
|
||||||
|
- [Multi-currency payroll](https://github.com/frappe/erpnext/pull/23519)
|
||||||
|
- [Payroll based on attendance](https://github.com/frappe/erpnext/pull/21258)
|
||||||
|
- [Payroll based on employee cost center](https://github.com/frappe/erpnext/pull/21609)
|
||||||
|
- [Recurring Additional Salary](https://github.com/frappe/erpnext/pull/20936)
|
||||||
|
- [Compute Year to Date for Salary Slip components](https://github.com/frappe/erpnext/pull/24362)
|
||||||
|
- New Reports
|
||||||
|
- Income Tax Deductions
|
||||||
|
- Professional Tax Deductions
|
||||||
|
- Provident Fund Deductions
|
||||||
|
- Total Salary Payments Based on Payment Mode
|
||||||
|
- Salary Payments via ECS
|
||||||
|
|
||||||
|
### CRM
|
||||||
|
- [Social Media Post](https://docs.erpnext.com/docs/user/manual/en/CRM/social-media-post)
|
||||||
|
- [Make Quotation against Blanket Order](https://docs.erpnext.com/docs/user/manual/en/selling/blanket-order)
|
||||||
|
- [Calendar View for Opportunity](https://github.com/frappe/erpnext/pull/21280)
|
||||||
|
|
||||||
|
### Selling
|
||||||
|
- [Batch wise item pricing](https://github.com/frappe/erpnext/pull/24470)
|
||||||
|
- [Refreshed shopping cart](https://github.com/frappe/erpnext/pull/22617)
|
||||||
|
- [Territory-wise Sales Report](https://github.com/frappe/erpnext/pull/20428)
|
||||||
|
|
||||||
|
#### Buying
|
||||||
|
- [Multi UOM support in Request for Quotation](https://github.com/frappe/erpnext/pull/22249)
|
||||||
|
- [Provision to make RFQ against Opportunity](https://github.com/frappe/erpnext/pull/22765)
|
||||||
|
- [Item Rate in Stock UOM in purchase cycle](https://github.com/frappe/erpnext/pull/24315)
|
||||||
|
- New Reports
|
||||||
|
- Requested Items To Order ([#21611](https://github.com/frappe/erpnext/pull/21611))
|
||||||
|
- Purchase Order Analysis ([#21611](https://github.com/frappe/erpnext/pull/21611))
|
||||||
|
- Supplier Quotation Comparison report ([#23323](https://github.com/frappe/erpnext/pull/23323))
|
||||||
|
|
||||||
|
### Project
|
||||||
|
- [Project template with dependent tasks](https://github.com/frappe/erpnext/pull/24092)
|
||||||
|
- [Project Summary Report](https://github.com/frappe/erpnext/pull/21587)
|
||||||
|
|
||||||
|
### Support
|
||||||
|
- [Help Articles on support portal](https://github.com/frappe/erpnext/pull/22194)
|
||||||
|
- [Issue Metrics and SLA Enhancements](https://github.com/frappe/erpnext/pull/21617)
|
||||||
|
- [Issue Summary Script Report](https://docs.erpnext.com/docs/user/manual/en/support/support_reports)
|
||||||
|
- [Issue Analytics Script Report](https://docs.erpnext.com/docs/user/manual/en/support/support_reports)
|
||||||
|
|
||||||
|
### Non-Profits
|
||||||
|
- [80G Certificates and Donations](https://docs.erpnext.com/docs/user/manual/en/non_profit/tax_exemption_80g_certificate)
|
||||||
|
|
||||||
|
#### Integrations
|
||||||
|
- [Woocommerce Integration](https://docs.erpnext.com/docs/user/manual/en/erpnext_integration/woocommerce_integration)
|
||||||
|
- [Taxjar Integration](https://github.com/frappe/erpnext/pull/21047)
|
||||||
|
- [M-pesa Integration](https://docs.erpnext.com/docs/user/manual/en/erpnext_integration/mpesa-integration)
|
||||||
|
- [Telephony feature using Twillio](https://github.com/frappe/erpnext/pull/24032)
|
||||||
|
- [Voice Call Settings](https://github.com/frappe/erpnext/pull/24126)
|
||||||
|
|
||||||
|
|
||||||
|
#### Other Enhancements and Fixes
|
||||||
|
- Accounting Dimensions in Budget Variance Report ([#19973](https://github.com/frappe/erpnext/pull/19973))
|
||||||
|
- "Sync Now" option in Plaid Settings ([#23602](https://github.com/frappe/erpnext/pull/23602))
|
||||||
|
- Custom Fields in POS ([#19876](https://github.com/frappe/erpnext/pull/19876))
|
||||||
|
- [Inter Warehouse Stock Transfer in Purchase Receipt](https://docs.erpnext.com/docs/user/manual/en/stock/articles/material-transfer-from-delivery-note)
|
||||||
|
- [Accounts Payable Report based on Payment Terms](https://docs.erpnext.com/docs/user/manual/en/accounts/accounting-reports)
|
||||||
|
- Configurable accounting dimension filters and validations ([#23912](https://github.com/frappe/erpnext/pull/23912))
|
||||||
|
- Territory tree in Customer Acquisition and Loyalty report ([#21668](https://github.com/frappe/erpnext/pull/21668))
|
||||||
|
- Allow Purchase Invoice Creation Without Purchase Order Checkbox in Supplier ([#20864](https://github.com/frappe/erpnext/pull/20864))
|
||||||
|
- Gross Profit In Quotation ([#21795](https://github.com/frappe/erpnext/pull/21795))
|
||||||
|
- Notify credit controller users for credit limit extension via Email ([#22213](https://github.com/frappe/erpnext/pull/22213))
|
||||||
|
- Run MRP at parent level in the production plan and make material transfer based upon materials availability ([#21545](https://github.com/frappe/erpnext/pull/21545))
|
||||||
|
- Balance Serial Nos in Stock Ledger report ([#23675](https://github.com/frappe/erpnext/pull/23675))
|
||||||
|
- Youtube interactions via Video ([#22867](https://github.com/frappe/erpnext/pull/22867))
|
||||||
|
- Consider Holiday List in Student Leave Application and Attendance ([#23388](https://github.com/frappe/erpnext/pull/23388))
|
||||||
|
- Patient appointment status changes ([#24201](https://github.com/frappe/erpnext/pull/24201))
|
||||||
|
- Sales order status filter added for production plan ([#23805](https://github.com/frappe/erpnext/pull/23805))
|
||||||
|
- Monthly attendance sheet report group by Department, Designation, Employee Grade and Branch ([#21331](https://github.com/frappe/erpnext/pull/21331))
|
||||||
|
- Upload Attendance template now have pre-filled holiday status ([#20947](https://github.com/frappe/erpnext/pull/20947))
|
||||||
|
- Provision to disable serial no and batch selector ([#24398](https://github.com/frappe/erpnext/pull/24398))
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>More</summary>
|
||||||
|
|
||||||
|
- Fetch Items from BOM in Stock Entry([#19498](https://github.com/frappe/erpnext/pull/19498))
|
||||||
|
- Supplier Sourced Items in BOM ([#23557](https://github.com/frappe/erpnext/pull/23557))
|
||||||
|
- Close Production Plan ([#23728](https://github.com/frappe/erpnext/pull/23728))
|
||||||
|
- Button to create Stock Entry for Drug Shortage ([#24012](https://github.com/frappe/erpnext/pull/24012))
|
||||||
|
- Added column cost center in Accounts Receivable report ([#23835](https://github.com/frappe/erpnext/pull/23835))
|
||||||
|
- Added jinja templating in Contract Template ([#24046](https://github.com/frappe/erpnext/pull/24046))
|
||||||
|
- Make account number length configurable ([#23845](https://github.com/frappe/erpnext/pull/23845))
|
||||||
|
- Add company and correct filter in bank reconciliation statement ([#23614](https://github.com/frappe/erpnext/pull/23614))
|
||||||
|
- Added Condition field in Pricing Rule ([#23014](https://github.com/frappe/erpnext/pull/23014))
|
||||||
|
- Open lead status on next contact date ([#23445](https://github.com/frappe/erpnext/pull/23445))
|
||||||
|
- [Tax Category in POS Profile](https://docs.erpnext.com/docs/user/manual/en/accounts/pos-profile)
|
||||||
|
- Added phone field in product Inquiry ([#23170](https://github.com/frappe/erpnext/pull/23170))
|
||||||
|
- Allow Discharge despite Unbilled Healthcare Services ([#24281](https://github.com/frappe/erpnext/pull/24281))
|
||||||
|
- Do Not Bill Patient Encounters for Inpatients ([#24355](https://github.com/frappe/erpnext/pull/24355))
|
||||||
|
- Autofill Supplier pop-up when only 1 Supplier in RFQ ([#22512](https://github.com/frappe/erpnext/pull/22512))
|
||||||
|
- Accounting entries for service item in Purchase receipt ([#22223](https://github.com/frappe/erpnext/pull/22223))
|
||||||
|
- Added Project in Sales Analytics report ([#23309](https://github.com/frappe/erpnext/pull/23309))
|
||||||
|
- Added all companies option in employee tree to view employee across all companies ([#22573](https://github.com/frappe/erpnext/pull/22573))
|
||||||
|
- Email Group Option In Email Campaign ([#22731](https://github.com/frappe/erpnext/pull/22731))
|
||||||
|
- Stock Report Enhancements ([#21727](https://github.com/frappe/erpnext/pull/21727))
|
||||||
|
- Added range for age in stock ageing ([#22622](https://github.com/frappe/erpnext/pull/22622))
|
||||||
|
- Report Summary in Financial Statement([#20876](https://github.com/frappe/erpnext/pull/20876))
|
||||||
|
- Added sequence id in routing for the completion of operations sequentially ([#23641](https://github.com/frappe/erpnext/pull/23641))
|
||||||
|
- Nested Set filtering for Accounting Dimension
|
||||||
|
- Add/Remove Items from submitted Sales/Purchase Order
|
||||||
|
- Provision to edit Item Details from Marketplace
|
||||||
|
- Scan Barcode in Purchase Receipt
|
||||||
|
- Disable Rounded Totals Checkbox for Salary Slips in HR Settings
|
||||||
|
|
||||||
|
- Renamed Loan Management to Loan on Desk Page ([#21877](https://github.com/frappe/erpnext/pull/21877))
|
||||||
|
- Added Expense Approver field in Employee master ([#22244](https://github.com/frappe/erpnext/pull/22244))
|
||||||
|
- Bill all hours by default on Timesheet ([#22155](https://github.com/frappe/erpnext/pull/22155))
|
||||||
|
- Unable to cancel employee advance ([#22374](https://github.com/frappe/erpnext/pull/22374))
|
||||||
|
- Status error in purchase invoice ([#22351](https://github.com/frappe/erpnext/pull/22351))
|
||||||
|
- Item-wise sales and purchase register export ([#22184](https://github.com/frappe/erpnext/pull/22184))
|
||||||
|
- Billing address in for Purchase documents ([#22233](https://github.com/frappe/erpnext/pull/22233))
|
||||||
|
- Handle canceled entries in financial statements ([#22231](https://github.com/frappe/erpnext/pull/22231))
|
||||||
|
- Default period start date and period end date for financial statements ([#22011](https://github.com/frappe/erpnext/pull/22011))
|
||||||
|
- Update Packed Items via Update Items in Sales Order ([#22392](https://github.com/frappe/erpnext/pull/22392))
|
||||||
|
- Hide delete company transactions button if not system manager ([#21839](https://github.com/frappe/erpnext/pull/21839))
|
||||||
|
- Skipping total row for tree-view reports ([#22350](https://github.com/frappe/erpnext/pull/22350))
|
||||||
|
- Cancelled entries in tds payable monthly report ([#22131](https://github.com/frappe/erpnext/pull/22131))
|
||||||
|
- Inter-company Invoice currency for multicurrency transactions ([#21984](https://github.com/frappe/erpnext/pull/21984))
|
||||||
|
- Filter batches based on item and warehouse in Pick List (develop) ([#21780](https://github.com/frappe/erpnext/pull/21780))
|
||||||
|
- Set cost center in Expense Claim child based on parent (if missing) ([#22175](https://github.com/frappe/erpnext/pull/22175))
|
||||||
|
- Item wise backdated stock entry posting for immutable ledger ([#22366](https://github.com/frappe/erpnext/pull/22366))
|
||||||
|
- Shopping cart UI fixes ([#22137](https://github.com/frappe/erpnext/pull/22137))
|
||||||
|
- Filter Leave Type based on allocation for a particular employee ([#22050](https://github.com/frappe/erpnext/pull/22050))
|
||||||
|
- Party validation for inter-warehouse transaction ([#22186](https://github.com/frappe/erpnext/pull/22186))
|
||||||
|
- Manufacturing dashboard and work order summary chart ([#21946](https://github.com/frappe/erpnext/pull/21946))
|
||||||
|
- IP Admission and Discharge, Minor fixes ([#21817](https://github.com/frappe/erpnext/pull/21817))
|
||||||
|
- Validation of Purchase Order against Material Request missing ([#22192](https://github.com/frappe/erpnext/pull/22192))
|
||||||
|
- Staffing Plan validation ([#22379](https://github.com/frappe/erpnext/pull/22379))
|
||||||
|
- Do not allow backdated stock transactions in previous fiscal year ([#21967](https://github.com/frappe/erpnext/pull/21967))
|
||||||
|
- Employee Advance Return not working ([#21812](https://github.com/frappe/erpnext/pull/21812))
|
||||||
|
- Added card for reports on education desk ([#21853](https://github.com/frappe/erpnext/pull/21853))
|
||||||
|
- Refactored project summary report ([#21943](https://github.com/frappe/erpnext/pull/21943))
|
||||||
|
- Revenue and Customer Count only in date range in Customer Acquitition Report ([#22210](https://github.com/frappe/erpnext/pull/22210))
|
||||||
|
- Alternative item not working for subcontract ([#22386](https://github.com/frappe/erpnext/pull/22386))
|
||||||
|
- Unable to create batched Item ([#22393](https://github.com/frappe/erpnext/pull/22393))
|
||||||
|
- Filters for the manufacturing reports ([#21960](https://github.com/frappe/erpnext/pull/21960))
|
||||||
|
- Raw material warehouse in Production Planning Report ([#21982](https://github.com/frappe/erpnext/pull/21982))
|
||||||
|
- Allowed LWP leave types to select in Leave Application even if there is no allocation against them ([#22197](https://github.com/frappe/erpnext/pull/22197))
|
||||||
|
- Report not working on parameter Grade ([#21951](https://github.com/frappe/erpnext/pull/21951))
|
||||||
|
- Allow to enter Relieving date if employee status is Left ([#22242](https://github.com/frappe/erpnext/pull/22242))
|
||||||
|
- Resetting lost reason in opportunity and quotation ([#22378](https://github.com/frappe/erpnext/pull/22378))
|
||||||
|
- Filtering issues in opening invoice creation tool ([#21969](https://github.com/frappe/erpnext/pull/21969))
|
||||||
|
- Set default reference Id for "On Previous Row Amount" and "On Previous Row Total" ([#22346](https://github.com/frappe/erpnext/pull/22346))
|
||||||
|
- UX date range field separated in from and to date fields. ([#21765](https://github.com/frappe/erpnext/pull/21765))
|
||||||
|
- Enable show_configure_button when shopping cart is enabled ([#22468](https://github.com/frappe/erpnext/pull/22468))
|
||||||
|
- Setup status indicators for Job Offer and Job Applicant (develop) ([#22445](https://github.com/frappe/erpnext/pull/22445))
|
||||||
|
- Item-wise sales history report ([#22783](https://github.com/frappe/erpnext/pull/22783))
|
||||||
|
- Setting filter for project in kanban board ([#22717](https://github.com/frappe/erpnext/pull/22717))
|
||||||
|
- Dashboard For Timesheet ([#22750](https://github.com/frappe/erpnext/pull/22750))
|
||||||
|
- Handle custom statuses for the pause SLA configuration ([#22349](https://github.com/frappe/erpnext/pull/22349))
|
||||||
|
- Quality Feedback and Template ([#22571](https://github.com/frappe/erpnext/pull/22571))
|
||||||
|
- Unable to change link from new lead to existing customer ([#22787](https://github.com/frappe/erpnext/pull/22787))
|
||||||
|
- Move Issue List actions under 'Actions' dropdown (ux) ([#22710](https://github.com/frappe/erpnext/pull/22710))
|
||||||
|
- Cost center should only show option of selected company ([#22598](https://github.com/frappe/erpnext/pull/22598))
|
||||||
|
- Serial No Rename does not affect Stock Ledger Entry ([#22746](https://github.com/frappe/erpnext/pull/22746))
|
||||||
|
- Descriptions not copied while creating Fees from Fee Structure ([#22792](https://github.com/frappe/erpnext/pull/22792))
|
||||||
|
- Company filter for cost_center and expense_account in all sales and purchase transactions ([#22478](https://github.com/frappe/erpnext/pull/22478))
|
||||||
|
- Arrangements of filters for reports accounts payable & receivable ([#22636](https://github.com/frappe/erpnext/pull/22636))
|
||||||
|
- Update the project after task deletion so that the % completed shows correct value ([#22591](https://github.com/frappe/erpnext/pull/22591))
|
||||||
|
- Block Invalid Serial No updates in Maintenance Schedule ([#22665](https://github.com/frappe/erpnext/pull/22665))
|
||||||
|
- Fetch item price in sales invoice based on it's validity ([#22563](https://github.com/frappe/erpnext/pull/22563))
|
||||||
|
- Add view ledger button for cancelled docs ([#22432](https://github.com/frappe/erpnext/pull/22432))
|
||||||
|
- Allow creating SLA documents even if SLA tracking is not enabled ([#22608](https://github.com/frappe/erpnext/pull/22608))
|
||||||
|
- Quotation list view blank if quotation_to field not set as a standard filter ([#22672](https://github.com/frappe/erpnext/pull/22672))
|
||||||
|
- Salary deductions report fixes ([#22397](https://github.com/frappe/erpnext/pull/22397))
|
||||||
|
22727))
|
||||||
|
- Incorrect delivered qty in Supplier-Wise Sales Analytics ([#22631](https://github.com/frappe/erpnext/pull/22631))
|
||||||
|
- Moved parent warehouse to top section also added a section break ([#22708](https://github.com/frappe/erpnext/pull/22708))
|
||||||
|
- Skip Progress and Completed by fields on Task Duplication ([#22565](https://github.com/frappe/erpnext/pull/22565))
|
||||||
|
- Incorrect stock after merging the items ([#22526](https://github.com/frappe/erpnext/pull/22526))
|
||||||
|
- Letter head not found in opening invoice creation tool ([#22488](https://github.com/frappe/erpnext/pull/22488))
|
||||||
|
- Cannot cancel asset and asset movement ([#22441](https://github.com/frappe/erpnext/pull/22441))
|
||||||
|
- Fetch project-related info in Timesheet ([#22423](https://github.com/frappe/erpnext/pull/22423))
|
||||||
|
- Currency symbol not showing as per company currency in stock balance report ([#22724](https://github.com/frappe/erpnext/pull/22724))
|
||||||
|
- Add default cost center in payment reconciliation JV ([#22614](https://github.com/frappe/erpnext/pull/22614))
|
||||||
|
- Stock Reconciliation Invalid Quantity for Batched Item ([#22726](https://github.com/frappe/erpnext/pull/22726))
|
||||||
|
- Project link not set in accounts other than profit and loss accounts ([#22051](https://github.com/frappe/erpnext/pull/22051))
|
||||||
|
- Buying price for non stock item in gross profit report ([#22616](https://github.com/frappe/erpnext/pull/22616))
|
||||||
|
- Multi currency payment reconciliation ([#22738](https://github.com/frappe/erpnext/pull/22738))
|
||||||
|
- Cannot cancel assets with repair pending ([#22440](https://github.com/frappe/erpnext/pull/22440))
|
||||||
|
- Reset homepage to home after unchecking products page ([#22736](https://github.com/frappe/erpnext/pull/22736))
|
||||||
|
- Generic Message in previous doc validation for buying and selling ([#22546](https://github.com/frappe/erpnext/pull/22546))
|
||||||
|
- Expense claim outstanding while making payment entry ([#22735](https://github.com/frappe/erpnext/pull/22735))
|
||||||
|
- Take parent cost center for child if no cost center at child in expense claim ([#22496](https://github.com/frappe/erpnext/pull/22496))
|
||||||
|
- Consider company fiscal year for getting balance ([#22577](https://github.com/frappe/erpnext/pull/22577))
|
||||||
|
- Pick List empty table and Serial-Batch items handling ([#22426](https://github.com/frappe/erpnext/pull/22426))
|
||||||
|
- Show total row in print format of financial statement ([#22693](https://github.com/frappe/erpnext/pull/22693))
|
||||||
|
- Set Root as Parent if no parent in new tree view node ([#22497](https://github.com/frappe/erpnext/pull/22497))
|
||||||
|
- Multiple pos issues ([#23725](https://github.com/frappe/erpnext/pull/23725))
|
||||||
|
- Calculate taxes if tax is based on item quantity and inclusive on item price ([#23001](https://github.com/frappe/erpnext/pull/23001))
|
||||||
|
- Contact us button not visible in the website for the non variant items ([#23217](https://github.com/frappe/erpnext/pull/23217))
|
||||||
|
- Not able to make Material Request from Sales Order ([#23669](https://github.com/frappe/erpnext/pull/23669))
|
||||||
|
- Capture advance payments in payment order ([#23256](https://github.com/frappe/erpnext/pull/23256))
|
||||||
|
- Program and Course Enrollment fixes ([#23333](https://github.com/frappe/erpnext/pull/23333))
|
||||||
|
- Cannot create asset if cwip disabled and account not set ([#23580](https://github.com/frappe/erpnext/pull/23580))
|
||||||
|
- Cannot merge pos invoices with inclusive tax ([#23541](https://github.com/frappe/erpnext/pull/23541))
|
||||||
|
- Do not allow Company as accounting dimension ([#23755](https://github.com/frappe/erpnext/pull/23755))
|
||||||
|
- Set value of wrong Bank Account field in Payment Entry ([#22302](https://github.com/frappe/erpnext/pull/22302))
|
||||||
|
- Reverse journal entry for multi-currency ([#23165](https://github.com/frappe/erpnext/pull/23165))
|
||||||
|
- Updated integrations desk page ([#23772](https://github.com/frappe/erpnext/pull/23772))
|
||||||
|
- Assessment Result child table not visible when accessed via Assessment Plan dashboard ([#22880](https://github.com/frappe/erpnext/pull/22880))
|
||||||
|
- Conversion factor fixes in Stock Entry ([#23407](https://github.com/frappe/erpnext/pull/23407))
|
||||||
|
- Total calculations for multi-currency RCM invoices ([#23072](https://github.com/frappe/erpnext/pull/23072))
|
||||||
|
- Show accounts in financial statements upto level 20 ([#23718](https://github.com/frappe/erpnext/pull/23718))
|
||||||
|
- Consolidated financial statement sums values into wrong parent ([#23288](https://github.com/frappe/erpnext/pull/23288))
|
||||||
|
- Set SLA variance in seconds for Duration fieldtype ([#23765](https://github.com/frappe/erpnext/pull/23765))
|
||||||
|
- Added missing reports on selling desk ([#23548](https://github.com/frappe/erpnext/pull/23548))
|
||||||
|
- Fixed heading in the mobile view ([#23145](https://github.com/frappe/erpnext/pull/23145))
|
||||||
|
- Misleading filters on Item tax Template Link field ([#22918](https://github.com/frappe/erpnext/pull/22918))
|
||||||
|
- Do not consider opening entries for TDS calculation ([#23597](https://github.com/frappe/erpnext/pull/23597))
|
||||||
|
- Attendance calendar map fix ([#23245](https://github.com/frappe/erpnext/pull/23245))
|
||||||
|
- Post cancellation accounting entry on posting date instead of current ([#23361](https://github.com/frappe/erpnext/pull/23361))
|
||||||
|
- Set Customer only if Contact is present ([#23704](https://github.com/frappe/erpnext/pull/23704))
|
||||||
|
- Add Delivery Note Count in Sales Invoice Dashboard ([#23161](https://github.com/frappe/erpnext/pull/23161))
|
||||||
|
- Breadcrumbs for Maintenance Visit and Schedule ([#23369](https://github.com/frappe/erpnext/pull/23369))
|
||||||
|
- Raise Error on over receipt/consumption for sub-contracted PR ([#23195](https://github.com/frappe/erpnext/pull/23195))
|
||||||
|
- Validate if company not set in the Payment Entry ([#23419](https://github.com/frappe/erpnext/pull/23419))
|
||||||
|
- Ignore company and bank account doctype while deleting company transactions ([#22953](https://github.com/frappe/erpnext/pull/22953))
|
||||||
|
- Sales funnel data is inconsistent ([#23110](https://github.com/frappe/erpnext/pull/23110))
|
||||||
|
- Credit Limit Email not working ([#23059](https://github.com/frappe/erpnext/pull/23059))
|
||||||
|
- Add Company in list fields to fetch for Expense Claim ([#23007](https://github.com/frappe/erpnext/pull/23007))
|
||||||
|
- Issue form cleaned up and renamed Minutes to First Response field ([#23066](https://github.com/frappe/erpnext/pull/23066))
|
||||||
|
- Quotation lost reason options fix ([#22814](https://github.com/frappe/erpnext/pull/22814))
|
||||||
|
- Tax amounts in HSN Wise Outward summary ([#23076](https://github.com/frappe/erpnext/pull/23076))
|
||||||
|
- Patient Appointment not able to save ([#23434](https://github.com/frappe/erpnext/pull/23434))
|
||||||
|
- Removed Working Hours field from Company ([#23009](https://github.com/frappe/erpnext/pull/23009))
|
||||||
|
- Added check-in time validation in the Inpatient Record - Transfer ([#22958](https://github.com/frappe/erpnext/pull/22958))
|
||||||
|
- Handle Blank from/to range in Numeric Item Attribute ([#23483](https://github.com/frappe/erpnext/pull/23483))
|
||||||
|
- Sequence Matcher error in Bank Reconciliation ([#23539](https://github.com/frappe/erpnext/pull/23539))
|
||||||
|
- Fixed Conversion Factor rate for the BOM Exploded Item ([#23151](https://github.com/frappe/erpnext/pull/23151))
|
||||||
|
- Payment Schedule not fetching ([#23476](https://github.com/frappe/erpnext/pull/23476))
|
||||||
|
- Validate if removed Item Attributes exist in variant items ([#22911](https://github.com/frappe/erpnext/pull/22911))
|
||||||
|
- Set default billing address for purchase documents ([#22950](https://github.com/frappe/erpnext/pull/22950))
|
||||||
|
- Added help link in navbar settings ([#22943](https://github.com/frappe/erpnext/pull/22943))
|
||||||
|
- Apply TDS on Purchase Invoice creation from Purchase Order and Purchase Receipt ([#23282](https://github.com/frappe/erpnext/pull/23282))
|
||||||
|
- Education Module fixes ([#23714](https://github.com/frappe/erpnext/pull/23714))
|
||||||
|
- Filter out cancelled entries in customer ledger summary ([#23205](https://github.com/frappe/erpnext/pull/23205))
|
||||||
|
- Fiscal Year and Tax Rates for Italy ([#23623](https://github.com/frappe/erpnext/pull/23623))
|
||||||
|
- Production Plan incorrect Work Order qty ([#23264](https://github.com/frappe/erpnext/pull/23264))
|
||||||
|
- Added new filters in the Batch-wise Balance History report ([#23676](https://github.com/frappe/erpnext/pull/23676))
|
||||||
|
- Update state code and union territory for Daman and Diu ([#22988](https://github.com/frappe/erpnext/pull/22988))
|
||||||
|
- Set Stock UOM in item while creating Material Request from Stock Entry ([#23436](https://github.com/frappe/erpnext/pull/23436))
|
||||||
|
- Sales Order to Purchase Order flow improvement ([#23357](https://github.com/frappe/erpnext/pull/23357))
|
||||||
|
- Student Admission and Student Applicant fixes ([#23515](https://github.com/frappe/erpnext/pull/23515))
|
||||||
|
- Loan disbursement amount validation ([#24000](https://github.com/frappe/erpnext/pull/24000))
|
||||||
|
- Making company address read-only in delivery note ([#23890](https://github.com/frappe/erpnext/pull/23890))
|
||||||
|
- BOM stock report color showing always red ([#23994](https://github.com/frappe/erpnext/pull/23994))
|
||||||
|
- Added filter for customer field in Issue ([#24051](https://github.com/frappe/erpnext/pull/24051))
|
||||||
|
- Added project link in timesheet form ([#23764](https://github.com/frappe/erpnext/pull/23764))
|
||||||
|
- Update integrations desk page ([#23767](https://github.com/frappe/erpnext/pull/23767))
|
||||||
|
- Place of supply change on address change ([#23941](https://github.com/frappe/erpnext/pull/23941))
|
||||||
|
- TDS calculation, skip invoices with "Apply Tax Withholding Amount" has disabled ([#23672](https://github.com/frappe/erpnext/pull/23672))
|
||||||
|
- Auto fetch serial nos with modified conversion factor ([#23854](https://github.com/frappe/erpnext/pull/23854))
|
||||||
|
- Default cost center in item master not set in stock entry ([#23877](https://github.com/frappe/erpnext/pull/23877))
|
||||||
|
- Incorrect de-link serial no and batch ([#23947](https://github.com/frappe/erpnext/pull/23947))
|
||||||
|
- Accounting for internal transfer invoices within same company ([#24021](https://github.com/frappe/erpnext/pull/24021))
|
||||||
|
- Multiple pricing rule with margin type as Percentage is not working ([#24205](https://github.com/frappe/erpnext/pull/24205))
|
||||||
|
- Added Purchase Order to Global Search ([#24055](https://github.com/frappe/erpnext/pull/24055))
|
||||||
|
- Cannot expand row in update items dialog ([#23839](https://github.com/frappe/erpnext/pull/23839))
|
||||||
|
- Maintain stock can't be changed it there is product bundle ([#23989](https://github.com/frappe/erpnext/pull/23989))
|
||||||
|
- SO to PO Mapping Issue ([#23820](https://github.com/frappe/erpnext/pull/23820))
|
||||||
|
- Asset with value zero doesn't show up in fixed asset register ([#24091](https://github.com/frappe/erpnext/pull/24091))
|
||||||
|
- Cannot save customer email & phone ([#23797](https://github.com/frappe/erpnext/pull/23797))
|
||||||
|
- Incorrect balance value in stock balance report ([#24048](https://github.com/frappe/erpnext/pull/24048))
|
||||||
|
- Payment Terms not fetched in Purchase Invoice from Purchase Receipt ([#23735](https://github.com/frappe/erpnext/pull/23735))
|
||||||
|
- Fix for LMS Sign Up link ([#23743](https://github.com/frappe/erpnext/pull/23743))
|
||||||
|
- Incorrect stock quantity if 'Allow Multiple Material Consumption… ([#24116](https://github.com/frappe/erpnext/pull/24116))
|
||||||
|
- Added wrong absent days calculation in salary slip ([#23897](https://github.com/frappe/erpnext/pull/23897))
|
||||||
|
- Purchase receipt to purchase invoice bill date mapping ([#23967](https://github.com/frappe/erpnext/pull/23967))
|
||||||
|
- Overriding po ([#24022](https://github.com/frappe/erpnext/pull/24022))
|
||||||
|
- Do not cancel reference document on Quality Inspection cancellation ([#24198](https://github.com/frappe/erpnext/pull/24198))
|
||||||
|
- Get formatted value in 'taxes' print template ([#24035](https://github.com/frappe/erpnext/pull/24035))
|
||||||
|
- Don't overrule Item Price via Pricing Rule Rate if 0 ([#23636](https://github.com/frappe/erpnext/pull/23636))
|
||||||
|
- Job card error handling for operations field ([#23991](https://github.com/frappe/erpnext/pull/23991))
|
||||||
|
- Validation for journal entry with 0 debit and credit values ([#23975](https://github.com/frappe/erpnext/pull/23975))
|
||||||
|
- Check if customer exists in product listing ([#24030](https://github.com/frappe/erpnext/pull/24030))
|
||||||
|
- Asset finance book posting date fix ([#23778](https://github.com/frappe/erpnext/pull/23778))
|
||||||
|
- Same source and target tables in Status Updater's update query ([#24110](https://github.com/frappe/erpnext/pull/24110))
|
||||||
|
- Asset finance book depreciation posting date fix ([#23833](https://github.com/frappe/erpnext/pull/23833))
|
||||||
|
- Ignore exception during leave ledger creation from patch ([#24005](https://github.com/frappe/erpnext/pull/24005))
|
||||||
|
- Added link of bank reconciliation and clearance in accounting desk page ([#23850](https://github.com/frappe/erpnext/pull/23850))
|
||||||
|
- Sales invoice add button from sales order dashboard ([#24077](https://github.com/frappe/erpnext/pull/24077))
|
||||||
|
- Incorrect calculation for consumed qty for subcontract item ([#23257](https://github.com/frappe/erpnext/pull/23257))
|
||||||
|
- Incorrect required_qty in Production Planning Report ([#24074](https://github.com/frappe/erpnext/pull/24074))
|
||||||
|
- Email digest user not found ([#23949](https://github.com/frappe/erpnext/pull/23949))
|
||||||
|
- Delete Receive at Warehouse entry on cancellation of Send to War… ([#24115](https://github.com/frappe/erpnext/pull/24115))
|
||||||
|
- Added TDS Payable account number and an error message ([#24065](https://github.com/frappe/erpnext/pull/24065))
|
||||||
|
- Override field_map for job card gantt ([#24155](https://github.com/frappe/erpnext/pull/24155))
|
||||||
|
- Old shopify order syncing date ([#23990](https://github.com/frappe/erpnext/pull/23990))
|
||||||
|
- Shipping chanrges not sync in erpnext from shopify ([#24114](https://github.com/frappe/erpnext/pull/24114))
|
||||||
|
- GSTR B2C report ([#24039](https://github.com/frappe/erpnext/pull/24039))
|
||||||
|
- Ignore cancelled entries in stock balance report ([#23757](https://github.com/frappe/erpnext/pull/23757))
|
||||||
|
- Stock ageing report not working ([#23923](https://github.com/frappe/erpnext/pull/23923))
|
||||||
|
- Incorrect assign to in Maintenance Schedule ([#23831](https://github.com/frappe/erpnext/pull/23831))
|
||||||
|
- Improve UX of DATEV report ([#23892](https://github.com/frappe/erpnext/pull/23892))
|
||||||
|
- Set SLA variance in seconds for Duration fieldtype ([#23765](https://github.com/frappe/erpnext/pull/23765))
|
||||||
|
- dDouble exception in payroll ([#24078](https://github.com/frappe/erpnext/pull/24078))
|
||||||
|
- Make asset dashboard charts public ([#23751](https://github.com/frappe/erpnext/pull/23751))
|
||||||
|
- Don't copy terms and discount from SO to PO ([#23903](https://github.com/frappe/erpnext/pull/23903))
|
||||||
|
- Ignore doctypes on company transaction delete ([#23864](https://github.com/frappe/erpnext/pull/23864))
|
||||||
|
- Error handling in Upload Attendance ([#23907](https://github.com/frappe/erpnext/pull/23907))
|
||||||
|
- Tax template update on customer address change ([#24160](https://github.com/frappe/erpnext/pull/24160))
|
||||||
|
- Not able to save bom ([#23910](https://github.com/frappe/erpnext/pull/23910))
|
||||||
|
- Enable Allow Auto Repeat for standard doctypes having auto_repeat field ([#23776](https://github.com/frappe/erpnext/pull/23776))
|
||||||
|
- Place of Supply fix in Sales Invoices ([#23785](https://github.com/frappe/erpnext/pull/23785))
|
||||||
|
- Opening invoices in GSTR-1 report ([#24117](https://github.com/frappe/erpnext/pull/24117))
|
||||||
|
- Partial serial no return issue ([#24208](https://github.com/frappe/erpnext/pull/24208))
|
||||||
|
- Import taxjar globally in the taxjar_integration module ([#24027](https://github.com/frappe/erpnext/pull/24027))
|
||||||
|
- Payroll attendance error ([#23887](https://github.com/frappe/erpnext/pull/23887))
|
||||||
|
- Loan application link on creating loan ([#23937](https://github.com/frappe/erpnext/pull/23937))
|
||||||
|
- POS item search includes non stock items ([#23914](https://github.com/frappe/erpnext/pull/23914))
|
||||||
|
- Paid amount in Sales Invoice POS return resets to 0 ([#24057](https://github.com/frappe/erpnext/pull/24057))
|
||||||
|
- Fiscal year can be shorter than 12 months ([#23838](https://github.com/frappe/erpnext/pull/23838))
|
||||||
|
- Loan repayment type option remove ([#23582](https://github.com/frappe/erpnext/pull/23582))
|
||||||
|
- Item wise tax calculation ([#23744](https://github.com/frappe/erpnext/pull/23744))
|
||||||
|
- Enabling track changes for stock settings ([#23982](https://github.com/frappe/erpnext/pull/23982))
|
||||||
|
- Added link of bank reconciliation and clearance in accounting desk page ([#23809](https://github.com/frappe/erpnext/pull/23809))
|
||||||
|
- Location data on Asset to use command(make_demo) ([#23825](https://github.com/frappe/erpnext/pull/23825))
|
||||||
|
- Handle Account and Item None not found in Opening Invoice Creation Tool ([#23559](https://github.com/frappe/erpnext/pull/23559))
|
||||||
|
- Multiple subcontracting issues ([#23662](https://github.com/frappe/erpnext/pull/23662))
|
||||||
|
- Sequence id override with workstation column ([#23810](https://github.com/frappe/erpnext/pull/23810))
|
||||||
|
- Leave policy dashboard fix and roles ([#24170](https://github.com/frappe/erpnext/pull/24170))
|
||||||
|
- Scan barcode does not update barcode item field in sales order ([#24090](https://github.com/frappe/erpnext/pull/24090))
|
||||||
|
- Item price duplicate checking ([#23408](https://github.com/frappe/erpnext/pull/23408))
|
||||||
|
- Tax template update on supplier change for India ([#24060](https://github.com/frappe/erpnext/pull/24060))
|
||||||
|
- Consumed qty logic for subcontracted raw materials ([#23314](https://github.com/frappe/erpnext/pull/23314))
|
||||||
|
- Finance book not getting added in journal Entry of asset value adjustment ([#24100](https://github.com/frappe/erpnext/pull/24100))
|
||||||
|
- Set proper state code in ewaybill JSON when GST category is SEZ ([#23953](https://github.com/frappe/erpnext/pull/23953))
|
||||||
|
- Copying po no when mapping doc ([#23729](https://github.com/frappe/erpnext/pull/23729))
|
||||||
|
- Duplicate items validation for POS Invoice when allow multiple items is disabled ([#23896](https://github.com/frappe/erpnext/pull/23896))
|
||||||
|
- Do not allow Company as accounting dimension ([#23749](https://github.com/frappe/erpnext/pull/23749))
|
||||||
|
- Validation for duplicate Tax Category ([#23978](https://github.com/frappe/erpnext/pull/23978))
|
||||||
|
- Therapy plan and session fixes ([#23817](https://github.com/frappe/erpnext/pull/23817))
|
||||||
|
- Pricing rule with transaction not working for additional product ([#24053](https://github.com/frappe/erpnext/pull/24053))
|
||||||
|
- Inpatient Medication Order and Entry fixes ([#23799](https://github.com/frappe/erpnext/pull/23799))
|
||||||
|
- Avoid using SQL query to get fiscal year dates ([#24050](https://github.com/frappe/erpnext/pull/24050))
|
||||||
|
- Auto Statewise gst tax template ([#23832](https://github.com/frappe/erpnext/pull/23832))
|
||||||
|
- On save sequence id column override with workstation ([#23812](https://github.com/frappe/erpnext/pull/23812))
|
||||||
|
- Multiple pricing rules are not working on selling side ([#22711](https://github.com/frappe/erpnext/pull/22711))
|
||||||
|
- Salary slip popup error ([#24192](https://github.com/frappe/erpnext/pull/24192))
|
||||||
|
- Multiple pricing rule with margin type as Percentage is not working ([#24204](https://github.com/frappe/erpnext/pull/24204))
|
||||||
|
- Allow statistical component in salary structure. ([#24424](https://github.com/frappe/erpnext/pull/24424))
|
||||||
|
- Set current asset value before calculating difference amount ([#24119](https://github.com/frappe/erpnext/pull/24119))
|
||||||
|
- To use Stock UoM in BOM Stock Report ([#24339](https://github.com/frappe/erpnext/pull/24339))
|
||||||
|
- Accounting entries of asset when submitting purchase receipt ([#24191](https://github.com/frappe/erpnext/pull/24191))
|
||||||
|
- Batch/Serial Selector for Scanned Batched Item ([#24338](https://github.com/frappe/erpnext/pull/24338))
|
||||||
|
- Link timesheets with corresponding projects ([#24346](https://github.com/frappe/erpnext/pull/24346))
|
||||||
|
- Material request wrong status issue ([#24019](https://github.com/frappe/erpnext/pull/24019))
|
||||||
|
- UX issues in e-invoicing ([#24358](https://github.com/frappe/erpnext/pull/24358))
|
||||||
|
- Company Wise Valuation Rate for RM in BOM ([#24324](https://github.com/frappe/erpnext/pull/24324))
|
||||||
|
- Stock ageing should not take cancelled stock entries. ([#24437](https://github.com/frappe/erpnext/pull/24437))
|
||||||
|
- Partial loan security unpledging ([#24252](https://github.com/frappe/erpnext/pull/24252))
|
||||||
|
- Asset depreciation ledger ([#24226](https://github.com/frappe/erpnext/pull/24226))
|
||||||
|
- Back Update from QC based on Batch No ([#24329](https://github.com/frappe/erpnext/pull/24329))
|
||||||
|
- Fix for not having fiscal year while creating new company ([#24130](https://github.com/frappe/erpnext/pull/24130))
|
||||||
|
- E-invoice print format not showing other charges ([#24474](https://github.com/frappe/erpnext/pull/24474))
|
||||||
|
- Tax template update on customer address change ([#24146](https://github.com/frappe/erpnext/pull/24146))
|
||||||
|
- Do not manufacture same serial no multiple times ([#24164](https://github.com/frappe/erpnext/pull/24164))
|
||||||
|
- Ignore group cost center validation for period closing voucher ([#24375](https://github.com/frappe/erpnext/pull/24375))
|
||||||
|
- Partial serial no return issue ([#24207](https://github.com/frappe/erpnext/pull/24207))
|
||||||
|
- GSTR-1 double entry issue ([#24376](https://github.com/frappe/erpnext/pull/24376))
|
||||||
|
- Not able to create dunning from sales invoice ([#24349](https://github.com/frappe/erpnext/pull/24349))
|
||||||
|
- Set company in leave allocation and leave ledger entry ([#24296](https://github.com/frappe/erpnext/pull/24296))
|
||||||
|
- Allow leave policy assignment to be canceled. ([#24265](https://github.com/frappe/erpnext/pull/24265))
|
||||||
|
- Removed all day event from shift assignment calendar ([#24397](https://github.com/frappe/erpnext/pull/24397))
|
||||||
|
- Tax calculation on salary slip for the first month ([#24272](https://github.com/frappe/erpnext/pull/24272))
|
||||||
|
- Validate tax template for tax category ([#24402](https://github.com/frappe/erpnext/pull/24402))
|
||||||
|
- Numeric/Non-numeric QI UX ([#24517](https://github.com/frappe/erpnext/pull/24517))
|
||||||
|
- Finished good produced qty validation ([#24220](https://github.com/frappe/erpnext/pull/24220))
|
||||||
|
- Incorrect serial no in the subcontracted purchase receipt ([#24354](https://github.com/frappe/erpnext/pull/24354))
|
||||||
|
- Don't validate warehouse values between Material Request and Stock Entry ([#24294](https://github.com/frappe/erpnext/pull/24294))
|
||||||
|
- Don't cancel job card if manufacturing entry has made ([#24063](https://github.com/frappe/erpnext/pull/24063))
|
||||||
|
- Subscription prepaid date validation ([#24356](https://github.com/frappe/erpnext/pull/24356))
|
||||||
|
- Payment Period based on invoice date report fix/refactor ([#24378](https://github.com/frappe/erpnext/pull/24378))
|
||||||
|
- Drop ship partial order fixed ([#24072](https://github.com/frappe/erpnext/pull/24072))
|
||||||
|
- Payment entry multi-currency issue ([#24332](https://github.com/frappe/erpnext/pull/24332))
|
||||||
|
- Multiple pricing rule issue ([#24515](https://github.com/frappe/erpnext/pull/24515))
|
||||||
|
- Last purchase rate not updating when voucher cancelled if only one voucher is present ([#24322](https://github.com/frappe/erpnext/pull/24322))
|
||||||
|
- Do not cancel reference document on Quality Inspection cancellation ([#24197](https://github.com/frappe/erpnext/pull/24197))
|
||||||
|
- Refactored fetching & validating address from erpnext rather than gst portal ([#24297](https://github.com/frappe/erpnext/pull/24297))
|
||||||
|
- Opportunity Status fix ([#22944](https://github.com/frappe/erpnext/pull/22944))
|
||||||
|
- Fixed stock and account balance syncing ([#24644](https://github.com/frappe/erpnext/pull/24644))
|
||||||
|
- Fixed incorrect stock ledger qty in the stock ledger report and bin ([#24649](https://github.com/frappe/erpnext/pull/24649))
|
||||||
|
- Fixed Consolidated Financial Statement report ([#24580](https://github.com/frappe/erpnext/pull/24580))
|
||||||
|
- Repost incompleted backdated transactions ([#24991](https://github.com/frappe/erpnext/pull/24991))
|
||||||
|
- Unequal debit and credit issue on RCM Invoice ([#24838](https://github.com/frappe/erpnext/pull/24838))
|
||||||
|
- Period list for exponential smoothing forecasting report ([#24983](https://github.com/frappe/erpnext/pull/24983))
|
||||||
|
- POS Opening Entry with empty balance detail rows ([#24891](https://github.com/frappe/erpnext/pull/24891))
|
||||||
|
- Use account_name only in consolidated report ([#24840](https://github.com/frappe/erpnext/pull/24840))
|
||||||
|
- Validation of job card in stock entry ([#24882](https://github.com/frappe/erpnext/pull/24882))
|
||||||
|
- Incorrect Nil Exempt and Non GST amount in GSTR3B report ([#24918](https://github.com/frappe/erpnext/pull/24918))
|
||||||
|
- TDS check getting checked after reload ([#24973](https://github.com/frappe/erpnext/pull/24973))
|
||||||
|
- Membership and Donation API fixes ([#24900](https://github.com/frappe/erpnext/pull/24900))
|
||||||
|
- Allow zero valuation in stock reconciliation ([#24985](https://github.com/frappe/erpnext/pull/24985))
|
||||||
|
- Simplified logic for additional salary ([#24907](https://github.com/frappe/erpnext/pull/24907))
|
||||||
|
- Allow to select item code in batch naming ([#24825](https://github.com/frappe/erpnext/pull/24825))
|
||||||
|
- Membership renewal validation (#24963) ([#24964](https://github.com/frappe/erpnext/pull/24964))
|
||||||
|
</details>
|
@ -113,10 +113,12 @@ class calculate_taxes_and_totals(object):
|
|||||||
item.rate_with_margin, item.base_rate_with_margin = self.calculate_margin(item)
|
item.rate_with_margin, item.base_rate_with_margin = self.calculate_margin(item)
|
||||||
if flt(item.rate_with_margin) > 0:
|
if flt(item.rate_with_margin) > 0:
|
||||||
item.rate = flt(item.rate_with_margin * (1.0 - (item.discount_percentage / 100.0)), item.precision("rate"))
|
item.rate = flt(item.rate_with_margin * (1.0 - (item.discount_percentage / 100.0)), item.precision("rate"))
|
||||||
|
|
||||||
if item.discount_amount and not item.discount_percentage:
|
if item.discount_amount and not item.discount_percentage:
|
||||||
item.rate -= item.discount_amount
|
item.rate = item.rate_with_margin - item.discount_amount
|
||||||
else:
|
else:
|
||||||
item.discount_amount = item.rate_with_margin - item.rate
|
item.discount_amount = item.rate_with_margin - item.rate
|
||||||
|
|
||||||
elif flt(item.price_list_rate) > 0:
|
elif flt(item.price_list_rate) > 0:
|
||||||
item.discount_amount = item.price_list_rate - item.rate
|
item.discount_amount = item.price_list_rate - item.rate
|
||||||
elif flt(item.price_list_rate) > 0 and not item.discount_amount:
|
elif flt(item.price_list_rate) > 0 and not item.discount_amount:
|
||||||
|
@ -25,7 +25,7 @@ def get_transaction_list(doctype, txt=None, filters=None, limit_start=0, limit_p
|
|||||||
|
|
||||||
if not filters: filters = []
|
if not filters: filters = []
|
||||||
|
|
||||||
if doctype in ['Supplier Quotation', 'Purchase Invoice', 'Quotation']:
|
if doctype in ['Supplier Quotation', 'Purchase Invoice']:
|
||||||
filters.append((doctype, 'docstatus', '<', 2))
|
filters.append((doctype, 'docstatus', '<', 2))
|
||||||
else:
|
else:
|
||||||
filters.append((doctype, 'docstatus', '=', 1))
|
filters.append((doctype, 'docstatus', '=', 1))
|
||||||
|
@ -22,7 +22,7 @@ class ShopifySettings(unittest.TestCase):
|
|||||||
frappe.db.set_value('Stock Settings', None, 'allow_negative_stock', 1)
|
frappe.db.set_value('Stock Settings', None, 'allow_negative_stock', 1)
|
||||||
|
|
||||||
# use the fixture data
|
# use the fixture data
|
||||||
import_doc(frappe.get_app_path("erpnext", "erpnext_integrations/doctype/shopify_settings/test_data/custom_field.json"))
|
import_doc(path=frappe.get_app_path("erpnext", "erpnext_integrations/doctype/shopify_settings/test_data/custom_field.json"))
|
||||||
|
|
||||||
frappe.reload_doctype("Customer")
|
frappe.reload_doctype("Customer")
|
||||||
frappe.reload_doctype("Sales Order")
|
frappe.reload_doctype("Sales Order")
|
||||||
|
@ -39,11 +39,13 @@ frappe.ui.form.on('Patient Assessment', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
set_score_range: function(frm) {
|
set_score_range: function(frm) {
|
||||||
let options = [];
|
let options = [''];
|
||||||
for(let i = frm.doc.scale_min; i <= frm.doc.scale_max; i++) {
|
for(let i = frm.doc.scale_min; i <= frm.doc.scale_max; i++) {
|
||||||
options.push(i);
|
options.push(i);
|
||||||
}
|
}
|
||||||
frappe.meta.get_docfield('Patient Assessment Sheet', 'score', frm.doc.name).options = [''].concat(options);
|
frm.fields_dict.assessment_sheet.grid.update_docfield_property(
|
||||||
|
'score', 'options', options
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
calculate_total_score: function(frm, cdt, cdn) {
|
calculate_total_score: function(frm, cdt, cdn) {
|
||||||
|
@ -58,8 +58,12 @@ frappe.ui.form.on('Therapy Plan', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (frm.doc.therapy_plan_template) {
|
if (frm.doc.therapy_plan_template) {
|
||||||
frappe.meta.get_docfield('Therapy Plan Detail', 'therapy_type', frm.doc.name).read_only = 1;
|
frm.fields_dict.therapy_plan_details.grid.update_docfield_property(
|
||||||
frappe.meta.get_docfield('Therapy Plan Detail', 'no_of_sessions', frm.doc.name).read_only = 1;
|
'therapy_type', 'read_only', 1
|
||||||
|
);
|
||||||
|
frm.fields_dict.therapy_plan_details.grid.update_docfield_property(
|
||||||
|
'no_of_sessions', 'read_only', 1
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -35,7 +35,8 @@ class Attendance(Document):
|
|||||||
and docstatus != 2
|
and docstatus != 2
|
||||||
""", (self.employee, getdate(self.attendance_date), self.name))
|
""", (self.employee, getdate(self.attendance_date), self.name))
|
||||||
if res:
|
if res:
|
||||||
frappe.throw(_("Attendance for employee {0} is already marked").format(self.employee))
|
frappe.throw(_("Attendance for employee {0} is already marked for the date {1}").format(
|
||||||
|
frappe.bold(self.employee), frappe.bold(self.attendance_date)))
|
||||||
|
|
||||||
def check_leave_record(self):
|
def check_leave_record(self):
|
||||||
leave_record = frappe.db.sql("""
|
leave_record = frappe.db.sql("""
|
||||||
|
@ -200,7 +200,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 14:42:47.321368",
|
"modified": "2021-03-31 22:31:53.746659",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"name": "Employee Advance",
|
"name": "Employee Advance",
|
||||||
|
@ -154,7 +154,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 14:45:27.948207",
|
"modified": "2021-03-31 22:32:55.492327",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"name": "Leave Encashment",
|
"name": "Leave Encashment",
|
||||||
|
@ -93,15 +93,15 @@ class TestBOM(unittest.TestCase):
|
|||||||
base_raw_material_cost = raw_material_cost * flt(bom.conversion_rate, bom.precision("conversion_rate"))
|
base_raw_material_cost = raw_material_cost * flt(bom.conversion_rate, bom.precision("conversion_rate"))
|
||||||
base_op_cost = op_cost * flt(bom.conversion_rate, bom.precision("conversion_rate"))
|
base_op_cost = op_cost * flt(bom.conversion_rate, bom.precision("conversion_rate"))
|
||||||
|
|
||||||
# test amounts in selected currency
|
# test amounts in selected currency, almostEqual checks for 7 digits by default
|
||||||
self.assertEqual(bom.operating_cost, op_cost)
|
self.assertAlmostEqual(bom.operating_cost, op_cost)
|
||||||
self.assertEqual(bom.raw_material_cost, raw_material_cost)
|
self.assertAlmostEqual(bom.raw_material_cost, raw_material_cost)
|
||||||
self.assertEqual(bom.total_cost, raw_material_cost + op_cost)
|
self.assertAlmostEqual(bom.total_cost, raw_material_cost + op_cost)
|
||||||
|
|
||||||
# test amounts in selected currency
|
# test amounts in selected currency
|
||||||
self.assertEqual(bom.base_operating_cost, base_op_cost)
|
self.assertAlmostEqual(bom.base_operating_cost, base_op_cost)
|
||||||
self.assertEqual(bom.base_raw_material_cost, base_raw_material_cost)
|
self.assertAlmostEqual(bom.base_raw_material_cost, base_raw_material_cost)
|
||||||
self.assertEqual(bom.base_total_cost, base_raw_material_cost + base_op_cost)
|
self.assertAlmostEqual(bom.base_total_cost, base_raw_material_cost + base_op_cost)
|
||||||
|
|
||||||
def test_bom_cost_multi_uom_multi_currency_based_on_price_list(self):
|
def test_bom_cost_multi_uom_multi_currency_based_on_price_list(self):
|
||||||
frappe.db.set_value("Price List", "_Test Price List", "price_not_uom_dependent", 1)
|
frappe.db.set_value("Price List", "_Test Price List", "price_not_uom_dependent", 1)
|
||||||
|
@ -433,6 +433,7 @@ def make_material_request(source_name, target_doc=None):
|
|||||||
def make_stock_entry(source_name, target_doc=None):
|
def make_stock_entry(source_name, target_doc=None):
|
||||||
def update_item(obj, target, source_parent):
|
def update_item(obj, target, source_parent):
|
||||||
target.t_warehouse = source_parent.wip_warehouse
|
target.t_warehouse = source_parent.wip_warehouse
|
||||||
|
target.conversion_factor = 1
|
||||||
|
|
||||||
def set_missing_values(source, target):
|
def set_missing_values(source, target):
|
||||||
target.purpose = "Material Transfer for Manufacture"
|
target.purpose = "Material Transfer for Manufacture"
|
||||||
|
@ -11,10 +11,9 @@ frappe.ui.form.on('Routing', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
display_sequence_id_column: function(frm) {
|
display_sequence_id_column: function(frm) {
|
||||||
frappe.meta.get_docfield("BOM Operation", "sequence_id",
|
frm.fields_dict.operations.grid.update_docfield_property(
|
||||||
frm.doc.name).in_list_view = true;
|
'sequence_id', 'in_list_view', 1
|
||||||
|
);
|
||||||
frm.fields_dict.operations.grid.refresh();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
calculate_operating_cost: function(frm, child) {
|
calculate_operating_cost: function(frm, child) {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"documentation_url": "https://docs.erpnext.com/docs/user/manual/en/manufacturing",
|
"documentation_url": "https://docs.erpnext.com/docs/user/manual/en/manufacturing",
|
||||||
"idx": 0,
|
"idx": 0,
|
||||||
"is_complete": 0,
|
"is_complete": 0,
|
||||||
"modified": "2020-07-08 14:05:56.197563",
|
"modified": "2020-06-29 20:25:36.899106",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
"name": "Manufacturing",
|
"name": "Manufacturing",
|
||||||
|
@ -769,3 +769,5 @@ erpnext.patches.v13_0.rename_discharge_date_in_ip_record
|
|||||||
erpnext.patches.v12_0.create_taxable_value_field
|
erpnext.patches.v12_0.create_taxable_value_field
|
||||||
erpnext.patches.v12_0.add_gst_category_in_delivery_note
|
erpnext.patches.v12_0.add_gst_category_in_delivery_note
|
||||||
erpnext.patches.v12_0.purchase_receipt_status
|
erpnext.patches.v12_0.purchase_receipt_status
|
||||||
|
erpnext.patches.v13_0.fix_non_unique_represents_company
|
||||||
|
erpnext.patches.v12_0.add_document_type_field_for_italy_einvoicing
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
company = frappe.get_all('Company', filters = {'country': 'Italy'})
|
||||||
|
if not company:
|
||||||
|
return
|
||||||
|
|
||||||
|
custom_fields = {
|
||||||
|
'Sales Invoice': [
|
||||||
|
dict(fieldname='type_of_document', label='Type of Document',
|
||||||
|
fieldtype='Select', insert_after='customer_fiscal_code',
|
||||||
|
options='\nTD01\nTD02\nTD03\nTD04\nTD05\nTD06\nTD16\nTD17\nTD18\nTD19\nTD20\nTD21\nTD22\nTD23\nTD24\nTD25\nTD26\nTD27'),
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
create_custom_fields(custom_fields, update=True)
|
@ -1,6 +1,7 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doc('custom', 'doctype', 'custom_field')
|
||||||
company = frappe.get_all('Company', filters = {'country': 'India'})
|
company = frappe.get_all('Company', filters = {'country': 'India'})
|
||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
@ -12,7 +12,10 @@ def execute():
|
|||||||
'Employee Tax Exemption Declaration',
|
'Employee Tax Exemption Declaration',
|
||||||
'Employee Tax Exemption Proof Submission',
|
'Employee Tax Exemption Proof Submission',
|
||||||
'Employee Tax Exemption Declaration Category',
|
'Employee Tax Exemption Declaration Category',
|
||||||
'Employee Tax Exemption Proof Submission Detail'
|
'Employee Tax Exemption Proof Submission Detail',
|
||||||
|
'gratuity_rule',
|
||||||
|
'gratuity_rule_slab',
|
||||||
|
'gratuity_applicable_component'
|
||||||
]
|
]
|
||||||
|
|
||||||
for doctype in doctypes:
|
for doctype in doctypes:
|
||||||
|
@ -11,4 +11,8 @@ def execute():
|
|||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
frappe.reload_doc('accounts', 'doctype', 'pos_invoice')
|
||||||
|
frappe.reload_doc('accounts', 'doctype', 'pos_invoice_item')
|
||||||
|
|
||||||
make_custom_fields()
|
make_custom_fields()
|
@ -0,0 +1,8 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
frappe.db.sql("""
|
||||||
|
update tabCustomer
|
||||||
|
set represents_company = NULL
|
||||||
|
where represents_company = ''
|
||||||
|
""")
|
@ -6,8 +6,8 @@ def execute():
|
|||||||
if "Healthcare" not in frappe.get_active_domains():
|
if "Healthcare" not in frappe.get_active_domains():
|
||||||
return
|
return
|
||||||
|
|
||||||
frappe.reload_doc("healthcare", "doctype", "Therapy Session")
|
|
||||||
frappe.reload_doc("healthcare", "doctype", "Inpatient Medication Order")
|
frappe.reload_doc("healthcare", "doctype", "Inpatient Medication Order")
|
||||||
|
frappe.reload_doc("healthcare", "doctype", "Therapy Session")
|
||||||
frappe.reload_doc("healthcare", "doctype", "Clinical Procedure")
|
frappe.reload_doc("healthcare", "doctype", "Clinical Procedure")
|
||||||
frappe.reload_doc("healthcare", "doctype", "Patient History Settings")
|
frappe.reload_doc("healthcare", "doctype", "Patient History Settings")
|
||||||
frappe.reload_doc("healthcare", "doctype", "Patient History Standard Document Type")
|
frappe.reload_doc("healthcare", "doctype", "Patient History Standard Document Type")
|
||||||
|
@ -9,4 +9,8 @@ def execute():
|
|||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
frappe.reload_doc('regional', 'report', 'uae_vat_201')
|
||||||
|
frappe.reload_doc('regional', 'doctype', 'uae_vat_settings')
|
||||||
|
frappe.reload_doc('regional', 'doctype', 'uae_vat_account')
|
||||||
|
|
||||||
setup()
|
setup()
|
@ -175,7 +175,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 14:45:48.566756",
|
"modified": "2021-03-31 22:33:59.098532",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Additional Salary",
|
"name": "Additional Salary",
|
||||||
|
@ -147,7 +147,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 14:46:22.465521",
|
"modified": "2021-03-31 22:35:08.940087",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Employee Benefit Application",
|
"name": "Employee Benefit Application",
|
||||||
|
@ -144,7 +144,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 15:51:51.489269",
|
"modified": "2021-03-31 22:37:21.024625",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Employee Benefit Claim",
|
"name": "Employee Benefit Claim",
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 14:48:00.919839",
|
"modified": "2021-03-31 22:38:20.332316",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Employee Incentive",
|
"name": "Employee Incentive",
|
||||||
|
@ -119,7 +119,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 20:41:57.387749",
|
"modified": "2021-03-31 22:39:59.237361",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Employee Tax Exemption Declaration",
|
"name": "Employee Tax Exemption Declaration",
|
||||||
|
@ -142,7 +142,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 20:48:32.639885",
|
"modified": "2021-03-31 22:41:13.723339",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Employee Tax Exemption Proof Submission",
|
"name": "Employee Tax Exemption Proof Submission",
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 20:53:33.323712",
|
"modified": "2021-03-31 22:42:08.139520",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Income Tax Slab",
|
"name": "Income Tax Slab",
|
||||||
|
@ -567,6 +567,7 @@ def create_salary_slips_for_employees(employees, args, publish_progress=True):
|
|||||||
if publish_progress:
|
if publish_progress:
|
||||||
frappe.publish_progress(count*100/len(set(employees) - set(salary_slips_exists_for)),
|
frappe.publish_progress(count*100/len(set(employees) - set(salary_slips_exists_for)),
|
||||||
title = _("Creating Salary Slips..."))
|
title = _("Creating Salary Slips..."))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
salary_slips_not_created.append(emp)
|
salary_slips_not_created.append(emp)
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 14:50:29.401020",
|
"modified": "2021-03-31 22:43:28.363644",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Retention Bonus",
|
"name": "Retention Bonus",
|
||||||
|
@ -120,6 +120,7 @@ frappe.ui.form.on("Salary Slip", {
|
|||||||
frm.set_df_property("exchange_rate", "description", "" );
|
frm.set_df_property("exchange_rate", "description", "" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
exchange_rate: function(frm) {
|
exchange_rate: function(frm) {
|
||||||
|
@ -631,7 +631,7 @@
|
|||||||
"idx": 9,
|
"idx": 9,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 15:39:28.817166",
|
"modified": "2021-03-31 22:44:09.772331",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Salary Slip",
|
"name": "Salary Slip",
|
||||||
|
@ -598,10 +598,10 @@ class SalarySlip(TransactionBase):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if (
|
if (
|
||||||
not d.additional_salary
|
(not d.additional_salary
|
||||||
and (not additional_salary or additional_salary.overwrite)
|
and (not additional_salary or additional_salary.overwrite))
|
||||||
or additional_salary
|
or (additional_salary
|
||||||
and additional_salary.name == d.additional_salary
|
and additional_salary.name == d.additional_salary)
|
||||||
):
|
):
|
||||||
component_row = d
|
component_row = d
|
||||||
break
|
break
|
||||||
@ -611,7 +611,7 @@ class SalarySlip(TransactionBase):
|
|||||||
self.set(component_type, [
|
self.set(component_type, [
|
||||||
d for d in self.get(component_type)
|
d for d in self.get(component_type)
|
||||||
if d.salary_component != component_data.salary_component
|
if d.salary_component != component_data.salary_component
|
||||||
or d.additional_salary and additional_salary.name != d.additional_salary
|
or (d.additional_salary and additional_salary.name != d.additional_salary)
|
||||||
or d == component_row
|
or d == component_row
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ class TestSalarySlip(unittest.TestCase):
|
|||||||
frappe.db.sql("DELETE FROM `tabSalary Slip` where employee_name = 'test_ytd@salary.com'")
|
frappe.db.sql("DELETE FROM `tabSalary Slip` where employee_name = 'test_ytd@salary.com'")
|
||||||
|
|
||||||
create_salary_slips_for_payroll_period(applicant, salary_structure.name,
|
create_salary_slips_for_payroll_period(applicant, salary_structure.name,
|
||||||
payroll_period, deduct_random=False)
|
payroll_period, deduct_random=False, num=6)
|
||||||
|
|
||||||
salary_slips = frappe.get_all('Salary Slip', fields=['year_to_date', 'net_pay'], filters={'employee_name':
|
salary_slips = frappe.get_all('Salary Slip', fields=['year_to_date', 'net_pay'], filters={'employee_name':
|
||||||
'test_ytd@salary.com'}, order_by = 'posting_date')
|
'test_ytd@salary.com'}, order_by = 'posting_date')
|
||||||
|
@ -114,9 +114,16 @@ frappe.ui.form.on('Salary Structure', {
|
|||||||
frm.trigger('assign_to_employees')
|
frm.trigger('assign_to_employees')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set columns read-only
|
||||||
let fields_read_only = ["is_tax_applicable", "is_flexible_benefit", "variable_based_on_taxable_salary"];
|
let fields_read_only = ["is_tax_applicable", "is_flexible_benefit", "variable_based_on_taxable_salary"];
|
||||||
fields_read_only.forEach(function(field) {
|
fields_read_only.forEach(function(field) {
|
||||||
frappe.meta.get_docfield("Salary Detail", field, frm.doc.name).read_only = 1;
|
frm.fields_dict.earnings.grid.update_docfield_property(
|
||||||
|
field, 'read_only', 1
|
||||||
|
);
|
||||||
|
frm.fields_dict.deductions.grid.update_docfield_property(
|
||||||
|
field, 'read_only', 1
|
||||||
|
);
|
||||||
});
|
});
|
||||||
frm.trigger('set_earning_deduction_component');
|
frm.trigger('set_earning_deduction_component');
|
||||||
},
|
},
|
||||||
|
@ -164,7 +164,13 @@ def create_salary_structure_assignment(employee, salary_structure, from_date=Non
|
|||||||
salary_structure_assignment.employee = employee
|
salary_structure_assignment.employee = employee
|
||||||
salary_structure_assignment.base = 50000
|
salary_structure_assignment.base = 50000
|
||||||
salary_structure_assignment.variable = 5000
|
salary_structure_assignment.variable = 5000
|
||||||
salary_structure_assignment.from_date = from_date or add_days(nowdate(), -1)
|
|
||||||
|
if getdate(nowdate()).day == 1:
|
||||||
|
date = from_date or nowdate()
|
||||||
|
else:
|
||||||
|
date = from_date or add_days(nowdate(), -1)
|
||||||
|
|
||||||
|
salary_structure_assignment.from_date = date
|
||||||
salary_structure_assignment.salary_structure = salary_structure
|
salary_structure_assignment.salary_structure = salary_structure
|
||||||
salary_structure_assignment.currency = currency
|
salary_structure_assignment.currency = currency
|
||||||
salary_structure_assignment.payroll_payable_account = get_payable_account(company)
|
salary_structure_assignment.payroll_payable_account = get_payable_account(company)
|
||||||
|
@ -145,7 +145,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-03-31 15:49:36.361253",
|
"modified": "2021-03-31 22:44:46.267974",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Payroll",
|
"module": "Payroll",
|
||||||
"name": "Salary Structure Assignment",
|
"name": "Salary Structure Assignment",
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"is_mandatory": 1,
|
"is_mandatory": 1,
|
||||||
"is_single": 0,
|
"is_single": 0,
|
||||||
"is_skipped": 0,
|
"is_skipped": 0,
|
||||||
"modified": "2020-06-01 11:53:54.553947",
|
"modified": "2020-06-29 11:53:54.553947",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"name": "Create Payroll Period",
|
"name": "Create Payroll Period",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"action": "Go to Page",
|
"action": "Update Settings",
|
||||||
"creation": "2020-06-04 16:34:29.664917",
|
"creation": "2020-06-04 16:34:29.664917",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "Onboarding Step",
|
"doctype": "Onboarding Step",
|
||||||
"idx": 0,
|
"idx": 0,
|
||||||
"is_complete": 0,
|
"is_complete": 0,
|
||||||
"is_mandatory": 0,
|
"is_mandatory": 0,
|
||||||
"is_single": 0,
|
"is_single": 1,
|
||||||
"is_skipped": 0,
|
"is_skipped": 0,
|
||||||
"modified": "2020-06-04 16:34:29.664917",
|
"modified": "2020-06-29 16:34:29.664917",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"name": "Payroll Settings",
|
"name": "Payroll Settings",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"path": "#Form/Payroll Settings",
|
"reference_document": "Payroll Settings",
|
||||||
"show_full_form": 0,
|
"show_full_form": 0,
|
||||||
"title": "Payroll Settings",
|
"title": "Payroll Settings",
|
||||||
"validate_action": 1
|
"validate_action": 0
|
||||||
}
|
}
|
@ -10,10 +10,12 @@ frappe.ui.form.on('Products Settings', {
|
|||||||
df => ['Link', 'Table MultiSelect'].includes(df.fieldtype) && !df.hidden
|
df => ['Link', 'Table MultiSelect'].includes(df.fieldtype) && !df.hidden
|
||||||
).map(df => ({ label: df.label, value: df.fieldname }));
|
).map(df => ({ label: df.label, value: df.fieldname }));
|
||||||
|
|
||||||
const field = frappe.meta.get_docfield("Website Filter Field", "fieldname", frm.docname);
|
frm.fields_dict.filter_fields.grid.update_docfield_property(
|
||||||
field.fieldtype = 'Select';
|
'fieldname', 'fieldtype', 'Select'
|
||||||
field.options = valid_fields;
|
);
|
||||||
frm.fields_dict.filter_fields.grid.refresh();
|
frm.fields_dict.filter_fields.grid.update_docfield_property(
|
||||||
|
'fieldname', 'options', valid_fields
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -276,74 +276,3 @@ erpnext.taxes.set_conditional_mandatory_rate_or_amount = function(grid_row) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// For customizing print
|
|
||||||
cur_frm.pformat.total = function(doc) { return ''; }
|
|
||||||
cur_frm.pformat.discount_amount = function(doc) { return ''; }
|
|
||||||
cur_frm.pformat.grand_total = function(doc) { return ''; }
|
|
||||||
cur_frm.pformat.rounded_total = function(doc) { return ''; }
|
|
||||||
cur_frm.pformat.in_words = function(doc) { return ''; }
|
|
||||||
|
|
||||||
cur_frm.pformat.taxes= function(doc){
|
|
||||||
//function to make row of table
|
|
||||||
var make_row = function(title, val, bold, is_negative) {
|
|
||||||
var bstart = '<b>'; var bend = '</b>';
|
|
||||||
return '<tr><td style="width:50%;">' + (bold?bstart:'') + title + (bold?bend:'') + '</td>'
|
|
||||||
+ '<td style="width:50%;text-align:right;">' + (is_negative ? '- ' : '')
|
|
||||||
+ format_currency(val, doc.currency) + '</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
function print_hide(fieldname) {
|
|
||||||
var doc_field = frappe.meta.get_docfield(doc.doctype, fieldname, doc.name);
|
|
||||||
return doc_field.print_hide;
|
|
||||||
}
|
|
||||||
|
|
||||||
out ='';
|
|
||||||
if (!doc.print_without_amount) {
|
|
||||||
var cl = doc.taxes || [];
|
|
||||||
|
|
||||||
// outer table
|
|
||||||
var out='<div><table class="noborder" style="width:100%"><tr><td style="width: 60%"></td><td>';
|
|
||||||
|
|
||||||
// main table
|
|
||||||
|
|
||||||
out +='<table class="noborder" style="width:100%">';
|
|
||||||
|
|
||||||
if(!print_hide('total')) {
|
|
||||||
out += make_row('Total', doc.total, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discount Amount on net total
|
|
||||||
if(!print_hide('discount_amount') && doc.apply_discount_on == "Net Total" && doc.discount_amount)
|
|
||||||
out += make_row('Discount Amount', doc.discount_amount, 0, 1);
|
|
||||||
|
|
||||||
// add rows
|
|
||||||
if(cl.length){
|
|
||||||
for(var i=0;i<cl.length;i++) {
|
|
||||||
if(cl[i].tax_amount!=0 && !cl[i].included_in_print_rate)
|
|
||||||
out += make_row(cl[i].description, cl[i].tax_amount, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discount Amount on grand total
|
|
||||||
if(!print_hide('discount_amount') && doc.apply_discount_on == "Grand Total" && doc.discount_amount)
|
|
||||||
out += make_row('Discount Amount', doc.discount_amount, 0, 1);
|
|
||||||
|
|
||||||
// grand total
|
|
||||||
if(!print_hide('grand_total'))
|
|
||||||
out += make_row('Grand Total', doc.grand_total, 1);
|
|
||||||
|
|
||||||
if(!print_hide('rounded_total'))
|
|
||||||
out += make_row('Rounded Total', doc.rounded_total, 1);
|
|
||||||
|
|
||||||
if(doc.in_words && !print_hide('in_words')) {
|
|
||||||
out +='</table></td></tr>';
|
|
||||||
out += '<tr><td colspan = "2">';
|
|
||||||
out += '<table><tr><td style="width:25%;"><b>In Words</b></td>';
|
|
||||||
out += '<td style="width:50%;">' + doc.in_words + '</td></tr>';
|
|
||||||
}
|
|
||||||
out += '</table></td></tr></table></div>';
|
|
||||||
}
|
|
||||||
return out;
|
|
||||||
}
|
|
14
erpnext/public/js/website_theme.js
Normal file
14
erpnext/public/js/website_theme.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors
|
||||||
|
// MIT License. See license.txt
|
||||||
|
|
||||||
|
frappe.ui.form.on('Website Theme', {
|
||||||
|
validate(frm) {
|
||||||
|
let theme_scss = frm.doc.theme_scss;
|
||||||
|
if (theme_scss && theme_scss.includes('frappe/public/scss/website')
|
||||||
|
&& !theme_scss.includes('erpnext/public/scss/website')
|
||||||
|
) {
|
||||||
|
frm.set_value('theme_scss',
|
||||||
|
`${frm.doc.theme_scss}\n@import "erpnext/public/scss/website";`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
@ -3,4 +3,17 @@ import frappe
|
|||||||
|
|
||||||
|
|
||||||
def setup(company=None, patch=True):
|
def setup(company=None, patch=True):
|
||||||
pass
|
add_custom_roles_for_reports()
|
||||||
|
|
||||||
|
|
||||||
|
def add_custom_roles_for_reports():
|
||||||
|
"""Add Access Control to UAE VAT 201."""
|
||||||
|
if not frappe.db.get_value('Custom Role', dict(report='DATEV')):
|
||||||
|
frappe.get_doc(dict(
|
||||||
|
doctype='Custom Role',
|
||||||
|
report='DATEV',
|
||||||
|
roles= [
|
||||||
|
dict(role='Accounts User'),
|
||||||
|
dict(role='Accounts Manager')
|
||||||
|
]
|
||||||
|
)).insert()
|
@ -69,7 +69,7 @@ state_numbers = {
|
|||||||
"Mizoram": "15",
|
"Mizoram": "15",
|
||||||
"Nagaland": "13",
|
"Nagaland": "13",
|
||||||
"Odisha": "21",
|
"Odisha": "21",
|
||||||
"Other Territory": "98",
|
"Other Territory": "97",
|
||||||
"Pondicherry": "34",
|
"Pondicherry": "34",
|
||||||
"Punjab": "03",
|
"Punjab": "03",
|
||||||
"Rajasthan": "08",
|
"Rajasthan": "08",
|
||||||
|
@ -666,7 +666,6 @@ class GSPConnector():
|
|||||||
except Exception:
|
except Exception:
|
||||||
log_error()
|
log_error()
|
||||||
self.raise_error(True)
|
self.raise_error(True)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_gstin_details(gstin):
|
def get_gstin_details(gstin):
|
||||||
'''fetch and cache GSTIN details'''
|
'''fetch and cache GSTIN details'''
|
||||||
@ -959,7 +958,6 @@ class GSPConnector():
|
|||||||
'label': _('IRN Generated')
|
'label': _('IRN Generated')
|
||||||
}
|
}
|
||||||
self.update_invoice()
|
self.update_invoice()
|
||||||
|
|
||||||
def attach_qrcode_image(self):
|
def attach_qrcode_image(self):
|
||||||
qrcode = self.invoice.signed_qr_code
|
qrcode = self.invoice.signed_qr_code
|
||||||
doctype = self.invoice.doctype
|
doctype = self.invoice.doctype
|
||||||
|
@ -12,14 +12,14 @@ from erpnext.accounts.utils import get_fiscal_year, FiscalYearError
|
|||||||
from frappe.utils import today
|
from frappe.utils import today
|
||||||
|
|
||||||
def setup(company=None, patch=True):
|
def setup(company=None, patch=True):
|
||||||
setup_company_independent_fixtures()
|
setup_company_independent_fixtures(patch=patch)
|
||||||
if not patch:
|
if not patch:
|
||||||
make_fixtures(company)
|
make_fixtures(company)
|
||||||
|
|
||||||
# TODO: for all countries
|
# TODO: for all countries
|
||||||
def setup_company_independent_fixtures():
|
def setup_company_independent_fixtures(patch=False):
|
||||||
make_custom_fields()
|
make_custom_fields()
|
||||||
make_property_setters()
|
make_property_setters(patch=patch)
|
||||||
add_permissions()
|
add_permissions()
|
||||||
add_custom_roles_for_reports()
|
add_custom_roles_for_reports()
|
||||||
frappe.enqueue('erpnext.regional.india.setup.add_hsn_sac_codes', now=frappe.flags.in_test)
|
frappe.enqueue('erpnext.regional.india.setup.add_hsn_sac_codes', now=frappe.flags.in_test)
|
||||||
@ -112,8 +112,9 @@ def add_print_formats():
|
|||||||
frappe.db.set_value("Print Format", "GST Tax Invoice", "disabled", 0)
|
frappe.db.set_value("Print Format", "GST Tax Invoice", "disabled", 0)
|
||||||
frappe.db.set_value("Print Format", "GST E-Invoice", "disabled", 0)
|
frappe.db.set_value("Print Format", "GST E-Invoice", "disabled", 0)
|
||||||
|
|
||||||
def make_property_setters():
|
def make_property_setters(patch=False):
|
||||||
# GST rules do not allow for an invoice no. bigger than 16 characters
|
# GST rules do not allow for an invoice no. bigger than 16 characters
|
||||||
|
if not patch:
|
||||||
make_property_setter('Sales Invoice', 'naming_series', 'options', 'SINV-.YY.-\nSRET-.YY.-', '')
|
make_property_setter('Sales Invoice', 'naming_series', 'options', 'SINV-.YY.-\nSRET-.YY.-', '')
|
||||||
make_property_setter('Purchase Invoice', 'naming_series', 'options', 'PINV-.YY.-\nPRET-.YY.-', '')
|
make_property_setter('Purchase Invoice', 'naming_series', 'options', 'PINV-.YY.-\nPRET-.YY.-', '')
|
||||||
|
|
||||||
|
@ -12,14 +12,14 @@ class TestIndiaUtils(unittest.TestCase):
|
|||||||
mock_get_cached.return_value = "India" # mock country
|
mock_get_cached.return_value = "India" # mock country
|
||||||
posting_date = "2021-05-01"
|
posting_date = "2021-05-01"
|
||||||
|
|
||||||
invalid_names = [ "SI$1231", "012345678901234567", "SI 2020 05",
|
invalid_names = ["SI$1231", "012345678901234567", "SI 2020 05",
|
||||||
"SI.2020.0001", "PI2021 - 001" ]
|
"SI.2020.0001", "PI2021 - 001"]
|
||||||
for name in invalid_names:
|
for name in invalid_names:
|
||||||
doc = frappe._dict(name=name, posting_date=posting_date)
|
doc = frappe._dict(name=name, posting_date=posting_date)
|
||||||
self.assertRaises(frappe.ValidationError, validate_document_name, doc)
|
self.assertRaises(frappe.ValidationError, validate_document_name, doc)
|
||||||
|
|
||||||
valid_names = [ "012345678901236", "SI/2020/0001", "SI/2020-0001",
|
valid_names = ["012345678901236", "SI/2020/0001", "SI/2020-0001",
|
||||||
"2020-PI-0001", "PI2020-0001" ]
|
"2020-PI-0001", "PI2020-0001"]
|
||||||
for name in valid_names:
|
for name in valid_names:
|
||||||
doc = frappe._dict(name=name, posting_date=posting_date)
|
doc = frappe._dict(name=name, posting_date=posting_date)
|
||||||
try:
|
try:
|
||||||
|
@ -155,6 +155,7 @@ def set_place_of_supply(doc, method=None):
|
|||||||
|
|
||||||
def validate_document_name(doc, method=None):
|
def validate_document_name(doc, method=None):
|
||||||
"""Validate GST invoice number requirements."""
|
"""Validate GST invoice number requirements."""
|
||||||
|
|
||||||
country = frappe.get_cached_value("Company", doc.company, "country")
|
country = frappe.get_cached_value("Company", doc.company, "country")
|
||||||
|
|
||||||
# Date was chosen as start of next FY to avoid irritating current users.
|
# Date was chosen as start of next FY to avoid irritating current users.
|
||||||
|
@ -139,6 +139,9 @@ def make_custom_fields(update=True):
|
|||||||
dict(fieldname='customer_fiscal_code', label='Customer Fiscal Code',
|
dict(fieldname='customer_fiscal_code', label='Customer Fiscal Code',
|
||||||
fieldtype='Data', insert_after='cb_e_invoicing_reference', read_only=1,
|
fieldtype='Data', insert_after='cb_e_invoicing_reference', read_only=1,
|
||||||
fetch_from="customer.fiscal_code"),
|
fetch_from="customer.fiscal_code"),
|
||||||
|
dict(fieldname='type_of_document', label='Type of Document',
|
||||||
|
fieldtype='Select', insert_after='customer_fiscal_code',
|
||||||
|
options='\nTD01\nTD02\nTD03\nTD04\nTD05\nTD06\nTD16\nTD17\nTD18\nTD19\nTD20\nTD21\nTD22\nTD23\nTD24\nTD25\nTD26\nTD27'),
|
||||||
],
|
],
|
||||||
'Purchase Invoice Item': invoice_item_fields,
|
'Purchase Invoice Item': invoice_item_fields,
|
||||||
'Sales Order Item': invoice_item_fields,
|
'Sales Order Item': invoice_item_fields,
|
||||||
|
@ -57,6 +57,7 @@ def prepare_invoice(invoice, progressive_number):
|
|||||||
invoice.company_address_data = company_address
|
invoice.company_address_data = company_address
|
||||||
|
|
||||||
#Set invoice type
|
#Set invoice type
|
||||||
|
if not invoice.type_of_document:
|
||||||
if invoice.is_return and invoice.return_against:
|
if invoice.is_return and invoice.return_against:
|
||||||
invoice.type_of_document = "TD04" #Credit Note (Nota di Credito)
|
invoice.type_of_document = "TD04" #Credit Note (Nota di Credito)
|
||||||
invoice.return_against_unamended = get_unamended_name(frappe.get_doc("Sales Invoice", invoice.return_against))
|
invoice.return_against_unamended = get_unamended_name(frappe.get_doc("Sales Invoice", invoice.return_against))
|
||||||
|
@ -1,29 +1,22 @@
|
|||||||
{
|
{
|
||||||
"add_total_row": 0,
|
"add_total_row": 0,
|
||||||
"apply_user_permissions": 0,
|
"columns": [],
|
||||||
"creation": "2019-04-24 08:45:16.650129",
|
"creation": "2019-04-24 08:45:16.650129",
|
||||||
|
"disable_prepared_report": 0,
|
||||||
"disabled": 0,
|
"disabled": 0,
|
||||||
"icon": "octicon octicon-repo-pull",
|
|
||||||
"color": "#4CB944",
|
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "Report",
|
"doctype": "Report",
|
||||||
|
"filters": [],
|
||||||
"idx": 0,
|
"idx": 0,
|
||||||
"is_standard": "Yes",
|
"is_standard": "Yes",
|
||||||
|
"modified": "2021-04-06 12:23:00.379517",
|
||||||
|
"modified_by": "Administrator",
|
||||||
"module": "Regional",
|
"module": "Regional",
|
||||||
"name": "DATEV",
|
"name": "DATEV",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
|
"prepared_report": 0,
|
||||||
"ref_doctype": "GL Entry",
|
"ref_doctype": "GL Entry",
|
||||||
"report_name": "DATEV",
|
"report_name": "DATEV",
|
||||||
"report_type": "Script Report",
|
"report_type": "Script Report",
|
||||||
"roles": [
|
"roles": []
|
||||||
{
|
|
||||||
"role": "Accounts User"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"role": "Accounts Manager"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"role": "Auditor"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
@ -199,7 +199,7 @@ class Gstr1Report(object):
|
|||||||
self.item_tax_rate = frappe._dict()
|
self.item_tax_rate = frappe._dict()
|
||||||
|
|
||||||
items = frappe.db.sql("""
|
items = frappe.db.sql("""
|
||||||
select item_code, parent, base_net_amount, item_tax_rate
|
select item_code, parent, taxable_value, item_tax_rate
|
||||||
from `tab%s Item`
|
from `tab%s Item`
|
||||||
where parent in (%s)
|
where parent in (%s)
|
||||||
""" % (self.doctype, ', '.join(['%s']*len(self.invoices))), tuple(self.invoices), as_dict=1)
|
""" % (self.doctype, ', '.join(['%s']*len(self.invoices))), tuple(self.invoices), as_dict=1)
|
||||||
@ -207,7 +207,7 @@ class Gstr1Report(object):
|
|||||||
for d in items:
|
for d in items:
|
||||||
if d.item_code not in self.invoice_items.get(d.parent, {}):
|
if d.item_code not in self.invoice_items.get(d.parent, {}):
|
||||||
self.invoice_items.setdefault(d.parent, {}).setdefault(d.item_code,
|
self.invoice_items.setdefault(d.parent, {}).setdefault(d.item_code,
|
||||||
sum(i.get('base_net_amount', 0) for i in items
|
sum(i.get('taxable_value', 0) for i in items
|
||||||
if i.item_code == d.item_code and i.parent == d.parent))
|
if i.item_code == d.item_code and i.parent == d.parent))
|
||||||
|
|
||||||
item_tax_rate = {}
|
item_tax_rate = {}
|
||||||
|
@ -212,7 +212,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"ignore_user_permissions": 1,
|
"ignore_user_permissions": 1,
|
||||||
"label": "Represents Company",
|
"label": "Represents Company",
|
||||||
"options": "Company"
|
"options": "Company",
|
||||||
|
"unique": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"depends_on": "represents_company",
|
"depends_on": "represents_company",
|
||||||
|
@ -7,7 +7,6 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
this.allowed_customer_groups = settings.customer_groups;
|
this.allowed_customer_groups = settings.customer_groups;
|
||||||
this.allow_rate_change = settings.allow_rate_change;
|
this.allow_rate_change = settings.allow_rate_change;
|
||||||
this.allow_discount_change = settings.allow_discount_change;
|
this.allow_discount_change = settings.allow_discount_change;
|
||||||
|
|
||||||
this.init_component();
|
this.init_component();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,6 @@ erpnext.PointOfSale.ItemDetails = class {
|
|||||||
me.events.form_updated(me.doctype, me.name, 'rate', this.value).then(() => {
|
me.events.form_updated(me.doctype, me.name, 'rate', this.value).then(() => {
|
||||||
const item_row = frappe.get_doc(me.doctype, me.name);
|
const item_row = frappe.get_doc(me.doctype, me.name);
|
||||||
const doc = me.events.get_frm().doc;
|
const doc = me.events.get_frm().doc;
|
||||||
|
|
||||||
me.$item_price.html(format_currency(item_row.rate, doc.currency));
|
me.$item_price.html(format_currency(item_row.rate, doc.currency));
|
||||||
me.render_discount_dom(item_row);
|
me.render_discount_dom(item_row);
|
||||||
});
|
});
|
||||||
|
@ -176,6 +176,14 @@ erpnext.PointOfSale.PastOrderSummary = class {
|
|||||||
this.show_summary_placeholder();
|
this.show_summary_placeholder();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.$summary_container.on('click', '.delete-btn', () => {
|
||||||
|
this.events.delete_order(this.doc.name);
|
||||||
|
this.show_summary_placeholder();
|
||||||
|
// this.toggle_component(false);
|
||||||
|
// this.$component.find('.no-summary-placeholder').removeClass('d-none');
|
||||||
|
// this.$summary_wrapper.addClass('d-none');
|
||||||
|
});
|
||||||
|
|
||||||
this.$summary_container.on('click', '.new-btn', () => {
|
this.$summary_container.on('click', '.new-btn', () => {
|
||||||
this.events.new_order();
|
this.events.new_order();
|
||||||
this.toggle_component(false);
|
this.toggle_component(false);
|
||||||
|
@ -252,6 +252,41 @@ erpnext.PointOfSale.Payment = class {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setup_listener_for_payments() {
|
||||||
|
frappe.realtime.on("process_phone_payment", (data) => {
|
||||||
|
const doc = this.events.get_frm().doc;
|
||||||
|
const { response, amount, success, failure_message } = data;
|
||||||
|
let message, title;
|
||||||
|
|
||||||
|
if (success) {
|
||||||
|
title = __("Payment Received");
|
||||||
|
if (amount >= doc.grand_total) {
|
||||||
|
frappe.dom.unfreeze();
|
||||||
|
message = __("Payment of {0} received successfully.", [format_currency(amount, doc.currency, 0)]);
|
||||||
|
this.events.submit_invoice();
|
||||||
|
cur_frm.reload_doc();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
message = __("Payment of {0} received successfully. Waiting for other requests to complete...", [format_currency(amount, doc.currency, 0)]);
|
||||||
|
}
|
||||||
|
} else if (failure_message) {
|
||||||
|
message = failure_message;
|
||||||
|
title = __("Payment Failed");
|
||||||
|
}
|
||||||
|
|
||||||
|
frappe.msgprint({ "message": message, "title": title });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
auto_set_remaining_amount() {
|
||||||
|
const doc = this.events.get_frm().doc;
|
||||||
|
const remaining_amount = doc.grand_total - doc.paid_amount;
|
||||||
|
const current_value = this.selected_mode ? this.selected_mode.get_value() : undefined;
|
||||||
|
if (!current_value && remaining_amount > 0 && this.selected_mode) {
|
||||||
|
this.selected_mode.set_value(remaining_amount);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
attach_shortcuts() {
|
attach_shortcuts() {
|
||||||
const ctrl_label = frappe.utils.is_mac() ? '⌘' : 'Ctrl';
|
const ctrl_label = frappe.utils.is_mac() ? '⌘' : 'Ctrl';
|
||||||
this.$component.find('.submit-order-btn').attr("title", `${ctrl_label}+Enter`);
|
this.$component.find('.submit-order-btn').attr("title", `${ctrl_label}+Enter`);
|
||||||
|
@ -57,18 +57,18 @@ def get_columns(customer_naming_type):
|
|||||||
return columns
|
return columns
|
||||||
|
|
||||||
def get_details(filters):
|
def get_details(filters):
|
||||||
conditions = ""
|
|
||||||
|
|
||||||
if filters.get("customer"):
|
sql_query = """SELECT
|
||||||
conditions += " AND c.name = '" + filters.get("customer") + "'"
|
|
||||||
|
|
||||||
return frappe.db.sql("""SELECT
|
|
||||||
c.name, c.customer_name,
|
c.name, c.customer_name,
|
||||||
ccl.bypass_credit_limit_check,
|
ccl.bypass_credit_limit_check,
|
||||||
c.is_frozen, c.disabled
|
c.is_frozen, c.disabled
|
||||||
FROM `tabCustomer` c, `tabCustomer Credit Limit` ccl
|
FROM `tabCustomer` c, `tabCustomer Credit Limit` ccl
|
||||||
WHERE
|
WHERE
|
||||||
c.name = ccl.parent
|
c.name = ccl.parent
|
||||||
AND ccl.company = '{0}'
|
AND ccl.company = %(company)s"""
|
||||||
{1}
|
|
||||||
""".format( filters.get("company"),conditions), as_dict=1) #nosec
|
# customer filter is optional.
|
||||||
|
if filters.get("customer"):
|
||||||
|
sql_query += " AND c.name = %(customer)s"
|
||||||
|
|
||||||
|
return frappe.db.sql(sql_query, filters, as_dict=1)
|
||||||
|
@ -69,10 +69,12 @@ frappe.ui.form.on("Item Group", {
|
|||||||
df => ['Link', 'Table MultiSelect'].includes(df.fieldtype) && !df.hidden
|
df => ['Link', 'Table MultiSelect'].includes(df.fieldtype) && !df.hidden
|
||||||
).map(df => ({ label: df.label, value: df.fieldname }));
|
).map(df => ({ label: df.label, value: df.fieldname }));
|
||||||
|
|
||||||
const field = frappe.meta.get_docfield("Website Filter Field", "fieldname", frm.docname);
|
frm.fields_dict.filter_fields.grid.update_docfield_property(
|
||||||
field.fieldtype = 'Select';
|
'fieldname', 'fieldtype', 'Select'
|
||||||
field.options = valid_fields;
|
);
|
||||||
frm.fields_dict.filter_fields.grid.refresh();
|
frm.fields_dict.filter_fields.grid.update_docfield_property(
|
||||||
|
'fieldname', 'options', valid_fields
|
||||||
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -112,8 +112,6 @@ def place_order():
|
|||||||
def request_for_quotation():
|
def request_for_quotation():
|
||||||
quotation = _get_cart_quotation()
|
quotation = _get_cart_quotation()
|
||||||
quotation.flags.ignore_permissions = True
|
quotation.flags.ignore_permissions = True
|
||||||
quotation.save()
|
|
||||||
if not get_shopping_cart_settings().save_quotations_as_draft:
|
|
||||||
quotation.submit()
|
quotation.submit()
|
||||||
return quotation.name
|
return quotation.name
|
||||||
|
|
||||||
|
@ -15,8 +15,9 @@ frappe.ui.form.on('Item Variant Settings', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const child = frappe.meta.get_docfield("Variant Field", "field_name", frm.doc.name);
|
frm.fields_dict.fields.grid.update_docfield_property(
|
||||||
child.options = allow_fields;
|
'field_name', 'options', allow_fields
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -110,19 +110,4 @@ cur_frm.cscript.calc_net_total_pkg = function(doc, ps_detail) {
|
|||||||
refresh_many(['net_weight_pkg', 'net_weight_uom', 'gross_weight_uom', 'gross_weight_pkg']);
|
refresh_many(['net_weight_pkg', 'net_weight_uom', 'gross_weight_uom', 'gross_weight_pkg']);
|
||||||
}
|
}
|
||||||
|
|
||||||
var make_row = function(title,val,bold){
|
|
||||||
var bstart = '<b>'; var bend = '</b>';
|
|
||||||
return '<tr><td class="datalabelcell">'+(bold?bstart:'')+title+(bold?bend:'')+'</td>'
|
|
||||||
+'<td class="datainputcell" style="text-align:left;">'+ val +'</td>'
|
|
||||||
+'</tr>'
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.pformat.net_weight_pkg= function(doc){
|
|
||||||
return '<table style="width:100%">' + make_row('Net Weight', doc.net_weight_pkg) + '</table>'
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.pformat.gross_weight_pkg= function(doc){
|
|
||||||
return '<table style="width:100%">' + make_row('Gross Weight', doc.gross_weight_pkg) + '</table>'
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: validate gross weight field
|
// TODO: validate gross weight field
|
||||||
|
@ -248,13 +248,6 @@ cur_frm.fields_dict['items'].grid.get_field('project').get_query = function(doc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.select_print_heading = function(doc, cdt, cdn) {
|
|
||||||
if(doc.select_print_heading)
|
|
||||||
cur_frm.pformat.print_heading = doc.select_print_heading;
|
|
||||||
else
|
|
||||||
cur_frm.pformat.print_heading = "Purchase Receipt";
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.fields_dict['select_print_heading'].get_query = function(doc, cdt, cdn) {
|
cur_frm.fields_dict['select_print_heading'].get_query = function(doc, cdt, cdn) {
|
||||||
return {
|
return {
|
||||||
filters: [
|
filters: [
|
||||||
|
@ -558,7 +558,6 @@ frappe.ui.form.on('Stock Entry', {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i in frm.doc.items) {
|
for (let i in frm.doc.items) {
|
||||||
let item = frm.doc.items[i];
|
let item = frm.doc.items[i];
|
||||||
|
|
||||||
@ -856,7 +855,6 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({
|
|||||||
}
|
}
|
||||||
erpnext.hide_company();
|
erpnext.hide_company();
|
||||||
erpnext.utils.add_item(this.frm);
|
erpnext.utils.add_item(this.frm);
|
||||||
this.frm.trigger('add_to_transit');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
scan_barcode: function() {
|
scan_barcode: function() {
|
||||||
|
@ -34,7 +34,7 @@ class TestStockLedgerEntry(unittest.TestCase):
|
|||||||
qty=50,
|
qty=50,
|
||||||
rate=100,
|
rate=100,
|
||||||
company=company,
|
company=company,
|
||||||
expense_account = "Stock Adjustment - _TC",
|
expense_account = "Stock Adjustment - _TC" if frappe.get_all("Stock Ledger Entry") else "Temporary Opening - _TC",
|
||||||
posting_date='2020-04-10',
|
posting_date='2020-04-10',
|
||||||
posting_time='14:00'
|
posting_time='14:00'
|
||||||
)
|
)
|
||||||
@ -46,7 +46,7 @@ class TestStockLedgerEntry(unittest.TestCase):
|
|||||||
qty=10,
|
qty=10,
|
||||||
rate=200,
|
rate=200,
|
||||||
company=company,
|
company=company,
|
||||||
expense_account = "Stock Adjustment - _TC",
|
expense_account="Stock Adjustment - _TC" if frappe.get_all("Stock Ledger Entry") else "Temporary Opening - _TC",
|
||||||
posting_date='2020-04-20',
|
posting_date='2020-04-20',
|
||||||
posting_time='14:00'
|
posting_time='14:00'
|
||||||
)
|
)
|
||||||
@ -58,7 +58,7 @@ class TestStockLedgerEntry(unittest.TestCase):
|
|||||||
target="Finished Goods - _TC",
|
target="Finished Goods - _TC",
|
||||||
company=company,
|
company=company,
|
||||||
qty=10,
|
qty=10,
|
||||||
expense_account="Stock Adjustment - _TC",
|
expense_account="Stock Adjustment - _TC" if frappe.get_all("Stock Ledger Entry") else "Temporary Opening - _TC",
|
||||||
posting_date='2020-04-30',
|
posting_date='2020-04-30',
|
||||||
posting_time='14:00'
|
posting_time='14:00'
|
||||||
)
|
)
|
||||||
@ -90,7 +90,7 @@ class TestStockLedgerEntry(unittest.TestCase):
|
|||||||
qty=50,
|
qty=50,
|
||||||
rate=150,
|
rate=150,
|
||||||
company=company,
|
company=company,
|
||||||
expense_account = "Stock Adjustment - _TC",
|
expense_account ="Stock Adjustment - _TC" if frappe.get_all("Stock Ledger Entry") else "Temporary Opening - _TC",
|
||||||
posting_date='2020-04-12',
|
posting_date='2020-04-12',
|
||||||
posting_time='14:00'
|
posting_time='14:00'
|
||||||
)
|
)
|
||||||
|
@ -49,7 +49,7 @@ def get_average_age(fifo_queue, to_date):
|
|||||||
for batch in fifo_queue:
|
for batch in fifo_queue:
|
||||||
batch_age = date_diff(to_date, batch[1])
|
batch_age = date_diff(to_date, batch[1])
|
||||||
|
|
||||||
if type(batch[0]) in ['int', 'float']:
|
if isinstance(batch[0], (int, float)):
|
||||||
age_qty += batch_age * batch[0]
|
age_qty += batch_age * batch[0]
|
||||||
total_qty += batch[0]
|
total_qty += batch[0]
|
||||||
else:
|
else:
|
||||||
|
@ -10,7 +10,9 @@ frappe.ui.form.on('Service Level Agreement', {
|
|||||||
let statuses = frappe.meta.get_docfield('Issue', 'status', frm.doc.name).options;
|
let statuses = frappe.meta.get_docfield('Issue', 'status', frm.doc.name).options;
|
||||||
statuses = statuses.split('\n');
|
statuses = statuses.split('\n');
|
||||||
allow_statuses = statuses.filter((status) => !exclude_statuses.includes(status));
|
allow_statuses = statuses.filter((status) => !exclude_statuses.includes(status));
|
||||||
frappe.meta.get_docfield('Pause SLA On Status', 'status', frm.doc.name).options = [''].concat(allow_statuses);
|
frm.fields_dict.pause_sla_on.grid.update_docfield_property(
|
||||||
|
'status', 'options', [''].concat(allow_statuses)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
@ -52,6 +52,7 @@ frappe.query_reports["Issue Analytics"] = {
|
|||||||
label: __("Status"),
|
label: __("Status"),
|
||||||
fieldtype: "Select",
|
fieldtype: "Select",
|
||||||
options:[
|
options:[
|
||||||
|
"",
|
||||||
{label: __('Open'), value: 'Open'},
|
{label: __('Open'), value: 'Open'},
|
||||||
{label: __('Replied'), value: 'Replied'},
|
{label: __('Replied'), value: 'Replied'},
|
||||||
{label: __('Resolved'), value: 'Resolved'},
|
{label: __('Resolved'), value: 'Resolved'},
|
||||||
|
@ -39,6 +39,7 @@ frappe.query_reports["Issue Summary"] = {
|
|||||||
label: __("Status"),
|
label: __("Status"),
|
||||||
fieldtype: "Select",
|
fieldtype: "Select",
|
||||||
options:[
|
options:[
|
||||||
|
"",
|
||||||
{label: __('Open'), value: 'Open'},
|
{label: __('Open'), value: 'Open'},
|
||||||
{label: __('Replied'), value: 'Replied'},
|
{label: __('Replied'), value: 'Replied'},
|
||||||
{label: __('Resolved'), value: 'Resolved'},
|
{label: __('Resolved'), value: 'Resolved'},
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<small class="formatted-price">({{ product_info.price.formatted_price }} / {{ product_info.uom }})</small>
|
<small class="formatted-price">({{ product_info.price.formatted_price }} / {{ product_info.uom }})</small>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ _("Unit of Measurement") }} : {{ product_info.uom }}
|
{{ _("UOM") }} : {{ product_info.uom }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if cart_settings.show_stock_availability %}
|
{% if cart_settings.show_stock_availability %}
|
||||||
|
@ -14,11 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3 text-right bold">
|
<div class="col-sm-3 text-right bold">
|
||||||
{% if doc.doctype == "Quotation" and not doc.docstatus %}
|
|
||||||
{{ _("Pending") }}
|
|
||||||
{% else %}
|
|
||||||
{{ doc.get_formatted("grand_total") }}
|
{{ doc.get_formatted("grand_total") }}
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="transaction-item-link" href="/{{ pathname }}/{{ doc.name }}">Link</a>
|
<a class="transaction-item-link" href="/{{ pathname }}/{{ doc.name }}">Link</a>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block header_actions %}
|
{% block header_actions %}
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
<button class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||||
<span>{{ _('Actions') }}</span>
|
<span>{{ _('Actions') }}</span>
|
||||||
<b class="caret"></b>
|
<b class="caret"></b>
|
||||||
@ -26,7 +26,8 @@
|
|||||||
{{ _("Print") }}
|
{{ _("Print") }}
|
||||||
</a>
|
</a>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
@ -7,7 +7,6 @@ import frappe.share
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import cstr, now_datetime, cint, flt, get_time, get_datetime, get_link_to_form, date_diff, nowdate
|
from frappe.utils import cstr, now_datetime, cint, flt, get_time, get_datetime, get_link_to_form, date_diff, nowdate
|
||||||
from erpnext.controllers.status_updater import StatusUpdater
|
from erpnext.controllers.status_updater import StatusUpdater
|
||||||
from erpnext.accounts.utils import get_fiscal_year
|
|
||||||
|
|
||||||
from six import string_types
|
from six import string_types
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user