Add Gesamtverdienst im Gehaltsscheck

This commit is contained in:
VegaZ
2021-05-03 22:57:26 +02:00
parent b75ab7bb38
commit eba04fb18e

View File

@@ -132,6 +132,17 @@ export default function (globalData: IGlobalData) {
item.SetRightLabel(moneyFormat(Number((p.financialInterest * 100).toFixed(3))) + "%"); item.SetRightLabel(moneyFormat(Number((p.financialInterest * 100).toFixed(3))) + "%");
paycheckMenu.AddItem(item); 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.AddItem(paycheckItem);
menu.BindMenuToItem(paycheckMenu, paycheckItem); menu.BindMenuToItem(paycheckMenu, paycheckItem);
} }