Table of Contents

Agreement Quantity Calculation / Criteria - Weekend

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

Note
  • Functionset checks on TMS-Order field: 55(Unloading To Date), change parameter to: 54(Unloading From Date) if required.
  • Functionset checks on weekday 6|7(Saterday and Sunday), change parameter if other days are required
{
  "FunctionSet": {
    "TableNo": 11172787,
    "DataType": "34047",
    "Entries": [
      {
        "EntryNo": "10000",
        "CodeunitID": "11172846",
        "FunctionCode": "COMPARE",
        "Description": "Determine if Loadiing To Date is in weekend",
        "Parameters": [
          {
            "ParameterName": "VALUE1",
            "DataType": "0",
            "ResultFunctionSetID": {
              "FunctionSet": {
                "TableNo": 11172786,
                "DataType": "34559",
                "Entries": [
                  {
                    "EntryNo": "20000",
                    "CodeunitID": "11172685",
                    "FunctionCode": "IS SURCHARGE DAY",
                    "Parameters": [
                      {
                        "ParameterName": "DATE",
                        "ResultFunctionSetID": {
                          "FunctionSet": {
                            "TableNo": 11172786,
                            "DataType": "11775",
                            "Entries": [
                              {
                                "EntryNo": "10000",
                                "CodeunitID": "11172846",
                                "FunctionCode": "GET",
                                "Description": "Get Unloading From Date",
                                "Parameters": [
                                  {
                                    "ParameterName": "TABLENO",
                                    "Value": "11172786"
                                  },
                                  {
                                    "ParameterName": "FIELDNO",
                                    "Value": "55"
                                  },
                                  {
                                    "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": "3"
                                  },
                                  {
                                    "ParameterName": "FILTER 3",
                                    "Value": "0"
                                  }
                                ]
                              }
                            ]
                          }
                        }
                      }
                    ]
                  }
                ]
              }
            }
          },
          {
            "ParameterName": "VALUE2",
            "Value": "6|7",
            "DataType": "31488"
          }
        ]
      }
    ]
  }
}