multi-store/app/common/logic/CashFlowLogic.php

22 lines
495 B
PHP

<?php
namespace app\common\logic;
use app\common\enum\YesNoEnum;
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->status = YesNoEnum::YES;//收银台收了默认算完成了
$model->save();
}
}