Skip to content

Commit

Permalink
Merge pull request #4198 from whalley/master
Browse files Browse the repository at this point in the history
fix(#3998): refinements
  • Loading branch information
vomikan committed Feb 10, 2022
2 parents 18015e2 + d490bb1 commit 43c22ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/reports/categexp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,16 @@ wxString mmReportCategoryExpenses::getHTMLText()

hb.startTableRow("xtoggle");
{
Model_Subcategory::Data *sc = Model_Subcategory::instance().get(entry.subCatID);
wxString displayName = (sc) ? sc->SUBCATEGNAME : entry.name;
hb.addTableCellLink(wxString::Format("viewtrans:%d:%d", entry.catID, entry.subCatID)
, wxString::Format("   &nbsp%s",entry.name));
, wxString::Format("   &nbsp%s", displayName));
hb.addMoneyCell(entry.amount);
hb.addEmptyTableCell();
}
hb.endTableRow();

// This is the last subcategory for the category
if (group_counter[entry.categs] == group)
{
group = 0;
Expand Down
1 change: 1 addition & 0 deletions src/reports/htmlbuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ namespace tags
function collapseAllToggles() {
$(".xtoggle").hide();
}
collapseAllToggles();
var elements = document.getElementsByClassName('money');
for (var i = 0; i < elements.length; i++) {
elements[i].style.textAlign = 'right';
Expand Down

0 comments on commit 43c22ab

Please sign in to comment.