fix: Remove unnecessary condition
This commit is contained in:
parent
4da7c5882b
commit
d62af77ca8
@ -629,7 +629,6 @@ frappe.ui.form.on('Sales Invoice', {
|
|||||||
|
|
||||||
// discount account
|
// discount account
|
||||||
frm.fields_dict['items'].grid.get_field('discount_account').get_query = function(doc) {
|
frm.fields_dict['items'].grid.get_field('discount_account').get_query = function(doc) {
|
||||||
if (erpnext.is_perpetual_inventory_enabled(doc.company)) {
|
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
'report_type': 'Profit and Loss',
|
'report_type': 'Profit and Loss',
|
||||||
@ -638,7 +637,6 @@ frappe.ui.form.on('Sales Invoice', {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
frm.fields_dict['items'].grid.get_field('deferred_revenue_account').get_query = function(doc) {
|
frm.fields_dict['items'].grid.get_field('deferred_revenue_account').get_query = function(doc) {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user