mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
fix: remove text-muted and small class fromtree items
This commit is contained in:
@@ -130,7 +130,7 @@ frappe.treeview_settings["Account"] = {
|
|||||||
let dr_or_cr = balance > 0 ? "Dr": "Cr";
|
let dr_or_cr = balance > 0 ? "Dr": "Cr";
|
||||||
|
|
||||||
if (node.data && node.data.balance!==undefined) {
|
if (node.data && node.data.balance!==undefined) {
|
||||||
$('<span class="balance-area pull-right text-muted small">'
|
$('<span class="balance-area pull-right">'
|
||||||
+ (node.data.balance_in_account_currency ?
|
+ (node.data.balance_in_account_currency ?
|
||||||
(format_currency(Math.abs(node.data.balance_in_account_currency),
|
(format_currency(Math.abs(node.data.balance_in_account_currency),
|
||||||
node.data.account_currency) + " / ") : "")
|
node.data.account_currency) + " / ") : "")
|
||||||
|
|||||||
@@ -13,19 +13,19 @@ frappe.treeview_settings["Healthcare Service Unit"] = {
|
|||||||
ignore_fields:["parent_healthcare_service_unit"],
|
ignore_fields:["parent_healthcare_service_unit"],
|
||||||
onrender: function(node) {
|
onrender: function(node) {
|
||||||
if (node.data.occupied_out_of_vacant!==undefined){
|
if (node.data.occupied_out_of_vacant!==undefined){
|
||||||
$('<span class="balance-area pull-right text-muted small">'
|
$('<span class="balance-area pull-right">'
|
||||||
+ " " + node.data.occupied_out_of_vacant
|
+ " " + node.data.occupied_out_of_vacant
|
||||||
+ '</span>').insertBefore(node.$ul);
|
+ '</span>').insertBefore(node.$ul);
|
||||||
}
|
}
|
||||||
if (node.data && node.data.inpatient_occupancy!==undefined) {
|
if (node.data && node.data.inpatient_occupancy!==undefined) {
|
||||||
if (node.data.inpatient_occupancy == 1){
|
if (node.data.inpatient_occupancy == 1){
|
||||||
if (node.data.occupancy_status == "Occupied"){
|
if (node.data.occupancy_status == "Occupied"){
|
||||||
$('<span class="balance-area pull-right small">'
|
$('<span class="balance-area pull-right">'
|
||||||
+ " " + node.data.occupancy_status
|
+ " " + node.data.occupancy_status
|
||||||
+ '</span>').insertBefore(node.$ul);
|
+ '</span>').insertBefore(node.$ul);
|
||||||
}
|
}
|
||||||
if (node.data.occupancy_status == "Vacant"){
|
if (node.data.occupancy_status == "Vacant"){
|
||||||
$('<span class="balance-area pull-right text-muted small">'
|
$('<span class="balance-area pull-right">'
|
||||||
+ " " + node.data.occupancy_status
|
+ " " + node.data.occupancy_status
|
||||||
+ '</span>').insertBefore(node.$ul);
|
+ '</span>').insertBefore(node.$ul);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ frappe.treeview_settings['Warehouse'] = {
|
|||||||
ignore_fields:["parent_warehouse"],
|
ignore_fields:["parent_warehouse"],
|
||||||
onrender: function(node) {
|
onrender: function(node) {
|
||||||
if (node.data && node.data.balance!==undefined) {
|
if (node.data && node.data.balance!==undefined) {
|
||||||
$('<span class="balance-area pull-right text-muted small">'
|
$('<span class="balance-area pull-right">'
|
||||||
+ format_currency(Math.abs(node.data.balance), node.data.company_currency)
|
+ format_currency(Math.abs(node.data.balance), node.data.company_currency)
|
||||||
+ '</span>').insertBefore(node.$ul);
|
+ '</span>').insertBefore(node.$ul);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user