Merge branch 'dev' of https://gitea.lihaink.cn/mkm/multi-store into dev
This commit is contained in:
commit
09dff2250e
@ -178,7 +178,7 @@ class StoreProductLogic extends BaseLogic
|
|||||||
//修改
|
//修改
|
||||||
StoreBranchProduct::where('product_id', $params['id'])->update([
|
StoreBranchProduct::where('product_id', $params['id'])->update([
|
||||||
'price' => $params['price'], 'vip_price' => $params['vip_price'],
|
'price' => $params['price'], 'vip_price' => $params['vip_price'],
|
||||||
'cost' => $params['cost'],
|
'cost' => $params['cost'],'unit'=>$params['unit'],
|
||||||
'batch'=>$params['batch'],'store_name'=>$params['store_name'],
|
'batch'=>$params['batch'],'store_name'=>$params['store_name'],
|
||||||
'manufacturer_information' => $params['manufacturer_information']??'',
|
'manufacturer_information' => $params['manufacturer_information']??'',
|
||||||
]);
|
]);
|
||||||
|
@ -399,12 +399,14 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
if ($deposit > 0) {
|
if ($deposit > 0) {
|
||||||
if ($deposit > $store_profit) {
|
if ($deposit > $store_profit) {
|
||||||
if ($store_profit > 0) {
|
if ($store_profit > 0) {
|
||||||
|
SystemStore::where('id',$order['store_id'])->inc('paid_deposit',$store_profit)->update();
|
||||||
$financeLogic->out($transaction_id, $store_profit, OrderEnum::ORDER_MARGIN, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
|
$financeLogic->out($transaction_id, $store_profit, OrderEnum::ORDER_MARGIN, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
|
||||||
$financeLogic->in($transaction_id, 0, OrderEnum::MERCHANT_ORDER_OBTAINS, $order['store_id'], 0, 0, $order['pay_type']); //平台手续费
|
$financeLogic->in($transaction_id, 0, OrderEnum::MERCHANT_ORDER_OBTAINS, $order['store_id'], 0, 0, $order['pay_type']); //平台手续费
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$money = bcsub($store_profit, $deposit, 2);
|
$money = bcsub($store_profit, $deposit, 2);
|
||||||
if ($deposit > 0) {
|
if ($deposit > 0) {
|
||||||
|
SystemStore::where('id',$order['store_id'])->inc('paid_deposit',$deposit)->update();
|
||||||
$financeLogic->out($transaction_id, $deposit, OrderEnum::ORDER_MARGIN, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
|
$financeLogic->out($transaction_id, $deposit, OrderEnum::ORDER_MARGIN, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
|
||||||
}
|
}
|
||||||
if ($money) {
|
if ($money) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user