Add salutation field to contacts #13

This commit is contained in:
2025-10-29 13:53:08 +01:00
parent a34226c6a9
commit 59c2b9c28c
10 changed files with 26 additions and 13 deletions
+1
View File
@@ -120,6 +120,7 @@ const saveInvoice = async (updatedInvoice: Invoice) => {
companyName: updatedInvoice.billingData?.companyName,
vatId: updatedInvoice.billingData?.vatId,
billingAddress: updatedInvoice.billingData?.billingAddress,
contactSalutation: updatedInvoice.billingData?.contactSalutation,
contactFirstName: updatedInvoice.billingData?.contactFirstName,
contactLastName: updatedInvoice.billingData?.contactLastName,
paymentTerms: updatedInvoice.billingData?.paymentTerms
+3
View File
@@ -86,6 +86,7 @@ export type ContactType = Contact
export function newContact(): Contact {
return {
id: 0,
salutation: '',
firstName: '',
lastName: '',
email: '',
@@ -146,6 +147,7 @@ export interface Invoice {
companyName: string | null;
vatId: string | null;
billingAddress: Address | null;
contactSalutation: string | null;
contactFirstName: string | null;
contactLastName: string | null;
paymentTerms: PaymentTerms | null;
@@ -181,6 +183,7 @@ export function newBillingData() {
companyName: "",
vatId: "",
billingAddress: newAddress(),
contactSalutation: "",
contactFirstName: "",
contactLastName: "",
paymentTerms: newPaymentTerms()