lib/app/journalitem.go

41 lines
968 B
Go

package app
import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
)
// JournalItemChannelWrapper wraps the object with workflow params
type JournalItemChannelWrapper struct {
Obj ledger_models.JournalItem
APIKey string
SagaID string
SagaType string
}
// JournalItem is a first class object type
type JournalItem struct {
ID string
CreatedByID string
CreatedDate sql.NullTime
Credit float64
Debit float64
GlAccountID string
GlAccountDisplay string
GlBalance string
InvoiceItemID string
JournalEntryID string
LastModifiedDate sql.NullTime
LastModifiedByID string
PoItemID string
ProductID string
ProductCode string
ReferenceType string
SalesRegulation string
TaxnexusCodeID string
TaxnexusCodeDisplay string
TaxTransactionID string
TenantID string
}