Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/locale/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,6 @@
"paymentOnlyDigitalStamp": "Pagamento solo marca da bollo",
"from": "Da",
"to": "A",
"all": "Tutti",
"cart": "Gestione carrello di pagamenti",
"cartInfo": "La gestione del carrello è possibile soltanto per i canali configurati con le primitive in versione 2",
"onUs": "onUs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ const AddEditCommissionBundlePage = () => {
...body,
validityDateFrom: removeDateZoneInfo(body.validityDateFrom),
validityDateTo: removeDateZoneInfo(body.validityDateTo),
touchpoint: body.touchpoint !== 'ANY' ? body.touchpoint : undefined,
paymentType: body.paymentType !== 'ANY' ? body.paymentType : undefined,
touchpoint: body.touchpoint,
paymentType: body.paymentType,
transferCategoryList: isValidArray(body.transferCategoryList)
? body.transferCategoryList
: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ describe('<AddEditCommissionBundlePage />', () => {
...mockedCommissionBundlePspDetailGlobal,
abi: '',
pspBusinessName: '',
touchpoint: undefined,
paymentType: undefined,
touchpoint: 'ANY',
paymentType: 'ANY',
transferCategoryList: undefined,
};
delete requestBundle.idBundle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,12 @@ const AddEditCommissionBundleForm = ({ isEdit, formik, idBrokerPsp }: Props) =>
!(paymentOptions?.payment_types && paymentOptions.payment_types.length > 0)
}
>
<MenuItem key={`payment_types$all`} value={'ANY'}>
{t('commissionBundlesPage.addEditCommissionBundle.form.all')}
</MenuItem>
{paymentOptions?.payment_types &&
sortPaymentType(paymentOptions.payment_types)?.map((option: any) => (
<MenuItem key={option.payment_type} value={option.payment_type}>
{`${option.description} - ${option.payment_type}`}
{option.description
? `${option.description} - ${option.payment_type}`
: option.payment_type}
</MenuItem>
))}
</Select>
Expand All @@ -423,9 +422,7 @@ const AddEditCommissionBundleForm = ({ isEdit, formik, idBrokerPsp }: Props) =>
!(touchpointList?.touchpoints && touchpointList.touchpoints.length > 0)
}
>
<MenuItem key={`touchpoint$all`} value={'ANY'}>
{t('commissionBundlesPage.addEditCommissionBundle.form.all')}
</MenuItem>

{touchpointList?.touchpoints?.map((el) => (
<MenuItem key={`touchpoint${el.name}`} value={el.name}>
{el.name}
Expand Down
Loading