mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-01 12:08:37 -04:00
Move OFX imports from libofx to ofxgo
This makes them native Go code, and will allow for fetching them directly from financial institutions later.
This commit is contained in:
@ -44,8 +44,7 @@ func (s *Split) GetAmount() (*big.Rat, error) {
|
||||
}
|
||||
|
||||
func (s *Split) Valid() bool {
|
||||
if (s.AccountId == -1 && s.SecurityId == -1) ||
|
||||
(s.AccountId != -1 && s.SecurityId != -1) {
|
||||
if (s.AccountId == -1) == (s.SecurityId == -1) {
|
||||
return false
|
||||
}
|
||||
_, err := s.GetAmount()
|
||||
|
Reference in New Issue
Block a user