2021-01-10 23:44:39 +00:00
|
|
|
package app
|
2021-01-10 18:40:46 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
2021-01-12 05:46:24 +00:00
|
|
|
|
|
|
|
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
|
2021-01-10 18:40:46 +00:00
|
|
|
)
|
|
|
|
|
2021-01-14 06:36:35 +00:00
|
|
|
// InvoiceItemChannelWrapper wraps the object with workflow params
|
2021-01-12 05:46:24 +00:00
|
|
|
type InvoiceItemChannelWrapper struct {
|
2021-01-19 01:50:45 +00:00
|
|
|
Obj ops_models.InvoiceItem
|
|
|
|
APIKey string
|
|
|
|
SagaID string
|
|
|
|
SagaType string
|
2021-01-12 05:46:24 +00:00
|
|
|
}
|
|
|
|
|
2021-01-10 18:40:46 +00:00
|
|
|
// InvoiceItem is a large struct
|
|
|
|
type InvoiceItem struct {
|
|
|
|
ID string
|
|
|
|
COGS float64
|
|
|
|
CreatedByID string
|
|
|
|
CreatedDate sql.NullTime
|
|
|
|
Description string
|
|
|
|
Family string
|
|
|
|
InvoiceID string
|
|
|
|
LastModifiedByID string
|
|
|
|
LastModifiedDate sql.NullTime
|
|
|
|
ListPrice float64
|
|
|
|
MRCInterval int64
|
|
|
|
OrderItemID string
|
|
|
|
ParentFK string
|
|
|
|
ProductCode string
|
|
|
|
ProductName string
|
|
|
|
ProductID string
|
|
|
|
Quantity float64
|
|
|
|
QuoteItemID string
|
|
|
|
Ref string
|
|
|
|
RejectedQuantity float64
|
|
|
|
ShippedQuantity float64
|
|
|
|
ShippingHandling float64
|
|
|
|
SKU string
|
|
|
|
SubscriptionID string
|
|
|
|
Subtotal float64
|
|
|
|
TaxnexusCodeDisplay string
|
|
|
|
TaxnexusCodeID string
|
|
|
|
TenantID string
|
|
|
|
TotalPrice float64
|
|
|
|
UnitPrice float64
|
|
|
|
Units string
|
|
|
|
}
|
|
|
|
|
|
|
|
// ItemFamily defines a subtotal an a converged invoice
|
|
|
|
type ItemFamily struct {
|
|
|
|
MonthlySubtotal float64
|
|
|
|
PurchaseSubtotal float64
|
|
|
|
ItemCount int64
|
|
|
|
MonthlyAmount string
|
|
|
|
Name string
|
|
|
|
PurchaseAmount string
|
|
|
|
}
|