|
|
@@ -141,18 +141,11 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
String yCheckQtyName = null;
|
|
|
for (String key : keySet) {
|
|
|
if (key.equals("newYCheckQty")) {
|
|
|
- if(map.get(key) instanceof Integer){
|
|
|
- int yQty = (Integer) map.get(key);
|
|
|
- newYCheckQtyVal = Integer.valueOf(yQty).doubleValue();
|
|
|
- }else{
|
|
|
- double yQty = ((Double)map.get(key)).doubleValue();
|
|
|
- newYCheckQtyVal = yQty;
|
|
|
- }
|
|
|
+ newYCheckQtyVal = Double.valueOf(map.get(key).toString());
|
|
|
} else if (key.equals("sourceId")) {
|
|
|
- int id = (Integer) map.get(key);
|
|
|
- sourceIdVal = Integer.valueOf(id).longValue();
|
|
|
+ sourceIdVal = Long.parseLong(map.get(key).toString());
|
|
|
} else if (key.equals("sourceTable")) {
|
|
|
- sourceTable = (String) map.get(key);
|
|
|
+ sourceTable = map.get(key).toString();
|
|
|
}
|
|
|
}
|
|
|
if (sourceTable.equals("purc$returnitem")) {
|