Revert "Temp fix for Stripe bug when there are negative bills"
authorChris Sharp <csharp@georgialibraries.org>
Tue, 26 Apr 2022 11:16:35 +0000 (07:16 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 26 Apr 2022 11:16:35 +0000 (07:16 -0400)
This reverts commit 1b9ab2c67e698f220cd038a25db20559ba1c2cba.

Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2

index ca9e3d8..451fc0c 100755 (executable)
             </thead>
             <tbody id='myopac_trans_tbody'>
                 [% c = 0; %]
-                               <!-- temp: --> [% neg = 0; %]
                 [% FOR f IN ctx.fines.grocery %]
                 <tr class ='myopac_trans_row'>
                 [% c = c + 1; %]
                         <span class="sr-only">Amount Owed</span>
                         <strong>
                             [% money(f.xact.balance_owed) %]
-                                                       <!-- temp: --> [% IF f.xact.balance_owed < 0; neg = neg + 1; END %]
                         </strong>
                          <input type="hidden" class="fineAmount" value="[% f.xact.balance_owed %]" hidden />
                     </td>
     <div>[% l('You have no current fines.') %]</div>
     [% ELSIF myopac_cc_allowed %]
    
-           <!-- temp: -->
-                       [% IF neg > 0 %]
-                               There are negative bills on your account that must be resolved before you are able to make
-                               a payment. Please contact your library for assistance.
-                       [% ELSE %]
-                               <div class="my-3">
-                                       <button type="submit" value="[% l('Pay selected charges') %] - [% money(ctx.user_stats.fines.balance_owed) %]" title="[% l('Pay selected charges') %]" class="btn btn-confirm my-1"
-                                               id="selectPay"> <i class='fas fa-money-bill-wave' aria-hidden="true"></i> [% l('Pay Selected Charges') %] - [% money(ctx.user_stats.fines.balance_owed) %]</button>
-                               <button type="submit" class="btn btn-confirm my-1"><i class="fas fa-cash-register" aria-hidden="true"></i> [% l('Pay All Charges') %] - [% money(ctx.user_stats.fines.balance_owed) %]</button>
-                               </div>
-                       [% END %]
+    <div class="my-3">
+        <button type="submit" value="[% l('Pay selected charges') %] - [% money(ctx.user_stats.fines.balance_owed) %]" title="[% l('Pay selected charges') %]" class="btn btn-confirm my-1"
+            id="selectPay"> <i class='fas fa-money-bill-wave' aria-hidden="true"></i> [% l('Pay Selected Charges') %] - [% money(ctx.user_stats.fines.balance_owed) %]</button>
+    <button type="submit" class="btn btn-confirm my-1"><i class="fas fa-cash-register" aria-hidden="true"></i> [% l('Pay All Charges') %] - [% money(ctx.user_stats.fines.balance_owed) %]</button>
+    </div>
     [% END %]
 [% IF myopac_cc_allowed %]
 </form>