AI整理优惠规则:满减与折扣先后顺序可重算

真实原生产物回读预览 · 原创合成材料 · 不代表第三方软件界面

{
  "rules": {
    "discount": "0.8",
    "threshold": "100.00",
    "reduction": "10.00",
    "sequence": [
      "discount",
      "threshold_reduction"
    ],
    "stack_other_coupon": false
  },
  "calculations": [
    {
      "original": "125.00",
      "discounted": "100.00",
      "reduction": "10.00",
      "payable": "90.00"
    },
    {
      "original": "124.99",
      "discounted": "99.99",
      "reduction": "0.00",
      "payable": "99.99"
    }
  ],
  "rounding_note": "本地约定折后先按人民币分四舍五入,再检查门槛。",
  "model_original": {
    "discount": "0.80",
    "threshold": "100.00",
    "reduction": "10.00",
    "sequence": [
      "discount",
      "reduction"
    ],
    "stack_other_coupon": false
  },
  "model_normalization": {
    "model_original": {
      "discount": "0.80",
      "threshold": "100.00",
      "reduction": "10.00",
      "sequence": [
        "discount",
        "reduction"
      ],
      "stack_other_coupon": false
    },
    "normalized_fields": {
      "discount": "0.8",
      "threshold": "100.00",
      "reduction": "10.00",
      "sequence": [
        "discount",
        "threshold_reduction"
      ],
      "stack_other_coupon": false
    },
    "rules": [
      {
        "field": "discount",
        "original": "0.80",
        "normalized": "0.8",
        "rule": "Decimal equality, not textual trailing-zero equality; amount remains source-bound."
      },
      {
        "field": "threshold",
        "original": "100.00",
        "normalized": "100.00",
        "rule": "Decimal equality, not textual trailing-zero equality; amount remains source-bound."
      },
      {
        "field": "reduction",
        "original": "10.00",
        "normalized": "10.00",
        "rule": "Decimal equality, not textual trailing-zero equality; amount remains source-bound."
      },
      {
        "field": "sequence",
        "original": [
          "discount",
          "reduction"
        ],
        "normalized": [
          "discount",
          "threshold_reduction"
        ],
        "rule": "Legacy reduction alias is accepted only with the correct explicit threshold and source order; reversed or missing actions are rejected."
      }
    ]
  }
}
模型结构化事实与原始材料一致通过
折后100.00命中满减通过
124.99先舍入后的金额为99.99不满减通过
错误先减后折得出不同结果通过