From 64fec78076a44ca63274a134fcbfc641e414bae9 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 6 Apr 2024 10:27:33 +0530 Subject: added FirmName to user --- invoice/invoice.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'invoice/invoice.go') diff --git a/invoice/invoice.go b/invoice/invoice.go index 6fcd3c5..86fed17 100644 --- a/invoice/invoice.go +++ b/invoice/invoice.go @@ -64,11 +64,14 @@ type Invoice struct { IsDraft bool Items []InvoiceItem - // the customer fields are hard coded for: - // 1. simplicity and - // 2. don't wanna update details for all the - // invoices if one customer's details are updated - // NOTE: These fields aren't getting validated (as of now, at least) + // issuer and customer details are stored here + // because they are NOT intended to ever change + IssuerFirmName string + IssuerFirmAddress string + IssuerFirmGstin string + IssuerFirmPhone string + IssuerFirmEmail string + IssuerFirmWebsite string CustomerName string CustomerGstin string CustomerContactName string -- cgit v1.2.3