Revision 711

Date:
2018/08/17 19:49:09
Author:
ahitrov
Revision Log:
Правильный статус транзакции

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/payments/comps/contenido/payments/components/block_transaction.msn

     
    1 1 <div style="border:1px solid gray; margin:10px 0; padding:5px; background:<% $bg_color %>;">
    2 <div style="width:200px; float:right;"><% $transaction->status ? 'Рабочая транзакция' : 'Тестовая транзакция' %> (<% $transaction->provider %>)</div>
    2 <div style="width:200px; float:right;"><% $transaction->status ? 'Тестовая транзакция' : 'Рабочая транзакция' %> (<% $transaction->provider %>)</div>
    3 3 <% $dt->dmy('.').' '.$dt->hms %><br>
    4 4 <h4><% $transaction->name %></h4>
    5 5 <p>Сумма в валюте транзакции: <b><% sprintf("%.2f", $transaction->sum ) %> <% $transaction->currency_code %></b></p>
     
    14 14 </%args>
    15 15 <%init>
    16 16
    17 my $bg_color = $transaction->status ? $transaction->success ? '#e8ffe8' : '#ffe8e8' : '#e8e8e8';
    17 my $bg_color = $transaction->status == 0 ? $transaction->success ? '#e8ffe8' : '#ffe8e8' : '#e8e8e8';
    18 18 my $dt = Contenido::DateTime->new( postgres => $transaction->mtime );
    19 19
    20 20 </%init>