yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/controller/admin/sale/ErpSaleOrderController.java
@@ -319,15 +319,15 @@
    /**
     * 填充订单项的金额字段
     *
     * DO 中 totalPrice 为产品金额(不含税),RespVO 需要补全:
     * - totalProductPrice:产品金额
     * - totalPrice:含税金额(产品金额 + 税额)
     * DO 中 totalPrice 为含税总价(单价 × 数量),RespVO 需要补全:
     * - totalProductPrice:不含税金额(含税总价 - 税额)
     * - totalPrice:含税总价(保持 DO 原值)
     */
    private void fillItemPrice(ErpSaleOrderRespVO.Item item) {
        BigDecimal productAmount = item.getTotalPrice() != null ? item.getTotalPrice() : BigDecimal.ZERO;
        BigDecimal totalPriceWithTax = item.getTotalPrice() != null ? item.getTotalPrice() : BigDecimal.ZERO;
        BigDecimal tax = item.getTaxPrice() != null ? item.getTaxPrice() : BigDecimal.ZERO;
        item.setTotalProductPrice(productAmount);
        item.setTotalPrice(productAmount.add(tax));
        item.setTotalProductPrice(totalPriceWithTax.subtract(tax));
        item.setTotalPrice(totalPriceWithTax);
    }
}