lib/app/total.go

31 lines
717 B
Go
Raw Normal View History

2021-01-10 23:44:39 +00:00
package app
2021-01-10 18:40:46 +00:00
2021-01-12 05:46:24 +00:00
import "code.tnxs.net/taxnexus/lib/api/ops/ops_models"
// TotalChannelWrapper wraps the object with the security principal
type TotalChannelWrapper struct {
Obj ops_models.Total
Principal User
}
2021-01-10 18:40:46 +00:00
// Total is a DB object
type Total struct {
ID string
TotalItems map[string]*TotalItem
Amount float64
BusinessTax float64
BusinessTaxRate float64
CannabisTax float64
CannabisTaxRate float64
MonthlyAmount float64
ObjectType string
PurchaseAmount float64
SalesTax float64
SalesTaxRate float64
ShippingHandling float64
Subtotal float64
TelecomTax float64
TelecomTaxRate float64
TenantID string
}