{
    "rest": true,
    "allowMapping": true,
    "type": "salesorder",
    "id": "salesorder",
    "criteria": "transaction",
    "select": "",
    "where": "WHERE type = 'SalesOrd' AND voided = 'F'",
    "inner": "",
    "ignore": [
        "class", "department"
    ],
    "mapping": {
        "title": "tranId",
        "billingaddress": "billingAddress",
        "class": "class",
        "department": "department",
        "duedate": "dueDate",
        "entity": "entity",
        "email": "email",
        "estgrossprofit": "estGrossProfit",
        "estgrossprofitpercent": "estGrossProfitPercent",
        "exchangerate": "exchangeRate",
        "memo": "memo",
        "terms": "terms",
        "tobeprinted": "toBePrinted",
        "totalcostestimate": "totalCostEstimate",
        "trandate": "tranDate",
        "enddate": "endDate",
        "location": "location",
        "message": "message",
        "paymentoption": "paymentOption",
        "shipcomplete": "shipComplete",
        "shipdate": "shipDate",
        "shippingaddress": "shippingAddress",
        "source": "source",
        "startdate": "startDate",
        "subsidiary": "subsidiary",
        "total": "total",
        "visibletocustomer": "visibleToCustomer",
        "discountdate": "discountDate",
        "shipmethod": "shipMethod",
        "leadsource": "leadSource"
    },
    "dependencies": {
        "salesorderline": {
            "name": "Transaction Lines",
            "model": "TransactionLine",
            "path": "/src/Domain/TransactionLines/Data/criteria.json",
            "where": "WHERE transaction.type = 'SalesOrd'"
        },
        "classification": {
            "name": "Classification",
            "model": "Classification",
            "path": "/src/Domain/Classifications/Data/criteria.json"
        },
        "department": {
            "name": "Department",
            "model": "Department",
            "path": "/src/Domain/Departments/Data/criteria.json"
        }
    }
}
