{
    "rest": true,
    "allowMapping": true,
    "type": "estimate",
    "id": "estimate",
    "criteria": "transaction",
    "select": "transactionline.class",
    "where": "WHERE type = 'Estimate' AND voided = 'F'",
    "inner": "INNER JOIN transactionline ON( transactionline.TRANSACTION = TRANSACTION.id )",
    "ignore": [
        "class"
    ],
    "mapping": {
        "billingaddress": "billingAddress",
        "duedate": "dueDate",
        "email": "email",
        "employee": "employee",
        "entity": "entity",
        "entitystatus": "entityStatus",
        "estgrossprofit": "estGrossProfit",
        "estgrossprofitpercent": "estGrossProfitPercent",
        "exchangerate": "exchangeRate",
        "expectedclosedate": "expectedCloseDate",
        "leadsource": "leadSource",
        "memo": "memo",
        "opportunity": "opportunity",
        "probability": "probability",
        "recordtype": "recordtype",
        "class": "class",
        "status": "status",
        "terms": "terms",
        "title": "transactionNumber",
        "tobeprinted": "toBePrinted",
        "totalcostestimate": "totalCostEstimate",
        "trandate": "tranDate",
        "tranid": "tranId",
        "subsidiary": "subsidiary",
        "intercoadj": "intercoadj",
        "location": "location"
    },
    "dependencies": {
        "pricelevel": {
            "name": "Price Levels",
            "model": "PriceLevel",
            "path": "/src/Domain/PriceLevels/Data/criteria.json"
        },
        "noninventoryitem": {
            "name": "Non-Inventory Items",
            "model": "NonInventoryItem",
            "path": "/src/Domain/NonInventoryItems/Data/criteria.json"
        },
        "subtotalitem": {
            "name": "Subtotal Items",
            "model": "Subtotal",
            "path": "/src/Domain/Subtotals/Data/criteria.json"
        },
        "markupitem": {
            "name": "Mark Up Items",
            "model": "MarkUp",
            "path": "/src/Domain/MarkUps/Data/criteria.json"
        },
        "descriptionitem": {
            "name": "Description Items",
            "model": "DescriptionItem",
            "path": "/src/Domain/DescriptionItems/Data/criteria.json"
        },
        "othercharge": {
            "name": "OtherCharge Charge Items",
            "model": "Subtotal",
            "path": "/src/Domain/OtherCharges/Data/criteria.json"
        },
        "discountitem": {
            "name": "Discount Items",
            "model": "DiscountItem",
            "path": "/src/Domain/DiscountItems/Data/criteria.json"
        },
        "assemblyitem": {
            "name": "Assemblies",
            "model": "Assembly",
            "path": "/src/Domain/Assemblies/Data/criteria.json"
        },
        "serviceitem": {
            "name": "Service Items",
            "model": "ServiceItem",
            "path": "/src/Domain/ServiceItems/Data/criteria.json"
        },
        "inventoryitem": {
            "name": "Inventory Items",
            "model": "InventoryItem",
            "path": "/src/Domain/InventoryItems/Data/criteria.json"
        },
        "estimateline": {
            "name": "Transaction Lines",
            "model": "TransactionLine",
            "path": "/src/Domain/TransactionLines/Data/criteria.json",
            "where": "WHERE transaction.type = 'Estimate'"
        },
        "pricegroup": {
            "name": "Pricing Group",
            "model": "PricingGroup",
            "path": "/src/Domain/PricingGroups/Data/criteria.json"
        }
    }
}
