From 0caae6937162904421a5b581f6be82ffc62bf774 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 13 Jan 2025 10:43:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(CashFlowLogic):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=8E=B0=E9=87=91=E6=B5=81=E6=9D=A5=E6=BA=90=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在现金流记录存在时,将新的来源标记添加到原有标记之后 - 仅在来源标记存在时执行添加操作 --- app/common/logic/CashFlowLogic.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/common/logic/CashFlowLogic.php b/app/common/logic/CashFlowLogic.php index f4daff58d..fa399f66a 100644 --- a/app/common/logic/CashFlowLogic.php +++ b/app/common/logic/CashFlowLogic.php @@ -15,6 +15,9 @@ class CashFlowLogic extends BaseLogic if ($find) { $find->cash_price = bcadd($find->cash_price, $amount, 2); $find->receivable = bcadd($find->receivable, $amount, 2); + if($source_mark){ + $find->source_mark =$find->source_mark.','.$source_mark; + } $find->save(); } else { $model->store_id = $storeId;