Order Conflicts

These orders changed in both WooCommerce and QuickBooks since the last successful sync. Pick which side should win — the other side will be overwritten.

WC OrderQB TxnTypeLast UpdatedAction
No conflicts. 🎉
#
(function () { const nonce = ''; const ajaxUrl = ''; document.querySelectorAll('[data-qbws-resolve]').forEach(btn => { btn.addEventListener('click', async () => { const row = btn.closest('tr'); const orderId = row.getAttribute('data-order-id'); const keep = btn.getAttribute('data-qbws-resolve'); btn.closest('td').querySelectorAll('button').forEach(b => b.disabled = true); const res = await fetch(ajaxUrl + '?action=qbws_resolve_conflict', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: `order_id=${encodeURIComponent(orderId)}&keep=${encodeURIComponent(keep)}&_wpnonce=${nonce}`, }); const data = await res.json(); if (data.success) { row.remove(); } else { alert('Failed: ' + (data.data || 'unknown error')); btn.closest('td').querySelectorAll('button').forEach(b => b.disabled = false); } }); }); })();