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