This commit is contained in:
2026-02-24 16:35:03 -06:00
parent be834fa9a0
commit 29a37ad98a
4 changed files with 311 additions and 108 deletions

View File

@@ -221,11 +221,11 @@ function renderInvoiceRow(invoice) {
const customerHasQbo = !!invoice.customer_qbo_id;
let qboBtn;
if (hasQbo) {
qboBtn = `<button onclick="window.invoiceView.syncToQBO(${invoice.id})" class="text-purple-600 hover:text-purple-900" title="Sync changes to QBO (ID: ${invoice.qbo_id})"> QBO Sync</button>`;
qboBtn = `<span class="text-green-600 text-xs" title="QBO ID: ${invoice.qbo_id}"> QBO</span>`;
} else if (!customerHasQbo) {
qboBtn = `<span class="text-gray-300 text-xs cursor-not-allowed" title="Customer must be exported to QBO first">QBO ⚠</span>`;
} else {
qboBtn = `<button onclick="window.invoiceView.exportToQBO(${invoice.id})" class="text-orange-600 hover:text-orange-900" title="Export to QuickBooks">QBO Export</button>`;
qboBtn = `<span class="text-gray-400 text-xs" title="Will be exported to QBO on save">QBO pending</span>`;
}
const pdfBtn = draft