Table of Contents

Agreement Quantity Calculation / Criteria - Condition ADR

This page contains the JSON of the function-set applicable on the Agreement Quantity Calculation / Criteria - Condition ADR

Note

Functionality will require an Orderline of the type: Goods and No.: HAZARDOUS.


{
  "FunctionSet": {
    "TableNo": 11172786,
    "Entries": [
      {
        "EntryNo": "20000",
        "CodeunitID": "11172846",
        "FunctionCode": "IF VALUE",
        "Description": "Set condition ADR to True if Goods lines contain No.: HAZARDOUS",
        "Parameters": [
          {
            "ParameterName": "VALUE",
            "ResultFunctionSetID": {
              "FunctionSet": {
                "TableNo": 11172786,
                "DataType": "34559",
                "Entries": [
                  {
                    "EntryNo": "10000",
                    "CodeunitID": "11172846",
                    "FunctionCode": "COUNT",
                    "Description": "Count number of good lines where No. = HAZARDOUS",
                    "Parameters": [
                      {
                        "ParameterName": "TABLENO",
                        "Value": "11172787"
                      },
                      {
                        "ParameterName": "FIELD 1",
                        "Value": "1"
                      },
                      {
                        "ParameterName": "FILTER 1",
                        "Value": "2"
                      },
                      {
                        "ParameterName": "FIELD 2",
                        "Value": "2"
                      },
                      {
                        "ParameterName": "FILTER 2",
                        "ResultFunctionSetID": {
                          "FunctionSet": {
                            "TableNo": 11172786,
                            "DataType": "31488",
                            "Entries": [
                              {
                                "EntryNo": "10000",
                                "CodeunitID": "11172846",
                                "FunctionCode": "FIELD",
                                "Parameters": [
                                  {
                                    "ParameterName": "FIELDNO",
                                    "Value": "2"
                                  }
                                ]
                              }
                            ]
                          }
                        }
                      },
                      {
                        "ParameterName": "FIELD 3",
                        "Value": "10"
                      },
                      {
                        "ParameterName": "FILTER 3",
                        "Value": "1"
                      },
                      {
                        "ParameterName": "FIELD 4",
                        "Value": "11"
                      },
                      {
                        "ParameterName": "FILTER 4",
                        "Value": "HAZARDOUS"
                      },
                      {
                        "ParameterName": "FIELDNO",
                        "Value": "9"
                      },
                      {
                        "ParameterName": "READ ISOLATION",
                        "Value": "0"
                      }
                    ]
                  }
                ]
              }
            }
          },
          {
            "ParameterName": "FILTER",
            "Value": ">0"
          },
          {
            "ParameterName": "ON TRUE",
            "Value": "162",
            "ValueFunctionSet": {
              "FunctionSet": {
                "TableNo": 11172786,
                "Entries": [
                  {
                    "EntryNo": "10000",
                    "CodeunitID": "11172846",
                    "FunctionCode": "SET CONDITION",
                    "Parameters": [
                      {
                        "ParameterName": "CONDITIONCODE",
                        "Value": "ADR"
                      },
                      {
                        "ParameterName": "CONDITIONVALUE",
                        "Value": "1"
                      }
                    ]
                  }
                ]
              }
            }
          },
          {
            "ParameterName": "ON FALSE",
            "Value": "163",
            "ValueFunctionSet": {
              "FunctionSet": {
                "TableNo": 11172786,
                "Entries": [
                  {
                    "EntryNo": "10000",
                    "CodeunitID": "11172846",
                    "FunctionCode": "SET CONDITION",
                    "Parameters": [
                      {
                        "ParameterName": "CONDITIONCODE",
                        "Value": "ADR"
                      },
                      {
                        "ParameterName": "CONDITIONVALUE",
                        "Value": "0"
                      }
                    ]
                  }
                ]
              }
            }
          }
        ]
      }
    ]
  }
}