diff --git a/app/src/main/java/com/icssoft/icspda/activity/WXItemInActivity.java b/app/src/main/java/com/icssoft/icspda/activity/WXItemInActivity.java index 3a19c36..fe688a2 100644 --- a/app/src/main/java/com/icssoft/icspda/activity/WXItemInActivity.java +++ b/app/src/main/java/com/icssoft/icspda/activity/WXItemInActivity.java @@ -281,12 +281,12 @@ public class WXItemInActivity extends AppCompatActivity { if (code==0){ Double CurrentQty = 0.00; for (WXItemInData wxItemInData : dataList) { - String ItemCode=wxItemInData.getItemCode(); - String ItemCode1=ItemCode.substring(0,ItemCode.indexOf("-")); - if (ItemCode1.toUpperCase().equals("040201000014")) { - CurrentQty += Double.parseDouble(wxItemInData.getRcvLineCurrentQty()); - wxItemInData.setRcvLineCurrentQty(applicationModel.getQTY()); - } + String ItemCode=wxItemInData.getItemCode(); + String ItemCode1=ItemCode.substring(0,ItemCode.indexOf("-")); + if (ItemCode1.toUpperCase().equals(applicationModel.getINVCode())) { + CurrentQty += Double.parseDouble(wxItemInData.getRcvLineCurrentQty()); + wxItemInData.setRcvLineCurrentQty(applicationModel.getQTY()); + } } tableData = new TableData<>("委外入库", dataList, columns); smartTable.setTableData(tableData);