|
@@ -113,7 +113,7 @@ public class WechatPayFapiaoService {
|
|
|
fapiaoInfo.put("amount", totalAmount - totalTax);
|
|
fapiaoInfo.put("amount", totalAmount - totalTax);
|
|
|
fapiaoInfo.put("items", items);
|
|
fapiaoInfo.put("items", items);
|
|
|
fapiaoInfo.put("invoice_type", "082");
|
|
fapiaoInfo.put("invoice_type", "082");
|
|
|
- if (invoice.getRemark() != null) {
|
|
|
|
|
|
|
+ if (invoice.getRemark() != null && !invoice.getRemark().isBlank()) {
|
|
|
fapiaoInfo.put("remark", invoice.getRemark());
|
|
fapiaoInfo.put("remark", invoice.getRemark());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -138,8 +138,6 @@ public class WechatPayFapiaoService {
|
|
|
var item = new HashMap<String, Object>();
|
|
var item = new HashMap<String, Object>();
|
|
|
item.put("tax_code", taxCode);
|
|
item.put("tax_code", taxCode);
|
|
|
item.put("goods_name", name);
|
|
item.put("goods_name", name);
|
|
|
- item.put("specification", "");
|
|
|
|
|
- item.put("unit", "");
|
|
|
|
|
item.put("quantity", 100000000);
|
|
item.put("quantity", 100000000);
|
|
|
item.put("unit_price", (long) totalAmount * 10000L);
|
|
item.put("unit_price", (long) totalAmount * 10000L);
|
|
|
item.put("amount", amount);
|
|
item.put("amount", amount);
|