summaryrefslogtreecommitdiff
path: root/invoice/invoice.go
diff options
context:
space:
mode:
Diffstat (limited to 'invoice/invoice.go')
-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