summaryrefslogtreecommitdiff
path: root/invoice
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-11-11 23:27:37 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-11-11 23:27:37 +0530
commit0a885e5b7d76562a9d7c9c8f3353a53dd247eced (patch)
treef5c008194c880b8f1d813d1f9356a74a469eec83 /invoice
parent10eb82c7c00a0a1a75528644fbfbe108a769207f (diff)
added TotalAmount field to Invoice struct
Diffstat (limited to 'invoice')
-rw-r--r--invoice/invoice.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/invoice/invoice.go b/invoice/invoice.go
index d195ea3..91b881c 100644
--- a/invoice/invoice.go
+++ b/invoice/invoice.go
@@ -91,6 +91,8 @@ type Invoice struct {
// user can apply a discount on the whole invoice
// TODO: float64 isn't the best for this
DiscountPercentage float64 `bson:"DiscountPercentage" json:"DiscountPercentage"`
+ // helps to filter amount by amount
+ TotalAmount float64 `bson:"TotalAmount" json:"TotalAmount"`
/* client may have multiple shipping
* addresses but invoice only has one.
* Empty ShippingAddress means shipping