Enhancement: allow specifying default currency for Monetary custom field (#7381)

This commit is contained in:
shamoon authored and GitHub committed 2024-08-05 17:02:03 -07:00
1 parent 0ee85aae21
commit 15554322dd
13 files changed
+168 -29

No files matched your search

@@ -28,6 +28,11 @@
}
</div>
}
@case (CustomFieldDataType.Monetary) {
<div class="my-3">
<pngx-input-text i18n-title title="Default Currency" hint="3-character currency code" i18n-hint formControlName="default_currency" placeholder="Use locale" i18n-placeholder autocomplete="off"></pngx-input-text>
</div>
}
}
</div>
</div>
@@ -90,6 +90,7 @@ export class CustomFieldEditDialogComponent
data_type: new FormControl(null),
extra_data: new FormGroup({
select_options: new FormArray([new FormControl(null)]),
default_currency: new FormControl(null),
}),
})
}