[
  {
    "apiName": "Quote_Product__c",
    "label": "Quote Product",
    "pluralLabel": "Quote Products",
    "tableType": "custom_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "lifecycleStatus": "retired",
    "supersededBy": "QuoteLineItem",
    "retiredOn": "2026-07-20",
    "description": "Emptied by the 2026-07-20 product-chain cleanup, and non-admin creates/updates are blocked by Legacy_Table_Retired_Guard (validation rules do not cover deletes; the table is empty). Do not add readers or writers.",
    "fields": [
      {
        "apiName": "Name",
        "label": "Name",
        "type": "string",
        "isNameField": true
      },
      {
        "apiName": "Autoapprove__c",
        "label": "Autoapprove",
        "type": "formula",
        "formula": "if(Discount__c > OpportunityProduct__r.Order_Product__r.Discount__c &&Discount__c>0 ,1,0)",
        "returnType": "double",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Description__c",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "Discount__c",
        "label": "Discount",
        "type": "percent"
      },
      {
        "apiName": "List_Price__c",
        "label": "Unit List Price",
        "type": "currency"
      },
      {
        "apiName": "NetFees__c",
        "label": "Net Fees",
        "type": "formula",
        "formula": "Net_fees__c",
        "returnType": "double",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Net_fees__c",
        "label": "Net fees",
        "type": "currency"
      },
      {
        "apiName": "OpportunityProduct__c",
        "label": "Opportunity Product",
        "type": "reference",
        "referenceTo": [
          "Opportunity_Product__c"
        ],
        "relationshipName": "OpportunityProduct__r",
        "childRelationshipName": "Quote_Products",
        "deleteConstraint": "SetNull"
      },
      {
        "apiName": "Product_Code__c",
        "label": "Product Code",
        "type": "string"
      },
      {
        "apiName": "Product_Name__c",
        "label": "Product Name",
        "type": "formula",
        "formula": "Product__r.Name",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Product__c",
        "label": "Product",
        "type": "reference",
        "referenceTo": [
          "Product2"
        ],
        "relationshipName": "Product__r",
        "childRelationshipName": "Quote_Products",
        "deleteConstraint": "SetNull"
      },
      {
        "apiName": "Quantity__c",
        "label": "Quantity",
        "type": "double"
      },
      {
        "apiName": "Quote__c",
        "label": "Quote",
        "type": "masterdetail",
        "referenceTo": [
          "Quote"
        ],
        "relationshipName": "Quote__r",
        "childRelationshipName": "Quote_Products"
      },
      {
        "apiName": "Recalculate__c",
        "label": "Recalculate",
        "type": "boolean",
        "default": "0"
      },
      {
        "apiName": "Service_End_Date__c",
        "label": "Service End Date",
        "type": "date"
      },
      {
        "apiName": "Service_Start_Date__c",
        "label": "Service Start Date",
        "type": "date"
      },
      {
        "apiName": "Term_Months__c",
        "label": "Term(Months)",
        "type": "double"
      },
      {
        "apiName": "Total_List_Price__c",
        "label": "Total List Price",
        "type": "formula",
        "formula": "IF( LEFT( Product_Code__c , 2)=\"ES\" , List_Price__c * Quantity__c * Term_Months__c, List_Price__c * Quantity__c)",
        "returnType": "double",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Unit_Net_Price__c",
        "label": "Unit Net Price",
        "type": "currency"
      }
    ],
    "keyPrefix": "a0P"
  }
]
