Skip to content

Commit a75634c

Browse files
authored
Format monetary cap on show (#5409)
1 parent cd766fa commit a75634c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vendor/engines/c2po/app/views/c2po/facility_accounts/show/_additional_account_fields.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
= f.input :outside_contact_info
55
= f.input :ar_number
66
- if SettingsHelper.feature_on?(:purchase_order_monetary_cap)
7-
= f.input :monetary_cap, label: Account.human_attribute_name(:monetary_cap)
7+
= f.input :monetary_cap, input_html: { value: number_to_currency(@account.monetary_cap) }
88
- if SettingsHelper.feature_on?(:show_account_opencontract_field)
99
= f.input :open_contract

vendor/engines/c2po/app/views/facility_accounts/account_fields/_purchase_order_account.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
= f.input :description, required: true
77

88
- if SettingsHelper.feature_on?(:purchase_order_monetary_cap)
9-
= f.input :monetary_cap, label: Account.human_attribute_name(:monetary_cap),
9+
= f.input :monetary_cap,
1010
input_html: { step: 0.01 },
1111
hint: "Optional monetary cap for this purchase order account",
1212
hint_html: { class: "help-inline" }

0 commit comments

Comments
 (0)