This commit is contained in:
2026-05-25 15:25:16 -05:00
parent ecb18547c0
commit 65c722600e
5 changed files with 5 additions and 5 deletions

View File

@@ -201,7 +201,7 @@ router.post('/import-unpaid', async (req, res) => {
const txnDate = qboInv.TxnDate || new Date().toISOString().split('T')[0];
const syncToken = qboInv.SyncToken || '';
let terms = 'Net 30';
let terms = 'Net 14';
if (qboInv.SalesTermRef?.name) {
terms = qboInv.SalesTermRef.name;
}

View File

@@ -343,7 +343,7 @@ router.post('/:id/convert-to-invoice', async (req, res) => {
const invoiceResult = await client.query(
`INSERT INTO invoices (invoice_number, customer_id, invoice_date, terms, auth_code, tax_exempt, tax_rate, subtotal, tax_amount, total, created_from_quote_id)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING *`,
[invoice_number, quote.customer_id, invoiceDate, 'Net 30', '', quote.tax_exempt, quote.tax_rate, quote.subtotal, quote.tax_amount, quote.total, id]
[invoice_number, quote.customer_id, invoiceDate, 'Net 14', '', quote.tax_exempt, quote.tax_rate, quote.subtotal, quote.tax_amount, quote.total, id]
);
const invoiceId = invoiceResult.rows[0].id;