cleared column removed

This commit is contained in:
2026-05-06 16:06:44 -05:00
parent 39b42b7ac0
commit 9804698572
2 changed files with 1 additions and 12 deletions

View File

@@ -324,7 +324,6 @@ function renderRegisterTable(result) {
<th class="px-3 py-2 text-left font-medium text-gray-700">Payee</th> <th class="px-3 py-2 text-left font-medium text-gray-700">Payee</th>
<th class="px-3 py-2 text-left font-medium text-gray-700">Split / Category</th> <th class="px-3 py-2 text-left font-medium text-gray-700">Split / Category</th>
<th class="px-3 py-2 text-left font-medium text-gray-700">Memo</th> <th class="px-3 py-2 text-left font-medium text-gray-700">Memo</th>
<th class="px-3 py-2 text-center font-medium text-gray-700" title="Reconciled (R) / Cleared (C)">✓</th>
<th class="px-3 py-2 text-right font-medium text-gray-700">Amount</th> <th class="px-3 py-2 text-right font-medium text-gray-700">Amount</th>
</tr> </tr>
</thead> </thead>
@@ -338,14 +337,6 @@ function renderRegisterRow(r) {
const isSplit = r.splitAccount === '-Split-'; const isSplit = r.splitAccount === '-Split-';
const splitCellContent = isSplit ? renderSplitCell(r) : escapeHtml(r.splitAccount || ''); const splitCellContent = isSplit ? renderSplitCell(r) : escapeHtml(r.splitAccount || '');
// Punkt 3: Cleared-Status anzeigen mit Farbe
let clrBadge = '';
if (r.clearedStatus === 'R') {
clrBadge = `<span class="inline-block px-1.5 py-0.5 text-xs font-bold text-green-700 bg-green-100 rounded" title="Reconciled">R</span>`;
} else if (r.clearedStatus === 'C') {
clrBadge = `<span class="inline-block px-1.5 py-0.5 text-xs font-bold text-blue-700 bg-blue-100 rounded" title="Cleared">C</span>`;
}
return ` return `
<tr class="border-t hover:bg-gray-50 align-top"> <tr class="border-t hover:bg-gray-50 align-top">
<td class="px-3 py-2 text-sm whitespace-nowrap">${escapeHtml(r.date || '')}</td> <td class="px-3 py-2 text-sm whitespace-nowrap">${escapeHtml(r.date || '')}</td>
@@ -354,7 +345,6 @@ function renderRegisterRow(r) {
<td class="px-3 py-2 text-sm">${escapeHtml(r.payee || '')}</td> <td class="px-3 py-2 text-sm">${escapeHtml(r.payee || '')}</td>
<td class="px-3 py-2 text-sm text-gray-600">${splitCellContent}</td> <td class="px-3 py-2 text-sm text-gray-600">${splitCellContent}</td>
<td class="px-3 py-2 text-sm text-gray-500">${escapeHtml(r.memo || '')}</td> <td class="px-3 py-2 text-sm text-gray-500">${escapeHtml(r.memo || '')}</td>
<td class="px-3 py-2 text-sm text-center">${clrBadge}</td>
<td class="px-3 py-2 text-sm text-right whitespace-nowrap ${r.amount < 0 ? 'text-red-600' : 'text-gray-900'}"> <td class="px-3 py-2 text-sm text-right whitespace-nowrap ${r.amount < 0 ? 'text-red-600' : 'text-gray-900'}">
${r.amount != null ? fmtMoney(r.amount) : ''} ${r.amount != null ? fmtMoney(r.amount) : ''}
</td> </td>

View File

@@ -122,7 +122,6 @@ async function getRegister({ accountId, startDate, endDate, includeSplits = true
if (startDate) params.set('start_date', startDate); if (startDate) params.set('start_date', startDate);
if (endDate) params.set('end_date', endDate); if (endDate) params.set('end_date', endDate);
params.set('source_account', String(accountId)); params.set('source_account', String(accountId));
params.set('columns', 'tx_date,txn_type,doc_num,name,memo,account_name,split_acc,subt_nat_amount,cleared_status'); // ← NEU
params.set('minorversion', QBO_MINOR_VERSION); params.set('minorversion', QBO_MINOR_VERSION);
const url = `${baseUrl}/v3/company/${companyId}/reports/TransactionList?${params.toString()}`; const url = `${baseUrl}/v3/company/${companyId}/reports/TransactionList?${params.toString()}`;
@@ -133,7 +132,7 @@ async function getRegister({ accountId, startDate, endDate, includeSplits = true
const result = normalizeTransactionListReport(data); const result = normalizeTransactionListReport(data);
// ── NEU: Split-Details nachladen ── // Nur Split-Details nachladen (für -Split- Zeilen) — Cleared-Status nicht
if (includeSplits) { if (includeSplits) {
const splitRows = result.rows.filter(r => const splitRows = result.rows.filter(r =>
r.splitAccount === '-Split-' && r.qboId r.splitAccount === '-Split-' && r.qboId