<% use Mojo::JSON qw/decode_json encode_json/; my $purchases = &subs::db_query('select * from appointments where type=? and app = ? order by timestamp', 'purchase', $a)->hashes; @{$purchases} = grep { $_->{'status'} eq 'delivered' } @{$purchases}; my $informations = $purchases; %> {$a}->{'setting'}->{'record_vendor'} eq 'on') { %>checked<% } %>>
{$a}->{'setting'}->{'record_manufacturer'} eq 'on') { %>checked<% } %>> <% if (scalar @{$appts->{$a}->{'model'}} == 0) { %> <% if ($appts->{$a}->{'models'} != undef) { %> <% } %> <% } else { %> <% } %> {$a}->{'setting'}->{'record_input'} eq 'on') { %>checked<% } %>>
<% if (scalar @{$appts->{$a}->{'model'}} == 0) { %> <% if ($appts->{$a}->{'models'} != undef) { %> <% } %> <% } else { %> <%= include 'apps/transaction/models', settings => &subs::settings_grabber({ app => $a }), models => &subs::db_select('model', undef, { app => $a})->hashes, l => $appts->{$a}->{'list'}->[0], source => 'transaction' %>
<% } %>