next_year => [ $period_start_date->clone->truncate(to => 'year')->add( years => 1), sub { $_[0]->year } ],
period_start_date => [ $period_start_date->clone->truncate(to => 'month'), sub { $::locale->format_date(\%::myconfig, $_[0]) } ],
- period_end_date => [ $period_end_date ->clone->truncate(to => 'month'), sub { $::locale->format_date(\%::myconfig, $_[0]) } ],
+ period_end_date => [ $period_end_date, sub { $::locale->format_date(\%::myconfig, $_[0]) } ],
};
return $vars;
$invoice->assign_attributes(deliverydate => $period_start_date,
intnotes => $intnotes,
+ employee => $order->employee, # new_from sets employee to import user
);
map { _replace_vars($invoice, $time_period_vars, $_) } qw(notes intnotes transaction_description);