Explorar o código

发票上传时订单号前加上备注信息

沈静伟 %!s(int64=4) %!d(string=hai) anos
pai
achega
7db9a7ab1f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/apps/tinvoicebill/tinvoicebill.java

+ 3 - 1
src/apps/tinvoicebill/tinvoicebill.java

@@ -232,7 +232,9 @@ public class tinvoicebill extends PaoCust {
                 "inner join saorder t3 on t2.siteid=t3.siteid and t2.saorderid=t3.saorderid \n" +
                 "where t1.tinvoicebillid='" + getUniqueIDValue() + "' \n" +
                 ")t  for xml path('')),1,1,''))");
-        orderObject.put("remark", rows.isEmpty() ? "" : rows.get(0).getString("fsonum"));//冲红时,在备注中注明“对应正数发票代码:XXXXXXXXX号码:YYYYYYYY”文案,其中“X”为发票代码,“Y”为发票号码,可以不填,接口会自动添加该文案;机动车发票蓝票时备注只能为空
+        String fnotes = getString("fnotes");
+        String fsonum = rows.get(0).getString("fsonum");
+        orderObject.put("remark", rows.isEmpty() ? fnotes : (fnotes.equals("") ? fsonum : (fnotes + ";" + fsonum)));//冲红时,在备注中注明“对应正数发票代码:XXXXXXXXX号码:YYYYYYYY”文案,其中“X”为发票代码,“Y”为发票号码,可以不填,接口会自动添加该文案;机动车发票蓝票时备注只能为空
 
         orderObject.put("checker", tinvoiceapply.getString("finvoicechecker"));//复核人
         orderObject.put("payee", tinvoiceapply.getString("finvoicepayee"));//收款人