show Pay Link only in certain situations
This commit is contained in:
@@ -281,7 +281,7 @@ function renderInvoiceRow(invoice) {
|
|||||||
|
|
||||||
const delBtn = `<button onclick="window.invoiceView.remove(${invoice.id})" class="text-red-600 hover:text-red-900">Del</button>`;
|
const delBtn = `<button onclick="window.invoiceView.remove(${invoice.id})" class="text-red-600 hover:text-red-900">Del</button>`;
|
||||||
|
|
||||||
const stripeEmailBtn = (!paid && hasQbo)
|
const stripeEmailBtn = (hasQbo && !paid && !overdue && invoice.email_status !== 'sent')
|
||||||
? `<button onclick="window.emailModal.open(${invoice.id})" title="Email with Stripe Payment Link" class="px-2 py-1 bg-purple-100 text-purple-700 rounded hover:bg-purple-200 text-xs font-semibold">💳 Pay Link</button>`
|
? `<button onclick="window.emailModal.open(${invoice.id})" title="Email with Stripe Payment Link" class="px-2 py-1 bg-purple-100 text-purple-700 rounded hover:bg-purple-200 text-xs font-semibold">💳 Pay Link</button>`
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user