`;
}
export function selectRegisterAccount(accountId) {
@@ -366,7 +387,16 @@ function renderRegisterRow(r) {
}
function renderSplitCell(r) {
- if (!r.splits || !r.splits.length) return `
`;
+ if (!r.splits || !r.splits.length) {
+ const type = (r.type || '').toLowerCase();
+ if (type.includes('tax payment')) {
+ return `
`;
+ }
+ if (type.includes('paycheck') || type.includes('payroll')) {
+ return `
${escapeHtml(s.account || '?')}
@@ -387,39 +417,42 @@ export function injectReportsControls() {
if (!bsAsOfDate) bsAsOfDate = todayISO();
c.innerHTML = `
-
-
-
Profit & Loss
-
-
-
-
-
-
-
-
-
+ ${makeCollapsible('Reports', 'reports-section-body')}
+
+
+
+
Profit & Loss
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
Balance Sheet
-
-
-
-
-
-
-
+
+
Balance Sheet
+
+
+
+
+
+
+
+
+
-
`;
@@ -514,33 +547,36 @@ export function injectExpensesSection() {
if (!expEndDate) expEndDate = todayISO();
c.innerHTML = `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-