Create LI notes using 'admin' as the creator for EDI invoices, since
there is no 'requestor' value in this context, but one is required.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
my ($e, $entry) = @_;
my $note = Fieldmapper::acq::lineitem_note->new;
$note->lineitem($entry->lineitem);
+ # $e->requestor is unset when using EDI
+ $e->requestor($e->search_actor_user({usrname => 'admin'})->[0])
+ unless $e->requestor;
$note->creator($e->requestor->id);
$note->editor($e->requestor->id);
$note->value('invoiced: ' . $e->requestor->usrname);