Fix import of AR/AP transaction batches.

(grafted from 8e01ccfd22c649e941d2ce0de5128e4a600c4622)

--HG--
extra : source : 8e01ccfd22c649e941d2ce0de5128e4a600c4622