<% use Mojo::JSON qw/decode_json encode_json/; %> <% my $server_time = &subs::rightNow(); %>
<%= scalar @{$details} %> app<% unless (scalar @{$details} == 1) { %>s<% } %> <% if ($appts->{$a}->{'total_amount'}) { %> Amount: <%= $appts->{$a}->{'total_amount'} %>
<% } %> <% if ($appts->{$a}->{'total_quantity'}) { %> Quantity: <%= $appts->{$a}->{'total_quantity'} %>
<% } %> <% my ($db,$database,$sql) = &subs::database_grabber(); %> <% foreach my $l ( reverse @{$details} ) { %>
<% if ($l->{'stop_timestamp'}) { %> <% if ($l->{'pseudonym'}->{'icon'}) { %> <% } else { %> <% } %> <% if ($l->{'stop_timestamp'}) { %><% } %>
Type Edit TS DurStop <% } %> Warr OST
<%= $l->{'formatted_type'} %> <%= $l->{'formatted_duration'} %>
<% if ($device eq 'mobile' || grep { $_->{'device'} eq 'mobile' } @{$remote_machines} ) { %> <% } %> <% if ($device eq 'computer' || $device eq 'server' || grep { $_->{'device'} eq 'computer' || $_->{'device'} eq 'server' } @{$remote_machines} ) { %>
<% } %> <% if ($l->{'start_notes'} eq 'redacted' || $l->{'notes'} eq 'redacted' || $l->{'end_notes'} eq 'redacted') { %> <% } %> <% if ($l->{'type'} eq 'web') { %>
<% } elsif ($l->{'type'} eq 'msg') { %>
<%= $l->{'data'} %>
<% } %> <% if ($l->{'file'}) { %> <% foreach my $f (@{$l->{'files'}}) { %> <% unless ( -e $f->{'file'} || $l->{'type'} eq 'snapshot' ) { next; } %> <% if ($f->{'file_type'} eq 'snd' || $l->{'type'} eq 'audio') { %>
<%= $f->{'file'} %>
<% } elsif ($f->{'file_type'} eq 'img') { %> {'main_image'} eq $f->{'file'}) { %> main_image="yes" <% } else { %> main_image="no" <% } %> app="<%= $l->{'app'} %>" file="<%= $f->{'file'} %>" src="/images/make believe/explosion.png" style="<% if ($settings->{'main_image'} eq $f->{'file'}) { %>border-color:orange;border-width:6px;<% } %>" > <% if ($f->{'file'} !~ /;base64/gi) { %> <% } %> {'file'} =~ /;base64/gi) { %> src="<%= $l->{'file'} %>" type="snapshot" <% } else { %> file="<%= $f->{'file'} %>" src="file_open?app=<%= $l->{'app'} %>&file=<%= $f->{'file'} %>×tamp=<%= $l->{'server_time'} %>" <% } %> timestamp="<%= $l->{'server_time'} %>" style="height:90%;width:95%" app_uuid="<%= $l->{'uuid'} %>" file_uuid="<%= $f->{'uuid'} %>" id="<%= $l->{'uuid'} %>_<%= $f->{'uuid'} %>" /> <%= include 'apps/image_functions/' . $f->{'function'}, file => $f, appt => $l %> <% } elsif ($f->{'file_type'} eq 'vid') { %> <% } elsif ($f->{'file_type'} eq 'pdf') { %> <% my $embed_string = &subs::random_string_creator(25); %> <% } %>
<% if ($device eq 'mobile' && $l->{'data'} eq '') { %> <% } %> <% } %>
<% } %>
<% if ($l->{'src'}) { %><% } %> <% if ($l->{'manufacturer'}) { %><% } %> <% if ($l->{'quantity'}) { %><% } %> <% if ($l->{'distance'}) { %><% } %> <% if ($l->{'duties'}) { %> <% if (scalar @{$l->{'duties'}} > 0) { %> <% } %> <% } %> <% if ($l->{'measures'}) { %> <% if (scalar @{$l->{'measures'}} > 0) { %> <% } %> <% if ($l->{'src'}) { %><% } %> <% if ($l->{'manufacturer'}) { %><% } %> <% if ($l->{'quantity'}) { %><% } %> <% if ($l->{'distance'}) { %><% } %> <% if ($l->{'duties'}) { %> <% if (scalar @{$l->{'duties'}} > 0) { %> <% } %> <% } %> <% if ($l->{'measures'}) { %> <% if (scalar @{$l->{'measures'}} > 0) { %> <% } %> <% } %> <% if ($l->{'type'} eq 'record') { %> <% } %>
ProjSrcManPOSQuantityRec
<%= $l->{'formatted_project'} %><%= &subs::format_name($l->{'src'}->{'app'}) %><%= &subs::format_name($l->{'manufacturer'}) %><%= &subs::format_name($l->{'pos'}) %><%= $l->{'quantity'} %><%= $l->{'unit'} %><%= $l->{'total_distance'} %>km<%= &subs::format_name($l->{'data'}->{'recorder'}) %>
<% if ($l->{'measures'}) { %> <% } %> <% if ($l->{'duties'}) { %> <% } %> <% if ($l->{'distance'}) { %> <% } %> <%= include 'apps/transaction/models', settings => $settings, models => $models, l => $l, source => 'list' %> <%= include 'apps/transaction/options', settings => $settings, options => $options, l => $l, source => 'list' %> <% if ($l->{'type'} eq 'transaction' || $l->{'type'} eq 'purchase' ) { %> <%= include 'apps/app_transaction', app => $l %>
<% } elsif ($l->{'type'} eq 'invoice' || $l->{'type'} eq 'quote') { %> <%= include 'apps/information', app => $l %> <% } %>
<% } %>