|
|
@@ -292,7 +292,7 @@ class OrderService extends BaseService
|
|
|
// 挂账/余额:先处理销售单(含余额抵挂账),再同步采购单待结
|
|
|
if (in_array($hasPay, [dict::getDict('hasPay', 'debt'), dict::getDict('hasPay', 'balance')])) {
|
|
|
self::payAfter($returnOrder, $payWay);
|
|
|
- $purchase = PurchaseClass::getLockById($purchaseId, true);
|
|
|
+ $purchase = PurchaseClass::getLockById($purchaseId);
|
|
|
if (!empty($purchase)) {
|
|
|
$purchase->remainDebtPrice = $returnOrder->remainDebtPrice;
|
|
|
$purchase->debtPrice = $returnOrder->debtPrice;
|