refactor(return-leg): QuantityRollforward 改名 QtyRollforward

代码里统一用 Qty 表示数量, 命名更简洁。
文件/类/测试类同步改名: Quantity→Qty。
This commit is contained in:
hjhan
2026-08-11 10:40:17 +08:00
parent 279c640345
commit 59651b802e
3 changed files with 13 additions and 16 deletions
@@ -1978,7 +1978,7 @@ namespace YLErp.Modules.SwapModule
var openFlowEvents = unwindEvents.Where(x => x.EventType == (int)SwapFlowEventTypeEnum.).ToList();
decimal unwindQty = unwindFlowEvents.Sum(s => s.Quantity);
decimal openQty = openFlowEvents.Sum(s => s.Quantity);
curretEod.PosiQuantity = QuantityRollforward.Calc(eod.PosiQuantity, openQty, unwindQty);
curretEod.PosiQuantity = QtyRollforward.Calc(eod.PosiQuantity, openQty, unwindQty);
if (unwindEvents.Count == 0)
{
curretEod.PosiNetPrice = position.PosiNetPrice;