I got myself a new broker and migrated all shares there. But whatever I try beancount complains about not beeing able to match postings.
2018-01-01 open Assets:Depot:BR1 "FIFO"
2021-10-01 open Assets:Depot:BR2 "FIFO"
2021-07-02 * "BR1" Savings Plan"
Assets:Depot:BR1 4.978 XYZ {100.44 EUR}
Assets:Clearing:BR1 -499.99 EUR
2021-04-07 * "BR1" "Savings Plan"
Assets:Depot:BR1 5.218 XYZ {95.8107 EUR}
Assets:Clearing:BR1 -500.00 EUR
What I tried:
2021-10-05 * "BR2" "Transfer everything"
Assets:Depot:BR2 -10 XYZ
Assets:Depot:BR1 10 XYZ
Causes Assets:Depot:BR1 to contain 10 XYZ and -10 XYZ.
2021-10-05 * "BR2" "Transfer everything"
Assets:Depot:BR2 -10 XYZ {}
Assets:Depot:BR1 10 XYZ
Error: "No position matches Posting..."
2021-10-05 * "BR2" "Transfer everything"
Assets:Depot:BR2 -10 XYZ {}
Assets:Depot:BR1 10 XYZ {}
Error: "Failed to categorize posting 1"
How do I make Beancount transfer all shares following FIFO to the new account to keep cost basis?
Thank you