{
    "rest": true,
    "allowMapping": true,
    "type": "salesorder",
    "id": "salesorder",
    "criteria": "transaction",
    "select": "",
    "where": "WHERE type = 'SalesOrd' AND voided = 'F'",
    "inner": "",
    "mapping": {
        "transactionnumber": "tranId",
        "billingaddress": "billingAddress",
        "duedate": "dueDate",
        "email": "email",
        "estgrossprofit": "estGrossProfit",
        "estgrossprofitpercent": "estGrossProfitPercent",
        "exchangerate": "exchangeRate",
        "memo": "memo",
        "opportunity": "opportunity",
        "terms": "terms",
        "tobeprinted": "toBePrinted",
        "totalcostestimate": "totalCostEstimate",
        "trandate": "tranDate",
        "discountamount": "discountAmount",
        "discountdate": "discountDate",
        "discountitem": "discountItem",
        "discountrate": "discountRate",
        "discounttotal": "discountTotal",
        "enddate": "endDate",
        "estimate": "estimate",
        "job": "job",
        "location": "location",
        "message": "message",
        "nextbill": "nextBill",
        "orderstatus": "orderStatus",
        "paymentoption": "paymentOption",
        "prevdate": "prevDate",
        "promocode": "promoCode",
        "saleseffectivedate": "salesEffectiveDate",
        "salesrep": "salesRep",
        "salesteam": "salesTeam",
        "shipcomplete": "shipComplete",
        "shipdate": "shipDate",
        "shipisresidential": "shipIsResidential",
        "shipmethod": "shipMethod",
        "shipoverride": "shipOverride",
        "shippingaddress": "shippingAddress",
        "shippingcost": "shippingCost",
        "shippingcostoverridden": "shippingCostOverridden",
        "source": "source",
        "sourcewebsite": "sourceWebSite",
        "startdate": "startDate",
        "subsidiary": "subsidiary",
        "subtotal": "subtotal",
        "tobeemailed": "toBeEmailed",
        "tobefaxed": "toBeFaxed",
        "total": "total",
        "website": "webSite"
    },
    "dependencies": {
        "serviceitem": {
            "name": "Service Items",
            "model": "ServiceItem",
            "path": "/src/Domain/ServiceItems/Data/criteria.json"
        },
        "salesorderline": {
            "name": "Transaction Lines",
            "model": "TransactionLine",
            "path": "/src/Domain/TransactionLines/Data/criteria.json",
            "where": "WHERE transaction.type = 'SalesOrd'"
        },
        "pricelevel": {
            "name": "Price Levels",
            "model": "PriceLevel",
            "path": "/src/Domain/PriceLevels/Data/criteria.json"
        },
        "pricegroup": {
            "name": "Pricing Group",
            "model": "PricingGroup",
            "path": "/src/Domain/PricingGroups/Data/criteria.json"
        }
    }
}
