Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

29 Dec 2023 -VERSION 3.1.7.1

Issue/Request

Type

User Guide

Jira Ticket

20231218 采销预配

Enhancement

Jira Legacy
serverSystem JIRA
serverIda6a5c91f-7975-3c4d-8f2d-6aab593771a8
keyMAF-4407

yearly settlement follow-up

how to test

  1. use 2022 phy trade

  2. add psl (invoice and psl) with the trade (2022)

  3. add stock mgmt with the trade (2022)

 

then do yrly settlement in 2023. see if psl, stock date and remark update correctly.

Enhancement

Jira Legacy
serverSystem JIRA
serverIda6a5c91f-7975-3c4d-8f2d-6aab593771a8
keyMAF-4410

Procurement and Sales Planning

  1. accum_qty will be auto calculate and update in orm level for delete, update and insert

  2. add tab after tab Trades in new phy trade page

  3. when delete mapping rows in the lower table, could you please enable multiple select, which user is able to delete multiple row at one click

  4. PACUUM QTY, PMAIN CONTRACT NO, PCONTRACT NO … (S as well), please add space into PXXX and SXXX)

  5. put S ACCUM QTY before S MAIN CONTRACT NO

  6. enable multiple select in main table, which user is able to delete those selected rows at one click

  7. trying to insert P and S, after click confirm button, it shows save successfully, but can not see new insert row in main table.

  8. should 配对框 show 未配对数量

need to do calculation for 未配对数量. coz when user insert p and s contract, FE needs to keep update 未配对数量 to follow mapping logic.

those 未配对数量 in main table. = 0 rows, should not be shown in the insert table.

Enhancement

Jira Legacy
serverSystem JIRA
serverIda6a5c91f-7975-3c4d-8f2d-6aab593771a8
keyMAF-4377

PSP mapping issue

unmatchedQty = 可卖库存-已配对数量

e.g., phy_trade_id = 103235

可卖库存 = 合同数量(有实际数量用实际数量,无实际数量用合同数量)-对应的已出库数量 which should be 200

已配对数量:

there is no mapped in psp table for trade 103235, so 已配对数量 should be 0

 

unmatchedQty = 200 - 0 = 200, not 0

  1. add counterparty in both tables

    1. insert psp upper and lower tables

    2. psp main table

  2. unmatchedQty for sale contract incorrect due to sign of qty issue.

Enhancement

Jira Legacy
serverSystem JIRA
serverIda6a5c91f-7975-3c4d-8f2d-6aab593771a8
keyMAF-4400

move bal_qty of stock_mgmt into database level.

currently we calcualte bal_qty in BE code lvl, which is not easy to maintain.

we will create a new column called match_bal_qty in stock_mgmt. Orm layer will update match_bal_qty whenever insert, update or delete.

orm layer done. we are able to get stock_bal_qty directly from database (noted that old data stock_bal_qty may be be correct, but could be update if any update with match_id row)

please remove bal_qty in code level and get bal_qty (stock_bal_qty ) from database directly including in PSP table.

testing, you can randomly put stock in / stock out and swap in/out with match id, see if the bal qty is correct.

Enhancement

Jira Legacy
serverSystem JIRA
serverIda6a5c91f-7975-3c4d-8f2d-6aab593771a8
keyMAF-4398

STOCK APPLICATION

the correct flow should be

application

  1. business user to click existing phy trade from top table

  2. fill up necessary info in bottom table

  3. save

  4. after save, the data will be shown in the bottom table, and stock_lvl should be AP

  5. note that the user_id should be business user_id

approval

  1. add a button APPROVE

  2. user multiple select rows in bottom table to approve

  3. pop up a window, and user is able to adjust stock qty in pop up window, e.g.,

    1. STOCK application qty is 100

    2. user is able to change to 20

  4. click Confirm button to approve

    1. if approved qty = stock application qty

      1. update stock_lvl to EX, which will be shown in stock details table

    2. if approved qty < stock application qty

      1. update current row stock application qty = original stock application qty - approved qty

      2. insert a new approved stock row

        1. user_id should be original user_id

        2. stock_lvl = EX

        3. stock qty = approved qty

      3. update data should be still shown in the bottom table

      4. new insert data should be shown in the stock details table

      5. validation:

        1. approved qty can not > application qty

        2. validate in FE and BE both

  1. 1st table is phy trade table. if it is sale, then should be negative

  2. lower table is stock in/out table, should be follow stock details rule to show negative or positive

Enhancement

Jira Legacy
serverSystem JIRA
serverIda6a5c91f-7975-3c4d-8f2d-6aab593771a8
keyMAF-4378

business mode and strategy mapping issue

Enhancement

Jira Legacy
serverSystem JIRA
serverIda6a5c91f-7975-3c4d-8f2d-6aab593771a8
keyMAF-4409

new business mode request from HT

Enhancement

Jira Legacy
serverSystem JIRA
serverIda6a5c91f-7975-3c4d-8f2d-6aab593771a8
keyMAF-4408

14 Dec 2023 -VERSION 3.1.7.1

...