- added exception for #23;
This commit is contained in:
@@ -52,6 +52,7 @@ import { defaultMaxFileSize } from '../../configData';
|
||||
const REACT_APP_HUB_ID = process.env.REACT_APP_HUB_ID;
|
||||
|
||||
const BandoApplication = () => {
|
||||
const antiMoneyLaundryCalls = useStoreValue('antiMoneyLaundryCalls');
|
||||
const chosenCompanyId = useStoreValue('chosenCompanyId');
|
||||
const { id } = useParams();
|
||||
const [isExpired, setIsExpired] = useState(false);
|
||||
@@ -460,7 +461,7 @@ const BandoApplication = () => {
|
||||
type="button"
|
||||
disabled={'SUBMIT' === applicationStatus || isExpired}
|
||||
onClick={onValidate}
|
||||
label={__('Convalidare', 'gepafin')}
|
||||
label={__('Convalida per la firma', 'gepafin')}
|
||||
icon="pi pi-check"
|
||||
iconPos="right"/>
|
||||
</div>
|
||||
@@ -572,6 +573,7 @@ const BandoApplication = () => {
|
||||
formData.map((o) => {
|
||||
const variable = head(o.settings.filter(o => o.name === 'variable'));
|
||||
const formula = head(o.settings.filter(o => o.name === 'formula'));
|
||||
const isRequestedAmount = head(o.settings.filter(o => o.name === 'isRequestedAmount'));
|
||||
|
||||
if (formula && !isEmpty(formula.value)) {
|
||||
try {
|
||||
@@ -600,6 +602,10 @@ const BandoApplication = () => {
|
||||
? pathOr(0, [o.id, 'total'], updatedFormValues)
|
||||
: pathOr(0, [o.id], updatedFormValues);
|
||||
}
|
||||
|
||||
if (REACT_APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE' && antiMoneyLaundryCalls.includes(bandoId) && isRequestedAmount && isRequestedAmount.value) {
|
||||
updatedFormValues[o.id] = 100;
|
||||
}
|
||||
});
|
||||
|
||||
if (!isEmpty(updatedFormValues) && !equal(updatedFormValues, formValues)) {
|
||||
@@ -713,6 +719,7 @@ const BandoApplication = () => {
|
||||
{'DRAFT' === applicationStatus
|
||||
/*|| 'AWAITING' === applicationStatus*/
|
||||
? formData.map(o => {
|
||||
const isRequestedAmount = head(o.settings.filter(o => o.name === 'isRequestedAmount'));
|
||||
const label = head(o.settings.filter(o => o.name === 'label'));
|
||||
const text = head(o.settings.filter(o => o.name === 'text'));
|
||||
const placeholder = head(o.settings.filter(o => o.name === 'placeholder'));
|
||||
@@ -756,6 +763,7 @@ const BandoApplication = () => {
|
||||
/*if (o.name === 'fileselect') {
|
||||
console.log('options::', options)
|
||||
}*/
|
||||
const hideField = REACT_APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE' && antiMoneyLaundryCalls.includes(bandoId) && isRequestedAmount && isRequestedAmount.value
|
||||
|
||||
return ['paragraph'].includes(o.name) && text
|
||||
? <div key={o.id}>
|
||||
@@ -765,6 +773,7 @@ const BandoApplication = () => {
|
||||
</div>
|
||||
: <FormField
|
||||
key={o.id}
|
||||
additionalClass={hideField ? 'hidden' : ''}
|
||||
disabled={isExpired}
|
||||
readOnly={formula && !isEmpty(formula.value)}
|
||||
type={o.name}
|
||||
|
||||
Reference in New Issue
Block a user