lib/app/submission.go

46 lines
1.1 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
2021-01-12 05:46:24 +00:00
import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// SubmissionChannelWrapper wraps the object with the security principal
type SubmissionChannelWrapper struct {
Obj regs_models.Submission
Principal User
2021-01-13 05:30:35 +00:00
SagaID string
SagaType string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// Submission is a first class object type
type Submission struct {
ID string
CompanyID string
ContactID string
CreatedByID string
CreatedDate sql.NullTime
LastModifiedByID string
LastModifiedDate sql.NullTime
Notes string
Penalty float64
ParentFK string
Ref string
ReportedAdjustments float64
ReportedDeductions float64
ReportedNetRevenue float64
ReportedRate float64
ReportedRevenue float64
RevenueBase float64
RevenueNet float64
RevenueNotTaxable float64
Status string
Subtotal float64
SubmissionDate sql.NullTime
SubmissionNumber string
TaxTypeID string
TotalAmount float64
TenantID string
}