+ ledger account ownerRef

This commit is contained in:
Stephan D
2026-01-22 00:38:05 +01:00
parent eb4e7bc06a
commit 62ff96b90e
31 changed files with 69 additions and 47 deletions

View File

@@ -13,6 +13,7 @@ import (
type ledgerAccount struct {
LedgerAccountRef string `json:"ledgerAccountRef"`
OrganizationRef string `json:"organizationRef"`
OwnerRef string `json:"ownerRef,omitempty"`
AccountCode string `json:"accountCode"`
AccountType string `json:"accountType"`
Currency string `json:"currency"`
@@ -83,6 +84,7 @@ func toLedgerAccount(acc *ledgerv1.LedgerAccount) ledgerAccount {
return ledgerAccount{
LedgerAccountRef: acc.GetLedgerAccountRef(),
OrganizationRef: acc.GetOrganizationRef(),
OwnerRef: acc.GetOwnerRef(),
AccountCode: acc.GetAccountCode(),
AccountType: acc.GetAccountType().String(),
Currency: acc.GetCurrency(),