lib/app/taxtransaction.go

67 lines
1.7 KiB
Go
Raw Permalink Normal View History

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-12 05:46:24 +00:00
// TaxTransactionChannelWrapper wraps the object with the security principal
type TaxTransactionChannelWrapper struct {
Obj ops_models.TaxTransaction
Principal User
}
2021-01-10 18:40:46 +00:00
// TaxTransaction is the in-memory struct for a Taxnexus Tax Transaction
type TaxTransaction struct {
ID string
AccountID string
AccountingRuleCode string
Amount float64
CoordinateID string
CreatedByID string
CreatedDate sql.NullTime
CustomerID string
DisplayName string
EffectiveRate float64
FilingID string
IngestID string
InvoiceID string
InvoiceItemID string
IsSummary bool
IsUseTax bool
JobID string
JournalDate sql.NullTime
JournalItemID string
LastModifiedByID string
LastModifiedDate sql.NullTime
OrderID string
OrderItemID string
ParentRef string
PercentTaxable float64
PeriodID string
PlaceGeoCode string
PlaceID string
PoID string
PoItemID string
Posted bool
QuoteID string
QuoteItemID string
RatingType string
Ref string
RevenueBase float64
RevenueNet float64
RevenueNotTaxable float64
SalesRegulation string
TaxexemptRevenue float64
TaxnexusCodeDisplay string
TaxnexusCodeID string
TaxOnTax float64
TaxRate float64
TaxTypeAccountID string
TaxTypeID string
TenantID string
UnitBase float64
UnitFeeRate float64
}