Project

General

Profile

Actions

追加功能 #493

closed
JZ JZ

v4.0: Logistics - Logistics & Custom - Step 2

追加功能 #493: v4.0: Logistics - Logistics & Custom - Step 2

Added by Junyi Zhang 4 months ago. Updated about 1 month ago.

Status:
已关闭
Priority:
普通
Assignee:
Target version:
IT: Easytryck (Sweden) - v4.0
Start date:
11/28/2025
Due date:
01/31/2026
% Done:

100%

Estimated time:
100.00 h

Description

Background
  1. https://trello.com/c/ireiTayR/24-13-%E5%8C%85%E8%A3%85%E6%89%93%E5%8D%B0-packing-label
Task Details
  • 1. Logistics & Custom
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


Related issues 1 (0 open1 closed)

Copied from 追加功能 #484: v4.0: Logistics - Logistics & Custom - Step 1已关闭Junyi Zhang09/08/202509/30/2025

Actions

JZ Updated by Junyi Zhang 4 months ago Actions #1

JZ Updated by Junyi Zhang 4 months ago Actions #2

  • Due date changed from 12/05/2025 to 12/31/2025

JZ Updated by Junyi Zhang 4 months ago Actions #3

  • % Done changed from 0 to 10

Output(2025/12/29 - 2025/12/31), (2025/12/22 - 2025/12/26),(2025/12/15 - 2025/12/19), (2025/12/08 - 2025/12/12), (2025/12/01 - 2025/12/05)

Function:
  1. GW,VW列添加红字提示(GW > 24kg, VW > GW),且VW随物流供应商的变化而动态显示(n/5000或者n/6000)
  2. 汇率抓取由原来的一天一抓,改为一月一抓。(统一当月汇率)
    - logistics模块中的ppu一直以最新的汇率为准。如果由于货币之间的汇率发生变化(比如:跨月的情况),导致ppu变化,则弹出提示框。
  3. 支持向既存的箱子中添加额外的产品
    - G.W.G: 表示占当前箱子总GW(不含外箱重量)的百分比。纸箱总GW保持不变,则其他常规产品的GW将按比例减少。每个箱子中的额外产品的总G.W.G不能超过箱子总重的80%
    - 支持批量向不同的箱子中添加额外产品
    - Repack到packing时,箱子中的额外产品会被删除
  4. 手动修改GW
    - 如果修改箱子的总GW,其中的内箱的GW也会按比例变化。如果修改内箱的GW(包括额外的产品)。
    - 如果只修改内箱的GW,则只会变化箱子的总GW。(即不会再重复i的步骤)
  5. 报关资料
    - 额外产品永远显示在报关资料中(除瑞典第三方),且不参与任何产品合并和重量分摊。
  6. 计费重列表
  7. 手机端打印方案
    - 使用代理方案,参考trello https://trello.com/c/ireiTayR#comment-69437adf24b665bf880b4224
  8. 拆箱数量之间的联动,拆箱数量与GW的联动,参考trello https://trello.com/c/ireiTayR#comment-69437adf24b665bf880b4224
  9. Replace file session with redis session
  10. logistics模块添加的额外产品支持设置:SE 报关, CN报关, CN & SE 报关
    - 表示当前额外产品是否在中国/瑞典的报关资料中显示
  11. 支持设置当前用户被分配的产品的默认EFT天数
    - 支持批处理
    - 当order status改为P-Started时,且EFT没有设置,则自动填入该用户的该产品设置的默认EFT。
  12. 添加laptop的css文件,针对屏幕分辨率1920px的屏幕
    - max-width: 1920px, min-width: 768px
数据更新sql:
  1. 更新CN/SE HS code
    1. 验证sql
      -- admin product module
      SELECT p.product_id, p.declaration_cn_hs_code, p.declaration_se_hs_code
      FROM ots_product p
      JOIN ots_product_to_category ptc
        ON ptc.product_id = p.product_id
      JOIN ots_category_path cp
        ON cp.category_id = ptc.category_id
      WHERE cp.path_id IN (
        79,135,129,88,92,86,87,85,156,
        82,83,151,93,81,166,133,153,154,155,179
      ) AND p.product_id >= 90000;
      
      -- order product
      SELECT 
        op.order_id,
        op.product_id,
        op.declaration_cn_hs_code,
        op.declaration_se_hs_code
      FROM ots_order_product op
      JOIN ots_product_to_category ptc
        ON ptc.product_id = op.product_id
      JOIN ots_category_path cp
        ON cp.category_id = ptc.category_id
      WHERE cp.path_id IN (
        79,135,129,88,92,86,87,85,156,
        82,83,151,93,81,166,133,153,154,155,179
      )
      AND op.status < 70;
      
      -- ots_shipping_packing_carton_extra_product 
      SELECT DISTINCT
        ep.shipping_packing_carton_id,
        ep.product_id
      FROM ots_shipping_packing_carton_extra_product ep
      JOIN ots_shipping_packing_carton spc
        ON spc.shipping_packing_carton_id = ep.shipping_packing_carton_id
      JOIN ots_product_to_category ptc
        ON ptc.product_id = ep.product_id
      JOIN ots_category_path cp
        ON cp.category_id = ptc.category_id
      WHERE cp.path_id IN (
        79,135,129,88,92,86,87,85,156,
        82,83,151,93,81,166,133,153,154,155,179
      )
      AND spc.status < 50;
      
    2. 修改sql
      -- 修改admin product module
      UPDATE ots_product p
      JOIN ots_product_to_category ptc
        ON ptc.product_id = p.product_id
      JOIN ots_category_path cp
        ON cp.category_id = ptc.category_id
      SET
        p.declaration_cn_hs_code = '4911109000',
        p.declaration_se_hs_code = '4911990000'
      WHERE cp.path_id IN (
        79,135,129,88,92,86,87,85,156,
        82,83,151,93,81,166,133,153,154,155,179
      ) AND p.product_id >= 90000;
      
      -- 修改order product
      UPDATE ots_order_product op
      JOIN ots_product_to_category ptc
        ON ptc.product_id = op.product_id
      JOIN ots_category_path cp
        ON cp.category_id = ptc.category_id
      SET
        op.declaration_cn_hs_code = '4911109000',
        op.declaration_se_hs_code = '4911990000'
      WHERE cp.path_id IN (
        79,135,129,88,92,86,87,85,156,
        82,83,151,93,81,166,133,153,154,155,179
      )
      AND op.status < 70;
      
      -- ots_shipping_packing_carton_extra_product 
      UPDATE ots_shipping_packing_carton_extra_product ep
      JOIN ots_shipping_packing_carton spc
        ON spc.shipping_packing_carton_id = ep.shipping_packing_carton_id
      JOIN ots_product_to_category ptc
        ON ptc.product_id = ep.product_id
      JOIN ots_category_path cp
        ON cp.category_id = ptc.category_id
      SET
        ep.declaration_cn_hs_code = '4911109000',
        ep.declaration_se_hs_code = '4911990000'
      WHERE cp.path_id IN (
        79,135,129,88,92,86,87,85,156,
        82,83,151,93,81,166,133,153,154,155,179
      )
      AND spc.status < 50;
      

JZ Updated by Junyi Zhang 3 months ago Actions #4

  • % Done changed from 10 to 50

JZ Updated by Junyi Zhang 2 months ago Actions #5

  • % Done changed from 50 to 80

JZ Updated by Junyi Zhang 2 months ago Actions #6

  • Due date changed from 12/31/2025 to 01/31/2026

JZ Updated by Junyi Zhang about 1 month ago Actions #7

  • Status changed from 进行中 to 已关闭
  • % Done changed from 80 to 100
Actions

Also available in: PDF Atom