When editing an expense that has (at least) two parts that are for different cost centres but that have a secondary cost centre with the same name and that secondary cost centre was picked for the first expense, it will be blank and forced to be repicked. This also goes for if the secondary cost centres are different but both have the same name for a budget line.
Exmaple:
When editing an expense with dHusbyggarna -> Allmänt -> Tegel and dKnas -> Allmänt -> Knas, the first part will be dHusbyggarna -> -> Tegel.
When editing an expense with dAta -> Internt -> Fika and dSnacks -> Allmänt -> Fika, the first part will be dAta -> -> Fika.
I think that the reason is that at templates/expenses/edit.html:236 we can't check only the SecondaryCostCentreName but rather both CostCentreName and CostCentreName
When editing an expense that has (at least) two parts that are for different cost centres but that have a secondary cost centre with the same name and that secondary cost centre was picked for the first expense, it will be blank and forced to be repicked. This also goes for if the secondary cost centres are different but both have the same name for a budget line.
Exmaple: When editing an expense with
dHusbyggarna -> Allmänt -> Tegel
anddKnas -> Allmänt -> Knas
, the first part will bedHusbyggarna -> -> Tegel
.When editing an expense with
dAta -> Internt -> Fika
anddSnacks -> Allmänt -> Fika
, the first part will bedAta -> -> Fika
.