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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt (-9 / +8 lines)
Lines 116-126 Link Here
116
</tbody>
116
</tbody>
117
117
118
<tfoot>
118
<tfoot>
119
    <tr>
120
        <td class="total" colspan="10">Total due:</td>
121
        <td style="text-align: right;">[% total | $Price %]</td>
122
    </tr>
119
    [% IF outstanding_credits.total_outstanding < 0 %]
123
    [% IF outstanding_credits.total_outstanding < 0 %]
120
        <tr>
124
        <tr>
121
            <td class="total" colspan="10">Outstanding credits could be applied: </td>
125
            <td class="total" colspan="10">Outstanding credits could be applied: </td>
122
            <td class="credit" style="text-align: right;"><button type="submit" id="apply_credits" name="apply_credits" value="apply_credits" class="btn btn-default btn-sm">Apply <strong class="credit">[% outstanding_credits.total_outstanding | $Price %]</strong></button></td>
126
            <td class="credit" style="text-align: right;"><button type="submit" id="apply_credits" name="apply_credits" value="apply_credits" class="btn btn-default btn-sm">Apply <strong class="credit">[% outstanding_credits.total_outstanding | $Price %]</strong></button></td>
123
        </tr>
127
        </tr>
128
        <tr>
129
            <td class="total" colspan="10">Total due if credit applied:</td>
130
            <td style="text-align: right;">[% total + outstanding_credits.total_outstanding | $Price %]</td>
131
        </tr>
124
    [% END %]
132
    [% END %]
125
    [% IF ( account_grp.total ) %]
133
    [% IF ( account_grp.total ) %]
126
        <tr>
134
        <tr>
Lines 128-141 Link Here
128
            <td style="text-align: right;">[% account_grp.total | $Price %]</td>
136
            <td style="text-align: right;">[% account_grp.total | $Price %]</td>
129
        </tr>
137
        </tr>
130
    [% END %]
138
    [% END %]
131
    <tr>
132
        <td class="total" colspan="10">Total due:</td>
133
        [% IF outstanding_credits.total_outstanding < 0 %]
134
            <td style="text-align: right;">[% total + outstanding_credits.total_outstanding | $Price %]</td>
135
        [% ELSE %]
136
            <td style="text-align: right;">[% total | $Price %]</td>
137
        [% END %]
138
    </tr>
139
</tfoot>
139
</tfoot>
140
140
141
</table>
141
</table>
142
- 

Return to bug 23106