Created
September 26, 2023 05:14
-
-
Save highoncarbs/d0569aaf64bd5b365761b257ec2278c2 to your computer and use it in GitHub Desktop.
Multiple If Confitons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"operator": "and", | |
"rules": [ | |
{ | |
"operator": "and", | |
"rules": [ | |
{ | |
"operator": "and", | |
"rules": [ | |
{ | |
"first": { | |
"id": 8, | |
"component": "ESIC", | |
"type": "Deductions", | |
"aliasName": "", | |
"taxComputationGroup": "", | |
"itDeclarationComponent": "", | |
"noTaxExemption": "", | |
"itDeclarationAliasName": "", | |
"salaryCompDescription": "", | |
"itDeclarationCompDescription": "", | |
"yearType": "FY", | |
"isSelected": true, | |
"lastUpdatedBy": "System", | |
"lastUpdatedTime": "2023-09-11T17:27:26.26" | |
}, | |
"second": "10000", | |
"compare_operator": "=", | |
"second_value_type": "value" | |
} | |
], | |
"first": { | |
"id": 11, | |
"component": "Test Component", | |
"type": "Test type", | |
"aliasName": "Test", | |
"taxComputationGroup": "Text Tax", | |
"itDeclarationComponent": "Test Declartion", | |
"noTaxExemption": null, | |
"itDeclarationAliasName": null, | |
"salaryCompDescription": null, | |
"itDeclarationCompDescription": null, | |
"yearType": null, | |
"isSelected": true, | |
"lastUpdatedBy": "System", | |
"lastUpdatedTime": "2023-09-14T11:39:17.927" | |
}, | |
"second": { | |
"id": 11, | |
"component": "Test Component", | |
"type": "Test type", | |
"aliasName": "Test", | |
"taxComputationGroup": "Text Tax", | |
"itDeclarationComponent": "Test Declartion", | |
"noTaxExemption": null, | |
"itDeclarationAliasName": null, | |
"salaryCompDescription": null, | |
"itDeclarationCompDescription": null, | |
"yearType": null, | |
"isSelected": true, | |
"lastUpdatedBy": "System", | |
"lastUpdatedTime": "2023-09-14T11:39:17.927" | |
}, | |
"compare_operator": "=", | |
"second_value_type": "master" | |
}, | |
{ | |
"operator": "and", | |
"rules": [ | |
{ | |
"first": { | |
"id": 7, | |
"component": "Basic", | |
"type": "Income", | |
"aliasName": "", | |
"taxComputationGroup": "", | |
"itDeclarationComponent": "", | |
"noTaxExemption": "", | |
"itDeclarationAliasName": "", | |
"salaryCompDescription": "", | |
"itDeclarationCompDescription": "", | |
"yearType": "FY", | |
"isSelected": true, | |
"lastUpdatedBy": "System", | |
"lastUpdatedTime": "2023-09-11T17:26:58.377" | |
}, | |
"second": "4000", | |
"compare_operator": "+", | |
"second_value_type": "value" | |
}, | |
{ | |
"first": { | |
"id": 8, | |
"component": "ESIC", | |
"type": "Deductions", | |
"aliasName": "", | |
"taxComputationGroup": "", | |
"itDeclarationComponent": "", | |
"noTaxExemption": "", | |
"itDeclarationAliasName": "", | |
"salaryCompDescription": "", | |
"itDeclarationCompDescription": "", | |
"yearType": "FY", | |
"isSelected": true, | |
"lastUpdatedBy": "System", | |
"lastUpdatedTime": "2023-09-11T17:27:26.26" | |
}, | |
"second": "50000", | |
"compare_operator": "-", | |
"second_value_type": "value" | |
} | |
], | |
"first": { | |
"id": 1, | |
"component": "Special Allowance", | |
"type": "Balancing Items", | |
"aliasName": "Componentt", | |
"taxComputationGroup": "", | |
"itDeclarationComponent": "", | |
"noTaxExemption": "", | |
"itDeclarationAliasName": "", | |
"salaryCompDescription": "", | |
"itDeclarationCompDescription": "", | |
"yearType": "FY", | |
"isSelected": true, | |
"lastUpdatedBy": "DB167", | |
"lastUpdatedTime": "2023-09-11T16:30:52.127" | |
}, | |
"second": "10000", | |
"compare_operator": ">", | |
"second_value_type": "value" | |
} | |
], | |
"first": { | |
"id": 7, | |
"component": "Basic", | |
"type": "Income", | |
"aliasName": "", | |
"taxComputationGroup": "", | |
"itDeclarationComponent": "", | |
"noTaxExemption": "", | |
"itDeclarationAliasName": "", | |
"salaryCompDescription": "", | |
"itDeclarationCompDescription": "", | |
"yearType": "FY", | |
"isSelected": true, | |
"lastUpdatedBy": "System", | |
"lastUpdatedTime": "2023-09-11T17:26:58.377" | |
}, | |
"second": "0.4", | |
"compare_operator": "*", | |
"second_value_type": "value" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment