{
  "apiVersion": 65,
  "label": "Quote Total Credit Amount Default",
  "description": "Materializes a blank Quote.Total_Credit_Amount__c as 0 before every Quote save. The source org relies on formula blank-as-zero semantics (formulaTreatBlanksAs=BlankAsZero) so a blank credit still yields a computed Average_Discount__c; this platform propagates NULL through formula arithmetic instead (upstream gap filed), which blanks Average_Discount__c and every discount-approval gate on any quote whose credit was never filled. Stamping 0 reproduces the source org's observable formula results without changing its data-entry contract (credit is rarely filled there either: 771 of 899 source quotes are blank). Before-save with a direct $Record assignment (the Std_OpportunityStageDerivedFields pattern) rather than after-save + recordUpdate: an after-save update inside the record.created chain is silently lost on this platform. Fires only when the field is null. Part of #3873. Retire this flow if the platform gains blank-as-zero formula semantics.",
  "processType": "AutoLaunchedFlow",
  "status": "Active",
  "start": {
    "locationX": 0,
    "locationY": 0,
    "connector": {
      "targetReference": "Credit_Is_Blank"
    },
    "object": "Quote",
    "recordTriggerType": "CreateAndUpdate",
    "triggerType": "RecordBeforeSave"
  },
  "decisions": [
    {
      "name": "Credit_Is_Blank",
      "label": "Credit Is Blank",
      "locationX": 0,
      "locationY": 0,
      "defaultConnectorLabel": "Already Set",
      "rules": [
        {
          "name": "Blank",
          "conditionLogic": "and",
          "conditions": [
            {
              "leftValueReference": "$Record.Total_Credit_Amount__c",
              "operator": "IsNull",
              "rightValue": {
                "booleanValue": true
              }
            }
          ],
          "connector": {
            "targetReference": "Assign_Zero_Credit"
          },
          "label": "Blank"
        }
      ]
    }
  ],
  "assignments": [
    {
      "name": "Assign_Zero_Credit",
      "label": "Assign Zero Credit",
      "locationX": 0,
      "locationY": 0,
      "assignmentItems": [
        {
          "assignToReference": "$Record.Total_Credit_Amount__c",
          "operator": "Assign",
          "value": {
            "numberValue": 0
          }
        }
      ]
    }
  ]
}
