Skip to content

Commit d5bf33b

Browse files
authored
Merge pull request #356 from Segelzwerg/353-bug-ui-paid-should-not-be-available-if-invoice-is-not-final
FIX: paid checkbox behavior
2 parents 59749af + 8f2cd41 commit d5bf33b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

invoice/templates/invoice/invoice_form.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,17 @@
1717
disabled
1818
{% endif %}
1919
>
20-
{% bootstrap_form form layout="floating" %}
20+
{% bootstrap_form form layout="floating" exclude="paid" %}
21+
22+
</fieldset>
23+
{% if invoice.final %}
24+
{% bootstrap_field form.paid %}
25+
{% endif %}
26+
<fieldset
27+
{% if invoice.final %}
28+
disabled
29+
{% endif %}
30+
>
2131
<input type="button" class="btn btn-primary" id="invoice_submit"
2232
{% if invoice %}
2333
value="{% translate "Update Invoice" %}"

0 commit comments

Comments
 (0)