aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-09 06:10:43 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-09 06:10:43 +0530
commit908fb4b2b0fd1c31aa8c1cc87f56d490b42aca7a (patch)
tree4630365d362426390a4375bf39ea3ff755aa992f
parentafe4affa7e543b9a1ddd72efd7e2ab60f8c50317 (diff)
added invoice notev0.8.0
-rw-r--r--invoice/invoice.go2
-rw-r--r--main.go2
-rw-r--r--user/user.go3
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 {