multi-store/app/common/logic/CashFlowLogic.php
2024-06-06 11:02:56 +08:00

20 lines
388 B
PHP

<?php
namespace app\common\logic;
use app\common\model\store_cash_finance_flow\StoreCashFinanceFlow;
class CashFlowLogic extends BaseLogic
{
public function insert($storeId, $amount)
{
$model = new StoreCashFinanceFlow();
$model->store_id = $storeId;
$model->cash_price = $amount;
$model->receivable = $amount;
$model->save();
}
}