Skip to content

Instantly share code, notes, and snippets.

@highoncarbs
Created September 26, 2023 05:14
Show Gist options
  • Save highoncarbs/d0569aaf64bd5b365761b257ec2278c2 to your computer and use it in GitHub Desktop.
Save highoncarbs/d0569aaf64bd5b365761b257ec2278c2 to your computer and use it in GitHub Desktop.
Multiple If Confitons
{
"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