GetEffectiveDate returns the transaction's effective date, falling back to CreatedAt if not explicitly set.
()
| 128 | |
| 129 | // GetEffectiveDate returns the transaction's effective date, falling back to CreatedAt if not explicitly set. |
| 130 | func (t *Transaction) GetEffectiveDate() time.Time { |
| 131 | if t.EffectiveDate != nil { |
| 132 | return *t.EffectiveDate |
| 133 | } |
| 134 | return t.CreatedAt // Fall back to CreatedAt for old records |
| 135 | } |
| 136 | |
| 137 | // isLeftDistribution checks if a distribution is a "left" type |
| 138 | func (d *Distribution) isLeftDistribution() bool { |
no outgoing calls