diff --git a/app/controllers/salaries_controller.rb b/app/controllers/salaries_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/salaries_controller.rb
+++ b/app/controllers/salaries_controller.rb
@@ -30,10 +30,10 @@ class SalariesController < InvoicesController
 
     # Line Items
     line_item = @salary.line_items.build(
-      :times         => 1,
-      :quantity      => 'x'
+      :times            => 1,
+      :quantity         => 'x',
+      :booking_template => BookingTemplate.find_by_code('salary:employee:ahv_iv_eo')
     )
-    line_item.assign_booking_template = BookingTemplate.find_by_code('salary:employee:ahv_iv_eo')
 
     # Prebuild an empty attachment instance
     @salary.attachments.build
Specify :booking_template when building line item instead of using assign_booking_template in salaries#new.