altered contact/add in order to make use of the new contact backend instead of the legacy API

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-10 14:41:03 +02:00
parent e5227c3e19
commit 1cfaa3ccc6
9 changed files with 47 additions and 36 deletions

View File

@@ -68,9 +68,9 @@
if (contact.ADR.locality) addr += contact.ADR.post_code + " "+ contact.ADR.locality + "\n";
if (contact.ADR.county) addr += contact.ADR.country+"\n";
document.customer.name = addr;
document.customer.tax_id = contact['X-TAX-NUMBER'];
document.customer.id = contact['X-CUSTOMER-NUMBER'];
document.customer.email = contact.EMAIL.val;
document.customer.tax_id = contact.tax_id;
document.customer.id = contact.customer_number;
document.customer.email = contact.EMAIL;
}
async function submit(){