{
    "rest": true,
    "allowMapping": true,
    "type": "invoice",
    "id": "invoice",
    "criteria": "transaction",
    "select": "",
    "where": "WHERE type = 'CustInvc' 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",
        "leadsource": "leadSource",
        "memo": "memo",
        "opportunity": "opportunity",
        "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": {
        "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": "Charge Items",
            "model": "OtherCharge",
            "path": "/src/Domain/OtherCharges/Data/criteria.json"
        },
        "discountitem": {
            "name": "Discount Items",
            "model": "DiscountItem",
            "path": "/src/Domain/DiscountItems/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"
        },
        "inventoryitem": {
            "name": "Inventory Items",
            "model": "InventoryItem",
            "path": "/src/Domain/InventoryItems/Data/criteria.json"
        },
        "invoiceline": {
            "name": "Transaction Lines",
            "model": "TransactionLine",
            "path": "/src/Domain/TransactionLines/Data/criteria.json",
            "where": "WHERE transaction.type = 'CustInvc'"
        },
        "classification": {
            "name": "Classification",
            "model": "Classification",
            "path": "/src/Domain/Classifications/Data/criteria.json"
        },
        "department": {
            "name": "Department",
            "model": "Department",
            "path": "/src/Domain/Departments/Data/criteria.json"
        }
    }
}
