From 908fb4b2b0fd1c31aa8c1cc87f56d490b42aca7a Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 9 Jul 2024 06:10:43 +0530 Subject: added invoice note --- invoice/invoice.go | 2 +- main.go | 2 +- user/user.go | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/invoice/invoice.go b/invoice/invoice.go index 8d808a3..4b93ee4 100644 --- a/invoice/invoice.go +++ b/invoice/invoice.go @@ -62,6 +62,7 @@ type Invoice struct { BillingAddress InvoiceBillingAddress ShippingAddress InvoiceShippingAddress IsDraft bool + Note string Items []InvoiceItem // issuer and customer details are stored here @@ -81,6 +82,5 @@ type Invoice struct { CustomerWebsite string // Transporter Transporter - // DueDate string // TransactionID string } diff --git a/main.go b/main.go index 0ca97b0..1e5c90f 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ import ( "log" ) -const OPENBILLS_VERSION = "v0.7.0" +const OPENBILLS_VERSION = "v0.8.0" func init() { if !viper.GetBool("debug_mode") { diff --git a/user/user.go b/user/user.go index 9db94e0..726c5c2 100644 --- a/user/user.go +++ b/user/user.go @@ -51,6 +51,9 @@ type User struct { // will be printed with address on the invoice Details string IsVerified bool + // a note is printed on every invoice. + // This is the default that gets automatically set + DefaultInvoiceNote string } func CheckPassword(user *User, accountName, method, pass string) error { -- cgit v1.2.3