[
  {
    "apiName": "Order",
    "description": "Standard Salesforce Order object",
    "enableHierarchySharing": true,
    "fields": [
      {
        "apiName": "ACV_Amount_USD__c",
        "createable": false,
        "formula": "ACV_Amount__c / Exchange_Rate_to_Use__c",
        "label": "ACV Amount (USD)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "ACV_Amount__c",
        "createable": false,
        "formula": "if(ACV_Amount_do_not_use__c=99999999,0,if(ACV_Amount_do_not_use__c=0,if(Term__c >12, TCV_Amount__c / Term__c * 12 ,TCV_Amount__c ),ACV_Amount_do_not_use__c))",
        "label": "ACV Amount",
        "returnType": "currency",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "ACV_Amount_do_not_use__c",
        "default": "0",
        "label": "ACV Amount (do not use)",
        "type": "currency"
      },
      {
        "apiName": "ACV_USD_with_CD_Rate__c",
        "createable": false,
        "formula": "ACV_Amount__c / CD_Rate__c",
        "label": "ACV (USD with CD Rate)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "AccountId",
        "childRelationshipName": "Orders",
        "label": "Account",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account",
        "required": true,
        "type": "reference"
      },
      {
        "apiName": "Account_Country_Code__c",
        "createable": false,
        "formula": "text(Account.BillingCountryCode)",
        "label": "*Account Country Code",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Account_ID__c",
        "createable": false,
        "formula": "Account.Account_ID__c",
        "label": "Account ID",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Account_Name_for_email_template__c",
        "label": "Account Name for email template",
        "type": "email"
      },
      {
        "apiName": "Accumulate_revenue_to_Org__c",
        "label": "Accumulate revenue to Org",
        "type": "string"
      },
      {
        "apiName": "Accumulated_Credit_Amount__c",
        "createable": false,
        "label": "Accumulated Credit Amount",
        "type": "currency",
        "updateable": false
      },
      {
        "apiName": "Accumulated_Payable_Amount__c",
        "createable": false,
        "label": "Accumulated Payable Amount",
        "type": "currency",
        "updateable": false
      },
      {
        "apiName": "Accumulated_Revenue_Before_Adjust__c",
        "createable": false,
        "label": "Accumulated Revenue Before Adjust",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "ActivatedById",
        "createable": false,
        "label": "Activated By",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "ActivatedBy",
        "type": "reference",
        "updateable": false
      },
      {
        "apiName": "ActivatedDate",
        "createable": false,
        "label": "Activated Date",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "Applicable_Law__c",
        "label": "Applicable Law",
        "options": [
          {
            "label": "China",
            "value": "China"
          },
          {
            "label": "Japan",
            "value": "Japan"
          },
          {
            "label": "Singapore",
            "value": "Singapore"
          },
          {
            "label": "the United States",
            "value": "the United States"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "Approval_Status__c",
        "label": "Approval Status",
        "options": [
          {
            "label": "Approved",
            "value": "Approved"
          },
          {
            "label": "In Process",
            "value": "In Process"
          },
          {
            "label": "Pending",
            "value": "Pending"
          },
          {
            "label": "Rejected",
            "value": "Rejected"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "Archived_Order_Form__c",
        "createable": false,
        "formula": "if( ISBLANK(StandardUploadUrl__c ),\"\", HYPERLINK(  StandardUploadUrl__c  , Name  ))",
        "label": "Archived Order Form",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Archived__c",
        "default": "0",
        "label": "Archived",
        "type": "string"
      },
      {
        "apiName": "AutoNumberText__c",
        "label": "AutoNumberText",
        "type": "string"
      },
      {
        "apiName": "AutoNumber__c",
        "label": "AutoNumber",
        "type": "double"
      },
      {
        "apiName": "Average_Discount__c",
        "createable": false,
        "formula": "IF(ISBLANK(QuoteId)=TRUE,0,IF(Quote.Average_Discount__c>0,Quote.Average_Discount__c,Quote.Discount__c))",
        "label": "Average Discount",
        "returnType": "percent",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "BillToContactId",
        "label": "Bill To Contact",
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "BillToContact",
        "type": "reference"
      },
      {
        "apiName": "CD_Rate__c",
        "createable": false,
        "formula": "CASE(TEXT(CurrencyIsoCode),\"USD\", 1, \"JPY\", 142,\"SGD\", 1.25,7)",
        "label": "CD Rate",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Cash_Collected_Amount_USD__c",
        "createable": false,
        "label": "Cash Collected - Amount (USD)",
        "type": "currency",
        "updateable": false
      },
      {
        "apiName": "Cash_Collected_Amount__c",
        "createable": false,
        "label": "Cash Collected - Amount",
        "type": "currency",
        "updateable": false
      },
      {
        "apiName": "Cash_Collected_USD__c",
        "createable": false,
        "formula": "Cash_Collected__c / Exchange_Rate_to_Use__c",
        "label": "Cash Collected (USD)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Cash_Collected_USD_exc_tax__c",
        "createable": false,
        "label": "Cash Collected USD (exc.tax)",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Cash_Collected__c",
        "createable": false,
        "formula": "IF (TEXT(CurrencyIsoCode) = \"USD\", Cash_Collected_Amount_USD__c, Cash_Collected_Amount__c)",
        "label": "Cash Collected",
        "returnType": "currency",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Cash_Collected_exc_tax_Amount__c",
        "createable": false,
        "label": "Cash Collected (exc.tax) - Amount",
        "type": "currency",
        "updateable": false
      },
      {
        "apiName": "Cash_Uncollected_USD__c",
        "createable": false,
        "formula": "Cash_Uncollected__c / Exchange_Rate_to_Use__c",
        "label": "Cash Uncollected (USD)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Cash_Uncollected__c",
        "createable": false,
        "formula": "IF(TEXT(CurrencyIsoCode)=\"USD\",(Net_Fees__c - Cash_Collected_USD_exc_tax__c)*(1+Tax__c), (Net_Fees__c - Cash_Collected_exc_tax_Amount__c)*(1+Tax__c))",
        "label": "Cash Uncollected",
        "returnType": "currency",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Closed_Days_In_61__c",
        "createable": false,
        "formula": "IF(TODAY()-Order_End_Date__c<61,TRUE,FALSE)",
        "label": "Closed Days In 61",
        "returnType": "boolean",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Closed_Days_Out_61__c",
        "createable": false,
        "formula": "IF(TODAY()-Order_End_Date__c>61,TRUE,FALSE)",
        "label": "Closed Days Out 61",
        "returnType": "boolean",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Closed_Days__c",
        "createable": false,
        "formula": "Order_End_Date__c - EffectiveDate",
        "label": "Closed Days",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Cloud_Order_Type__c",
        "createable": false,
        "formula": "IF(TEXT(Product_Family__c)=\"TiDB Cloud\",  IF(OR(Term__c <=1.5,TEXT(Term__c)=\"\"), \"On Demand\", \"Commitment Plan\") , \"n/a\")",
        "label": "Cloud Order Type",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Cloud_Registration_Source__c",
        "label": "Cloud Registration Source",
        "type": "string"
      },
      {
        "apiName": "CompanyAuthorizedById",
        "label": "Company Authorized By",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "CompanyAuthorizedBy",
        "type": "reference"
      },
      {
        "apiName": "Contain_Earlier_Termination_Clause__c",
        "default": "0",
        "label": "Contain Earlier Termination Clause",
        "type": "string"
      },
      {
        "apiName": "ContractId",
        "childRelationshipName": "Orders",
        "label": "Contract",
        "referenceTo": [
          "Contract"
        ],
        "relationshipName": "Contract",
        "type": "reference"
      },
      {
        "apiName": "Contract_Number__c",
        "createable": false,
        "formula": "HYPERLINK( ContractId ,  Contract.Name )",
        "label": "Contract Number",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Count_Product_Lines__c",
        "createable": false,
        "label": "Count Product Lines",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "CreatedById",
        "createable": false,
        "label": "Created By",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "CreatedBy",
        "type": "reference",
        "updateable": false
      },
      {
        "apiName": "CreatedDate",
        "createable": false,
        "label": "Created Date",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "CurrencyIsoCode",
        "default": "USD",
        "label": "Currency ISO Code",
        "options": [
          {
            "label": "Chinese Yuan",
            "value": "CNY"
          },
          {
            "label": "Japanese Yen",
            "value": "JPY"
          },
          {
            "label": "Singapore Dollar",
            "value": "SGD"
          },
          {
            "label": "U.S. Dollar",
            "value": "USD"
          }
        ],
        "required": true,
        "type": "picklist"
      },
      {
        "apiName": "Currency_for_Finance__c",
        "label": "Currency for Finance",
        "type": "currency"
      },
      {
        "apiName": "CustomerAuthorizedById",
        "label": "Customer Authorized By",
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "CustomerAuthorizedBy",
        "type": "reference"
      },
      {
        "apiName": "Deal_Registration__c",
        "createable": false,
        "formula": "TEXT( Opportunity.Deal_Registration__c )",
        "label": "Deal Registration",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Deferred_Revenue_USD__c",
        "createable": false,
        "formula": "Deferred_Revenue__c / Exchange_Rate_to_Use__c",
        "label": "Deferred Revenue (USD)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Deferred_Revenue__c",
        "createable": false,
        "formula": "Net_Fees__c - Recognized_Revenue__c",
        "label": "Deferred Revenue",
        "returnType": "currency",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "EffectiveDate",
        "label": "Effective Date",
        "required": true,
        "type": "date"
      },
      {
        "apiName": "Email__c",
        "label": "Bill to Email",
        "type": "email"
      },
      {
        "apiName": "EndDate",
        "label": "End Date",
        "type": "date"
      },
      {
        "apiName": "Exchange_Rate__c",
        "createable": false,
        "formula": "Opportunity.Rate__c",
        "label": "Exchange Rate",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Exchange_Rate_from_RevRec__c",
        "label": "Exchange Rate from RevRec",
        "type": "double"
      },
      {
        "apiName": "Exchange_Rate_to_Use__c",
        "createable": false,
        "formula": "IF (Exchange_Rate_from_RevRec__c>0,Exchange_Rate_from_RevRec__c,Exchange_Rate__c)",
        "label": "Exchange Rate to Use",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Fiscal_Period__c",
        "createable": false,
        "formula": "IF(Opportunity.Fiscal_Period__c =\"FYQ\", \"FY\"&RIGHT(text(YEAR( ADDMONTHS(EffectiveDate,9))), 2) & \"Q\"& text(CEILING(MONTH(ADDMONTHS(EffectiveDate,9) )/3)), Opportunity.Fiscal_Period__c)",
        "label": "Fiscal Period",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Gross_Margin__c",
        "createable": false,
        "formula": "IF( Recognized_Revenue_Amount__c >0,( Recognized_Revenue_Amount__c  - Monthly_Cost__c ) /  Recognized_Revenue_Amount__c ,null)",
        "label": "Gross Margin",
        "returnType": "percent",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Id",
        "createable": false,
        "label": "ID",
        "required": true,
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "IsDeleted",
        "createable": false,
        "label": "Deleted",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Is_Nonstandard_Order__c",
        "createable": false,
        "formula": "IF (Quote.Contains_Other_Nonstd_Terms__c = True,True, False)",
        "label": "Is Nonstandard Order",
        "returnType": "boolean",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Is_Stripe__c",
        "default": "0",
        "label": "Is Stripe",
        "type": "string"
      },
      {
        "apiName": "LastModifiedById",
        "createable": false,
        "label": "Last Modified By",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "LastModifiedBy",
        "type": "reference",
        "updateable": false
      },
      {
        "apiName": "LastModifiedDate",
        "createable": false,
        "label": "Last Modified Date",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "Latest_Payable_Date__c",
        "createable": false,
        "label": "Latest Payable Date",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Monthly_Cost__c",
        "label": "Monthly Cost",
        "type": "string"
      },
      {
        "apiName": "Name",
        "isNameField": true,
        "label": "Name",
        "type": "string"
      },
      {
        "apiName": "Net_Fees_USD__c",
        "createable": false,
        "formula": "Net_Fees__c / Exchange_Rate_to_Use__c",
        "label": "Net Fees (USD)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Net_Fees__c",
        "createable": false,
        "label": "Net Fees",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "NonStandardUploadUrl__c",
        "label": "NonStandardUploadUrl",
        "type": "url"
      },
      {
        "apiName": "Non_Standard_Type__c",
        "label": "Non-Std. OF. Type",
        "options": [
          {
            "label": "Customer Template",
            "value": "Customer Template"
          },
          {
            "label": "PingCAP Amendment",
            "value": "PingCAP Amendment"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "OP_Paid_via_Marketplace__c",
        "default": "0",
        "label": "OP Paid via Marketplace",
        "type": "string"
      },
      {
        "apiName": "OpportunityId",
        "label": "Opportunity",
        "referenceTo": [
          "Opportunity"
        ],
        "relationshipName": "Opportunity",
        "type": "reference"
      },
      {
        "apiName": "OrderNumber",
        "createable": false,
        "label": "Order Number",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Order_End_Date__c",
        "label": "Order End Date",
        "type": "date"
      },
      {
        "apiName": "Order_Expiration_Alert__c",
        "default": "0",
        "label": "Order Expiration Alert",
        "type": "string"
      },
      {
        "apiName": "Order_ID_18_digitals__c",
        "createable": false,
        "formula": "CASESAFEID(Id)",
        "label": "Order ID (18 digitals)",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Order_Number__c",
        "createable": false,
        "formula": "OrderNumber",
        "label": "Order Number*",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Order_Record_Type__c",
        "createable": false,
        "formula": "RecordType.Name",
        "label": "Order Record Type",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Order_is_Terminated__c",
        "default": "0",
        "label": "Order is Terminated",
        "type": "string"
      },
      {
        "apiName": "Order_to_be_deleted__c",
        "default": "0",
        "label": "Order to be deleted",
        "type": "string"
      },
      {
        "apiName": "Org__c",
        "label": "Org",
        "referenceTo": [
          "Org__c"
        ],
        "relationshipName": "Orders",
        "type": "reference"
      },
      {
        "apiName": "OriginalOrderId",
        "label": "Original Order",
        "referenceTo": [
          "Order"
        ],
        "relationshipName": "OriginalOrder",
        "type": "reference"
      },
      {
        "apiName": "Overall_End_Date__c",
        "createable": false,
        "label": "Overall End Date",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Overall_Start_Date__c",
        "createable": false,
        "label": "Overall Start Date",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Owned_DM__c",
        "label": "DM Owner",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Orders_Owned_DM",
        "type": "reference"
      },
      {
        "apiName": "OwnerId",
        "label": "Owner",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Owner",
        "type": "reference"
      },
      {
        "apiName": "PLG_BD_Pool__c",
        "default": "0",
        "label": "PLG BD Pool",
        "type": "string"
      },
      {
        "apiName": "Partner_Margin__c",
        "createable": false,
        "formula": "Quote.Partner_Margin__c",
        "label": "Partner Margin",
        "returnType": "percent",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Partner_Name__c",
        "label": "Partner Name",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Orders_Partner_Name",
        "type": "reference"
      },
      {
        "apiName": "Payable_Amount_USD_exc_tax__c",
        "createable": false,
        "label": "Payable Amount USD (exc.tax)",
        "type": "currency",
        "updateable": false
      },
      {
        "apiName": "Payment_Term__c",
        "label": "Payment Term",
        "options": [
          {
            "label": "30",
            "value": "30"
          },
          {
            "label": "45",
            "value": "45"
          },
          {
            "label": "60",
            "value": "60"
          },
          {
            "label": "90",
            "value": "90"
          },
          {
            "label": "JP_ME-1-ME",
            "value": "JP_ME-1-ME"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "Payment_Type__c",
        "label": "Payment Frequency",
        "options": [
          {
            "label": "Annual in Advance",
            "value": "Annual in Advance"
          },
          {
            "label": "Annual in Arrears",
            "value": "Annual in Arrears"
          },
          {
            "label": "Installments",
            "value": "Installments"
          },
          {
            "label": "Monthly in Arrears",
            "value": "Monthly in Arrears"
          },
          {
            "label": "Pay in Full in Arrears",
            "value": "Pay in Full in Arrears"
          },
          {
            "label": "Pay in Full",
            "value": "Pay in Full"
          },
          {
            "label": "Quarterly in Advance",
            "value": "Quarterly in Advance"
          },
          {
            "label": "Semi-annual in Advance",
            "value": "Semi-annual in Advance"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "PingCAP_Contracting_Entity_EMEA_only__c",
        "createable": false,
        "formula": "TEXT(Opportunity.PingCAP_Contracting_Entity_EMEA_only__c)",
        "label": "PingCAP Contracting Entity (EMEA only)",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "PingCAP_Contracting_Entity__c",
        "createable": false,
        "formula": "IF(PingCAP_Contracting_Entity_EMEA_only__c=\"\",TEXT(Account.PingCAP_Contracting_Entity__c),PingCAP_Contracting_Entity_EMEA_only__c)",
        "label": "PingCAP Contracting Entity",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "PingCAP_RevRec_Entity__c",
        "label": "PingCAP RevRec Entity",
        "options": [
          {
            "label": "PingCAP (US), Inc.",
            "value": "PingCAP (US), Inc."
          },
          {
            "label": "PingCAP Kabushiki-Kaisha",
            "value": "PingCAP Kabushiki-Kaisha"
          },
          {
            "label": "PingCAP Pte. Ltd.",
            "value": "PingCAP Pte. Ltd."
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "Prepayment_or_Not__c",
        "createable": false,
        "formula": "IF (Recognized_Revenue_USD__c - Payable_Amount_USD_exc_tax__c > 0, \"Account receivables\",\"Prepayment\")",
        "label": "Prepayment or Not",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Pricebook2Id",
        "childRelationshipName": "Orders",
        "label": "Price Book",
        "referenceTo": [
          "Pricebook2"
        ],
        "relationshipName": "Pricebook2",
        "type": "reference"
      },
      {
        "apiName": "Product_Family__c",
        "label": "Product Family",
        "options": [
          {
            "label": "PingCAP Consulting Services",
            "value": "PingCAP Consulting Services"
          },
          {
            "label": "PingCAP Professional Services",
            "value": "PingCAP Professional Services"
          },
          {
            "label": "PingCAP Services",
            "value": "PingCAP Services"
          },
          {
            "label": "PingCAP Training & Exam Services",
            "value": "PingCAP Training & Exam Services"
          },
          {
            "label": "TiDB Cloud",
            "value": "TiDB Cloud"
          },
          {
            "label": "TiDB Enterprise Subscription",
            "value": "TiDB Enterprise Subscription"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "QuoteId",
        "label": "Quote",
        "referenceTo": [
          "Quote"
        ],
        "relationshipName": "Quote",
        "type": "reference"
      },
      {
        "apiName": "Real_Booking_Date__c",
        "createable": false,
        "formula": "IF(LEN(TEXT(Write_Off_Date__c))>1,Write_Off_Date__c, IF(AND(TEXT(Product_Family__c) =\"TiDB Cloud\",Term__c < 1.5), EffectiveDate, Opportunity.CloseDate))",
        "label": "Real Booking Date",
        "returnType": "date",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Reason__c",
        "label": "Reason",
        "options": [
          {
            "label": "Cancel & Replace of Commitment Plan.",
            "value": "Cancel & Replace of Commitment Plan."
          },
          {
            "label": "Commitment Plan switches to marketplace.",
            "value": "Commitment Plan switches to marketplace."
          },
          {
            "label": "To terminate the original order.",
            "value": "To terminate the original order."
          },
          {
            "label": "To write off all or part of the Total Fees of an existing Order.",
            "value": "To write off all or part of the Total Fees of an existing Order."
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "Rebate_Fee_Rate__c",
        "createable": false,
        "formula": "Quote.Rebate_Fee_Rate__c",
        "label": "Rebate Fee Rate",
        "returnType": "percent",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Recognized_Revenue_Amount_USD__c",
        "createable": false,
        "label": "Recognized Revenue - Amount (USD)",
        "type": "currency",
        "updateable": false
      },
      {
        "apiName": "Recognized_Revenue_Amount__c",
        "createable": false,
        "label": "Recognized Revenue - Amount",
        "type": "currency",
        "updateable": false
      },
      {
        "apiName": "Recognized_Revenue_USD__c",
        "createable": false,
        "formula": "Recognized_Revenue__c / Exchange_Rate_to_Use__c",
        "label": "Recognized Revenue (USD)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Recognized_Revenue__c",
        "createable": false,
        "formula": "IF (TEXT(CurrencyIsoCode) = \"USD\", Recognized_Revenue_Amount_USD__c, Recognized_Revenue_Amount__c)",
        "label": "Recognized Revenue",
        "returnType": "currency",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "RecordTypeId",
        "label": "Record Type",
        "referenceTo": [
          "RecordType"
        ],
        "relationshipName": "RecordType",
        "type": "reference"
      },
      {
        "apiName": "Referral_Fee_Rate__c",
        "createable": false,
        "formula": "Quote.Referral_Fee_Rate__c",
        "label": "Referral Fee Rate",
        "returnType": "percent",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Region__c",
        "createable": false,
        "formula": "TEXT (Account.Region__c)",
        "label": "Region",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Related_Original_Order__c",
        "label": "Related Original Order",
        "referenceTo": [
          "Order"
        ],
        "relationshipName": "Orders_Related_Original_Order",
        "type": "reference"
      },
      {
        "apiName": "SPIFF_Justification__c",
        "label": "SPIFF Justification",
        "type": "string"
      },
      {
        "apiName": "SPIFF_Program__c",
        "label": "SPIFF Program",
        "type": "string"
      },
      {
        "apiName": "Sales_Channel_Type__c",
        "createable": false,
        "formula": "IF(TEXT(Opportunity.Sales_Channel_Type__c)=\"\",IF(Partner_Name__c =\"\",\"Direct\",\"Indirect\"),TEXT(Opportunity.Sales_Channel_Type__c))",
        "label": "Sales Channel Type",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "ShipToContactId",
        "label": "Ship To Contact",
        "type": "string"
      },
      {
        "apiName": "StandardUploadUrl__c",
        "label": "StandardUploadUrl",
        "type": "url"
      },
      {
        "apiName": "Status",
        "default": "Draft",
        "label": "Status",
        "options": [
          {
            "label": "Activated",
            "value": "Activated"
          },
          {
            "label": "Approved",
            "value": "Approved"
          },
          {
            "label": "Draft",
            "value": "Draft"
          }
        ],
        "required": true,
        "type": "picklist"
      },
      {
        "apiName": "StatusCode",
        "createable": false,
        "default": "Draft",
        "label": "Status Category",
        "options": [
          {
            "label": "Activated",
            "value": "Activated"
          },
          {
            "label": "Draft",
            "value": "Draft"
          }
        ],
        "type": "picklist",
        "updateable": false
      },
      {
        "apiName": "Stripe_Bill_ID__c",
        "label": "Stripe Bill ID",
        "type": "string"
      },
      {
        "apiName": "SystemModstamp",
        "createable": false,
        "label": "System Modstamp",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "TCV_Amount_USD__c",
        "createable": false,
        "formula": "TCV_Amount__c / Exchange_Rate_to_Use__c",
        "label": "TCV Amount (USD)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "TCV_Amount__c",
        "createable": false,
        "formula": "Net_Fees__c",
        "label": "TCV Amount",
        "returnType": "currency",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Tax__c",
        "label": "Tax",
        "type": "string"
      },
      {
        "apiName": "Term__c",
        "createable": false,
        "formula": "IF(OR(ISBLANK(Overall_End_Date__c)=TRUE,ISBLANK(Overall_Start_Date__c)=TRUE),ROUND((Order_End_Date__c - EffectiveDate + 1) / 30.4375, 1),ROUND((Overall_End_Date__c - Overall_Start_Date__c + 1) / 30.4375, 1))",
        "label": "Term (months)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Termination_Date__c",
        "label": "Termination Date",
        "type": "date"
      },
      {
        "apiName": "TotalAmount",
        "label": "Total Amount",
        "type": "currency"
      },
      {
        "apiName": "Total_Fees_New__c",
        "label": "Total Fees New",
        "type": "string"
      },
      {
        "apiName": "Total_Fees_USD__c",
        "createable": false,
        "formula": "Total_Fees__c / Exchange_Rate_to_Use__c",
        "label": "Total Fees (USD)",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Total_Fees__c",
        "createable": false,
        "formula": "Net_Fees__c *(1+ Tax__c )",
        "label": "Total Fees",
        "returnType": "currency",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Total_List_Price__c",
        "createable": false,
        "label": "Total List Price",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Type",
        "label": "Type",
        "options": [
          {
            "label": "Expansion",
            "value": "Expansion"
          },
          {
            "label": "New",
            "value": "New"
          },
          {
            "label": "Renewal",
            "value": "Renewal"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "ValidDays__c",
        "createable": false,
        "formula": "TODAY() - Order_End_Date__c",
        "label": "ValidDays",
        "returnType": "double",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Version_of_TiDB__c",
        "createable": false,
        "formula": "Quote.Version_of_TiDB__c",
        "label": "Version of TiDB",
        "returnType": "string",
        "type": "formula",
        "updateable": false
      },
      {
        "apiName": "Write_Off_Date__c",
        "label": "Write Off Date",
        "type": "date"
      },
      {
        "apiName": "X30_Alert_Arranged_Date__c",
        "label": "30 Alert Arranged Date",
        "type": "date"
      },
      {
        "apiName": "X60_Alert_Arranged_Date__c",
        "label": "60 Alert Arranged Date",
        "type": "date"
      },
      {
        "apiName": "X90_Alert_Arranged_Date__c",
        "label": "90 Alert Arranged Date",
        "type": "date"
      },
      {
        "apiName": "vCPU__c",
        "label": "vCPU#",
        "type": "double"
      }
    ],
    "keyPrefix": "801",
    "label": "Order",
    "pluralLabel": "Orders",
    "sharingModel": "ControlledByParent",
    "tableType": "standard_object"
  }
]
