Project

General

Profile

解析Bug #469

v4.0: Product - Price (Bug List)

Added by Zhongbao Ye 8 months ago. Updated 8 months ago.

Status:
已关闭
Priority:
普通
Assignee:
Target version:
IT: Easytryck (Sweden) - v4.0
Start date:
04/22/2025
Due date:
04/22/2025
% Done:

100%

Estimated time:
8.00 h

Description

Background
  1. Fully understand the price calculation rules and list the test bugs
Bug lists
  1. (Done):价格中的span 标签没有起始标签 <span>
    • 无需修改: 我json工具显示的问题,可以添加:htmlentities() 解决显示不全的问题。
  2. (Done):design_type的值的类型有多种,应该统一
    • 需要修改:niko已修复
  3. (Done):添加sub option 保存后,这里不显示 sub option name
    • 暂不修改:优先级低,SBX也有同样的问题,刷新一下即可。
  4. (Done):在 sub option(option_id = 88) 级别中,设置option value 的 start cost price,价格计算时没有统计该价格
    • 暂不修改:优先级低, SBX也一样。
      并且考虑到sub option的UI中并没有startcost,也许sub option就没有startcost,或是设计漏洞
  5. (Done):如果option value 设置了price,product 中的 sub option value 的 price输入框是否需要Disabled,待van决定。
    • 暂不修改:优先级低,sub option value的price继承了option value的price,在product中应该需要disabled输入框
  6. (Done):currency useRound 下,数量越多产生的差异越大,计算逻辑相同,他们产生差异的原因是什么?
    • 无需修改:取整规则不同,导致的结果不同
  7. (Done):Formula 情况下, 当前不可编辑product price
    • 需要修改:niko已修复
v4 coding standard:
  1. Git提交
    #xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
      
  2. 代码规范
    2.1: 结构:Public -> Protected -> Private
    2.2: 其他代码规范同SBX
      
  3. MVCL的v3/v4物理分割
    3.1: v3/v4的代码分为两个文件,比如: order.php, order_v3.php
    3.2: system也分为两个文件,暂时只有一个user_v3
    - Note: front的$this->user在v4中会替换为$this->customer, 即v4中需要清除$this->user
    3.3: 代码中,区分v3/v4的调用,比如:new User_V3
     
  4. 前台代码
    twig, js, css (js, css尽量写在单独的css文件中)
     
  5. 后台代码
    MVCL (L:en,cn)
     
  6. 注释
    1. 类名:
      /**
       * xxx
       *
       * @copyright RedBlue-OTS 2024
       * @version v4
       *
       */
      
    2. 函数名:参数类型 + 返回值类型
          /**
           * xxx
           *
           * @param  xxx $xxx
           * @param  xxx $xxx
           * @return xxx
           */
      
Output
  • Report and Solution

Others


Files

1. span 标签没有起始标签.png (82.3 KB) 1. span 标签没有起始标签.png 1. span 标签没有起始标签 <span> Zhongbao Ye, 04/22/2025 10:58 AM
2. design_type的值的类型有多种,应该统一.png (356 KB) 2. design_type的值的类型有多种,应该统一.png 2. design_type的值的类型有多种,应该统一 Zhongbao Ye, 04/22/2025 11:32 AM
3. 添加sub option 保存后,这里不显示 sub option name.png (44 KB) 3. 添加sub option 保存后,这里不显示 sub option name.png 3. 添加sub option 保存后,这里不显示 sub option name Zhongbao Ye, 04/22/2025 12:54 PM
4. 在 option(option_id = 88) 级别中,设置option value 的 start cost price,价格计算时没有统计该价格.png (215 KB) 4. 在 option(option_id = 88) 级别中,设置option value 的 start cost price,价格计算时没有统计该价格.png 4. 在 option(option_id = 88) 级别中,设置option value 的 start cost price,价格计算时没有统计该价格 Zhongbao Ye, 04/22/2025 01:07 PM
6. currency useRound 下,数量越多产生的差异越大,产生差异的原因是什么.png (393 KB) 6. currency useRound 下,数量越多产生的差异越大,产生差异的原因是什么.png 6. currency useRound 下,数量越多产生的差异越大,产生差异的原因是什么 Zhongbao Ye, 04/22/2025 02:11 PM
Formula 情况下, 当前不可编辑product price.png (126 KB) Formula 情况下, 当前不可编辑product price.png 7. Formula 情况下, 当前不可编辑product price Zhongbao Ye, 04/22/2025 03:14 PM

Also available in: Atom PDF