changes
This commit is contained in:
@@ -677,7 +677,7 @@ async function openInvoiceModal(invoiceId = null) {
|
||||
document.getElementById('invoice-terms').value = data.invoice.terms;
|
||||
document.getElementById('invoice-authorization').value = data.invoice.auth_code || '';
|
||||
document.getElementById('invoice-tax-exempt').checked = data.invoice.tax_exempt;
|
||||
|
||||
document.getElementById('invoice-bill-to-name').value = data.invoice.bill_to_name || '';
|
||||
// Scheduled Send Date
|
||||
const sendDateEl = document.getElementById('invoice-send-date');
|
||||
if (sendDateEl) {
|
||||
@@ -951,6 +951,7 @@ async function handleInvoiceSubmit(e) {
|
||||
auth_code: document.getElementById('invoice-authorization').value,
|
||||
tax_exempt: document.getElementById('invoice-tax-exempt').checked,
|
||||
scheduled_send_date: document.getElementById('invoice-send-date')?.value || null,
|
||||
bill_to_name: document.getElementById('invoice-bill-to-name')?.value || null,
|
||||
items: getInvoiceItems() // Deine bestehende Funktion
|
||||
};
|
||||
|
||||
|
||||
@@ -430,6 +430,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-1">Bill To Name (optional)</label>
|
||||
<input type="text" id="invoice-bill-to-name" placeholder="Default: Company name"
|
||||
class="w-full px-4 py-2 border border-gray-300 rounded-md">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-1">Date</label>
|
||||
<input type="date" id="invoice-date" required
|
||||
|
||||
Reference in New Issue
Block a user