summaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/forms/902_5e.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_5e.ts')
-rw-r--r--packages/aml-backoffice-ui/src/forms/902_5e.ts86
1 files changed, 50 insertions, 36 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_5e.ts b/packages/aml-backoffice-ui/src/forms/902_5e.ts
index 3af03ed22..e66a4f94d 100644
--- a/packages/aml-backoffice-ui/src/forms/902_5e.ts
+++ b/packages/aml-backoffice-ui/src/forms/902_5e.ts
@@ -1,9 +1,23 @@
-import type { TranslatedString } from "@gnu-taler/taler-util";
-import type { FlexibleForm, FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser";
-import { BaseForm, uiForms } from "./declaration.js";
+/*
+ This file is part of GNU Taler
+ (C) 2022-2024 Taler Systems S.A.
+
+ GNU Taler is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+ */
+import type { FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser";
+import { BaseForm } from "../context/ui-forms.js";
import { resolutionSection } from "./simplest.js";
-export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): FlexibleForm<Form902_5.Form> => ({
+export const v1 = (i18n: InternationalizationAPI) => ({
design: [
{
title: i18n.str`Customer Profile`,
@@ -12,7 +26,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "text",
- props: {
+ properties: {
name: "customer",
label: i18n.str`Customer`,
help: i18n.str`Pursuant Identification Form (VQF doc. No. 902.1) numeral 1`,
@@ -25,7 +39,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "textArea",
- props: {
+ properties: {
label: i18n.str`Profession, business activities`,
name: "businessActivity",
help: i18n.str`former, current, potentially planned`,
@@ -38,7 +52,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "textArea",
- props: {
+ properties: {
label: i18n.str`Income and assets, liabilities`,
name: "financial",
help: i18n.str`estimated`,
@@ -51,7 +65,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "text",
- props: {
+ properties: {
label: i18n.str`Nature`,
name: "originOfAssets.nature",
help: i18n.str`nature of the involved assets`,
@@ -59,22 +73,22 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "selectOne",
- props: {
+ properties: {
name: "originOfAssets.currency",
label: i18n.str`Currency`,
- choices: uiForms.currencies(i18n),
+ choices: ["change me"],
},
},
{
type: "integer",
- props: {
+ properties: {
label: i18n.str`Amount`,
name: "originOfAssets.amount",
},
},
{
type: "choiceStacked",
- props: {
+ properties: {
label: i18n.str`Category`,
name: "originOfAssets.category",
choices: [
@@ -99,7 +113,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
label: i18n.str`Other category`,
name: "originOfAssets.categoryOther",
required: true,
@@ -107,7 +121,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "textArea",
- props: {
+ properties: {
label:
i18n.str`Detailed description of the origins/economical background of the assets involved in the business relationship`,
name: "originOfAssets.details",
@@ -121,7 +135,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "textArea",
- props: {
+ properties: {
label: i18n.str`Purpose of the business relationship`,
name: "nature.purpose",
help: i18n.str`nature of the involved assets`,
@@ -129,7 +143,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "textArea",
- props: {
+ properties: {
label:
i18n.str`Information on the planned development of the business relationship and the assets`,
name: "nature.plan",
@@ -137,7 +151,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "textArea",
- props: {
+ properties: {
label:
i18n.str`Especially in the case of cash or money and asset transfer transactions with regular customers: Details on usual business volume, Information on the beneficiaries, (Full name, address, bank account)`,
name: "nature.cashOrMoneyTransfer",
@@ -150,7 +164,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "textArea",
- props: {
+ properties: {
label:
i18n.str`Relation of the customer to the beneficial owner involved in the business relationship`,
name: "relations.beneficialOwners",
@@ -158,7 +172,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "textArea",
- props: {
+ properties: {
label:
i18n.str`Relation of the customer to the controlling persons involved in the business relationship`,
name: "relations.controllingPersons",
@@ -166,7 +180,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "textArea",
- props: {
+ properties: {
label:
i18n.str`Relation of the customer to the authorized signatories involved in the business relationship`,
name: "relations.authorizedSignatories",
@@ -174,7 +188,7 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "textArea",
- props: {
+ properties: {
label:
i18n.str`Relation of the customer to other persons involved in the business relationship`,
name: "relations.otherPersons",
@@ -182,14 +196,14 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "textArea",
- props: {
+ properties: {
label: i18n.str`Relation to other AMLA-Files`,
name: "relations.withOtherAmlaFiles",
},
},
{
type: "textArea",
- props: {
+ properties: {
label: i18n.str`Introducer / agents / references`,
name: "relations.references",
},
@@ -201,26 +215,26 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "textArea",
- props: {
+ properties: {
label: i18n.str`Other relevant information`,
name: "furtherInformation",
},
},
],
},
- resolutionSection(current, i18n),
+ resolutionSection(i18n),
],
- behavior: function formBehavior(
- v: Partial<Form902_5.Form>,
- ): FormState<Form902_5.Form> {
- return {
- originOfAssets: {
- categoryOther: {
- hidden: v.originOfAssets?.category !== "other",
- },
- },
- };
- },
+ // behavior: function formBehavior(
+ // v: Partial<Form902_5.Form>,
+ // ): FormState<Form902_5.Form> {
+ // return {
+ // originOfAssets: {
+ // categoryOther: {
+ // hidden: v.originOfAssets?.category !== "other",
+ // },
+ // },
+ // };
+ // },
});
namespace Form902_5 {