Add Gesamtverdienst im Gehaltsscheck
This commit is contained in:
@@ -132,6 +132,17 @@ export default function (globalData: IGlobalData) {
|
||||
item.SetRightLabel(moneyFormat(Number((p.financialInterest * 100).toFixed(3))) + "%");
|
||||
paycheckMenu.AddItem(item);
|
||||
|
||||
item = new UIMenuItem("Gesamt");
|
||||
if (p.amount >= 0) {
|
||||
item.SetRightLabel("~g~+ $" + moneyFormat(Number(p.amount.toFixed(2))));
|
||||
} else {
|
||||
item.SetRightLabel("~r~- $" + moneyFormat(Number(p.amount.toFixed(2))));
|
||||
}
|
||||
item.BackColor = new Color(0, 0, 0);
|
||||
item.HighlightedBackColor = new Color(0, 0, 0);
|
||||
item.HighlightedForeColor = new Color(255, 255, 255);
|
||||
paycheckMenu.AddItem(item)
|
||||
|
||||
menu.AddItem(paycheckItem);
|
||||
menu.BindMenuToItem(paycheckMenu, paycheckItem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user