|
|
@@ -119,7 +119,7 @@ public class SaleApCheckController {
|
|
|
PurchaseApCheck apCheck = FlexJsonUtils.fromJson(json, PurchaseApCheck.class);
|
|
|
if (apCheck != null) {
|
|
|
for (PurchaseApCheckItem item : apCheck.getItems()) {
|
|
|
- List<PurchaseApCheckItem> items = purchaseApCheckService.findBySourceId(item.getSourceId());
|
|
|
+ List<PurchaseApCheckItem> items = purchaseApCheckService.findByOrderCode(item.getOrderCode());
|
|
|
for (PurchaseApCheckItem newitem : items) {
|
|
|
if (newitem.getApCheck().getCheckStatus().equals("未对账")) {
|
|
|
throw new IllegalOperatorException("该订单存在未对账的单据,请先对账!");
|