Summarize amount of account and if negative or positive map to the concerning acount
For some GL import accounts I would like to, first summarize the amounts and depending if the total result is positive or negative, map it to a specific HFM account, grouped by the Entity
The account is in field 3 and the Entity consists of field 1 and 5 and the amount is in field 7.
e.g.
Inport file:
V50|A|440259 |[None]|00490 |[None]|-9232737.390|-9232737.390|EUR
V50|A|440259 |[None]|00636 |[None]|798665.090|798665.090|EUR
V50|A|440259 |[None]|[None]|[None]|-110.210|128.760|USD
V50|A|440259 |[None]|[None]|00191 |-41375568.000|-41375568.000|EUR
V50|A|440259 |[None]|00463 |[None]|-15000000.000|-15000000.000|EUR
V50|A|440259 |[None]|[None]|[None]|83876146.680|83876146.680|EUR
V5000490 maps to entity 1
V5000636 maps to entity 2