View | Details | Raw Unified | Return to bug 31713
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_31713.pl (-4 / +11 lines)
Lines 82-89 return { Link Here
82
      [% PROCESS account_type_description account=credit %]
82
      [% PROCESS account_type_description account=credit %]
83
      [%- IF credit.description %], [% credit.description | html %][% END %]
83
      [%- IF credit.description %], [% credit.description | html %][% END %]
84
    </td>
84
    </td>
85
    <td class='credit'>[% credit.amount | $Price %]</td>
85
    <td class='credit'>[% credit.amount *-1 | $Price %]</td>
86
    <td class='credit'>[% credit.amountoutstanding | $Price %]</td>
86
    <td class='credit'>[% credit.amountoutstanding *-1 | $Price %]</td>
87
  </tr>
87
  </tr>
88
  [% END %]
88
  [% END %]
89
  [% ELSE %]
89
  [% ELSE %]
Lines 94-101 return { Link Here
94
94
95
  <tfoot>
95
  <tfoot>
96
    <tr>
96
    <tr>
97
      <td colspan='3'>Total outstanding dues as of [% today | $KohaDates  %]: </td>
97
      <td colspan='3'>
98
      [% IF ( borrower.account.balance <= 0 ) %]<td class='credit'>[% ELSE %]<td class='debit'>[% END %][% borrower.account.balance | $Price %]</td>
98
        [% IF borrower.account.balance < 0 %]
99
          Total credit as of [% today | $KohaDates %]:
100
        [% ELSE %]
101
          Total outstanding dues as of [% today | $KohaDates %]:
102
        [% END %]
103
      </td>
104
      [% IF ( borrower.account.balance <= 0 ) %]<td class='credit'>[% borrower.account.balance * -1 | $Price %]</td>
105
      [% ELSE %]<td class='debit'>[% borrower.account.balance | $Price %]</td>[% END %]
99
    </tr>
106
    </tr>
100
  </tfoot>
107
  </tfoot>
101
</table>
108
</table>
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-7 / +11 lines)
Lines 1366-1373 tables: Link Here
1366
            - "      [% PROCESS account_type_description account=credit %]"
1366
            - "      [% PROCESS account_type_description account=credit %]"
1367
            - "      [%- IF credit.description %], [% credit.description | html %][% END %]"
1367
            - "      [%- IF credit.description %], [% credit.description | html %][% END %]"
1368
            - "    </td>"
1368
            - "    </td>"
1369
            - "    <td class='credit'>[% credit.amount | $Price %]</td>"
1369
            - "    <td class='credit'>[% credit.amount *-1 | $Price %]</td>"
1370
            - "    <td class='credit'>[% credit.amountoutstanding | $Price %]</td>"
1370
            - "    <td class='credit'>[% credit.amountoutstanding *-1 | $Price %]</td>"
1371
            - "  </tr>"
1371
            - "  </tr>"
1372
            - "  [% END %]"
1372
            - "  [% END %]"
1373
            - "  [% ELSE %]"
1373
            - "  [% ELSE %]"
Lines 1377-1386 tables: Link Here
1377
            - "  [% END %]"
1377
            - "  [% END %]"
1378
            - ""
1378
            - ""
1379
            - "  <tfoot>"
1379
            - "  <tfoot>"
1380
            - "    <tr>"
1380
            - "    <td colspan='3'>"
1381
            - "      <td colspan='3'>Total outstanding dues as of [% today | $KohaDates %]: </td>"
1381
            - "      [% IF borrower.account.balance < 0 %]"
1382
            - "      [% IF ( borrower.account.balance <= 0 ) %]<td class='credit'>[% ELSE %]<td class='debit'>[% END %][% borrower.account.balance | $Price %]</td>"
1382
            - "        Total credit as of [% today | $KohaDates %]:"
1383
            - "    </tr>"
1383
            - "      [% ELSE %]"
1384
            - "        Total outstanding dues as of [% today | $KohaDates %]:"
1385
            - "      [% END %]"
1386
            - "    </td>"
1387
            - "    [% IF ( borrower.account.balance <= 0 ) %]<td class='credit'>[% borrower.account.balance * -1 | $Price %]</td>"
1388
            - "    [% ELSE %]<td class='debit'>[% borrower.account.balance | $Price %]</td>[% END %]"
1384
            - "  </tfoot>"
1389
            - "  </tfoot>"
1385
            - "</table>"
1390
            - "</table>"
1386
1391
1387
- 

Return to bug 31713