|
|
@@ -117,7 +117,6 @@ public class tinvoicebill extends PaoCust {
|
|
|
serialNosArray.add(finvoiceserialnum);
|
|
|
contentObject.put("serialNos", serialNosArray);
|
|
|
JSONObject object = new OpenApi().requestApi("nuonuo.ElectronInvoice.queryInvoiceResult", contentObject.toString());
|
|
|
-
|
|
|
if (object.getString("code").equalsIgnoreCase("E0000")) {
|
|
|
JSONArray resultArray = object.getJSONArray("result");
|
|
|
for (Object o : resultArray) {
|
|
|
@@ -161,7 +160,7 @@ public class tinvoicebill extends PaoCust {
|
|
|
int i = 0;
|
|
|
while (saorderdetailSet.getPao(i) != null) {
|
|
|
for (Row row : rows) {
|
|
|
- if (saorderdetailSet.getPao(i).getUniqueIDValue() == row.getLong("saorderdetailid")) {
|
|
|
+ if (String.valueOf(saorderdetailSet.getPao(i).getUniqueIDValue()).equalsIgnoreCase(row.getString("saorderdetailid"))) {
|
|
|
double foldinvoiceamount = saorderdetailSet.getPao(i).getDouble("finvoiceamount");
|
|
|
saorderdetailSet.getPao(i).setValue("finvoiceamount", Math.add(foldinvoiceamount, row.getDouble("taxincludedamount")), 11L);
|
|
|
}
|