|
|
@@ -18,6 +18,7 @@ import common.annotation.API;
|
|
|
import common.annotation.CACHEING;
|
|
|
import common.annotation.CACHEING_CLEAN;
|
|
|
import common.data.*;
|
|
|
+import io.reactivex.internal.observers.ForEachWhileObserver;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import restcontroller.R;
|
|
|
import restcontroller.webmanage.sale.aftersalesmag.twriteoffbill_orderchange;
|
|
|
@@ -641,7 +642,10 @@ public class OrderItems extends Controller {
|
|
|
JSONObject jsonObject = (JSONObject) object;
|
|
|
if (rowsMap.containsKey(jsonObject.getString("fitemno"))) {
|
|
|
if (rowsMap.get(jsonObject.getString("fitemno")).isNotEmpty()) {
|
|
|
- rowsMap.get(jsonObject.getString("fitemno")).get(0).put("invbalqty", jsonObject.getBigDecimalValue("fqty"));
|
|
|
+ for (Row row : rowsMap.get(jsonObject.getString("fitemno"))
|
|
|
+ ) {
|
|
|
+ row.put("invbalqty", jsonObject.getBigDecimalValue("fqty"));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -848,7 +852,10 @@ public class OrderItems extends Controller {
|
|
|
JSONObject jsonObject = (JSONObject) object;
|
|
|
if (rowsMap.containsKey(jsonObject.getString("fitemno"))) {
|
|
|
if (rowsMap.get(jsonObject.getString("fitemno")).isNotEmpty()) {
|
|
|
- rowsMap.get(jsonObject.getString("fitemno")).get(0).put("invbalqty", jsonObject.getBigDecimalValue("fqty"));
|
|
|
+ for (Row row : rowsMap.get(jsonObject.getString("fitemno"))
|
|
|
+ ) {
|
|
|
+ row.put("invbalqty", jsonObject.getBigDecimalValue("fqty"));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|