IO-1943 Enter again bill functionality bugfix.
This commit is contained in:
@@ -2063,6 +2063,32 @@
|
|||||||
</concept_node>
|
</concept_node>
|
||||||
</children>
|
</children>
|
||||||
</folder_node>
|
</folder_node>
|
||||||
|
<folder_node>
|
||||||
|
<name>validation</name>
|
||||||
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>atleastone</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
</children>
|
||||||
|
</folder_node>
|
||||||
</children>
|
</children>
|
||||||
</folder_node>
|
</folder_node>
|
||||||
<folder_node>
|
<folder_node>
|
||||||
|
|||||||
@@ -552,7 +552,20 @@ export function BillEnterModalLinesComponent({
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Form.List name="billlines">
|
<Form.List
|
||||||
|
name="billlines"
|
||||||
|
rules={[
|
||||||
|
{
|
||||||
|
validator: async (_, billlines) => {
|
||||||
|
if (!billlines || billlines.length < 1) {
|
||||||
|
return Promise.reject(
|
||||||
|
new Error(t("billlines.validation.atleastone"))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -136,6 +136,9 @@
|
|||||||
"other": "-- Not On Estimate --",
|
"other": "-- Not On Estimate --",
|
||||||
"reconciled": "Reconciled!",
|
"reconciled": "Reconciled!",
|
||||||
"unreconciled": "Unreconciled"
|
"unreconciled": "Unreconciled"
|
||||||
|
},
|
||||||
|
"validation": {
|
||||||
|
"atleastone": "At least one bill line must be entered."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bills": {
|
"bills": {
|
||||||
|
|||||||
@@ -136,6 +136,9 @@
|
|||||||
"other": "",
|
"other": "",
|
||||||
"reconciled": "",
|
"reconciled": "",
|
||||||
"unreconciled": ""
|
"unreconciled": ""
|
||||||
|
},
|
||||||
|
"validation": {
|
||||||
|
"atleastone": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bills": {
|
"bills": {
|
||||||
|
|||||||
@@ -136,6 +136,9 @@
|
|||||||
"other": "",
|
"other": "",
|
||||||
"reconciled": "",
|
"reconciled": "",
|
||||||
"unreconciled": ""
|
"unreconciled": ""
|
||||||
|
},
|
||||||
|
"validation": {
|
||||||
|
"atleastone": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bills": {
|
"bills": {
|
||||||
|
|||||||
Reference in New Issue
Block a user