@@ -1176,7 +1176,7 @@ def reconcile_balances!(family)
11761176 @home . entries . create! (
11771177 entryable : Valuation . new ,
11781178 amount : 350_000 ,
1179- name : "Current Market Value" ,
1179+ name : Valuation . build_current_anchor_name ( @home . accountable_type ) ,
11801180 currency : "USD" ,
11811181 date : Date . current
11821182 )
@@ -1185,31 +1185,31 @@ def reconcile_balances!(family)
11851185 @honda_accord . entries . create! (
11861186 entryable : Valuation . new ,
11871187 amount : 18_000 ,
1188- name : "Current Market Value" ,
1188+ name : Valuation . build_current_anchor_name ( @honda_accord . accountable_type ) ,
11891189 currency : "USD" ,
11901190 date : Date . current
11911191 )
11921192
11931193 @tesla_model3 . entries . create! (
11941194 entryable : Valuation . new ,
11951195 amount : 4_500 ,
1196- name : "Current Market Value" ,
1196+ name : Valuation . build_current_anchor_name ( @tesla_model3 . accountable_type ) ,
11971197 currency : "USD" ,
11981198 date : Date . current
11991199 )
12001200
12011201 @jewelry . entries . create! (
12021202 entryable : Valuation . new ,
12031203 amount : 2000 ,
1204- name : "Current Market Value" ,
1204+ name : Valuation . build_reconciliation_name ( @jewelry . accountable_type ) ,
12051205 currency : "USD" ,
12061206 date : 90 . days . ago . to_date
12071207 )
12081208
12091209 @personal_loc . entries . create! (
12101210 entryable : Valuation . new ,
12111211 amount : 800 ,
1212- name : "Owed" ,
1212+ name : Valuation . build_reconciliation_name ( @personal_loc . accountable_type ) ,
12131213 currency : "USD" ,
12141214 date : 120 . days . ago . to_date
12151215 )
0 commit comments