|
@@ -209,19 +209,19 @@ public class SyncSapFIUtils {
|
|
|
//凭证日期
|
|
|
String BUDAT = sdf.format(voucher.getDate(GlVoucherConstantInfo.BOOKEDDATE));
|
|
|
//业务类型
|
|
|
- String BLART = "";
|
|
|
+ String BLART = StringUtils.isEmpty(voucher.getString("nckd_blart")) ? "" : voucher.getString("nckd_blart");
|
|
|
String BKTXT = "";
|
|
|
String sourcebill = "";
|
|
|
String billtype = voucher.getString("sourcebilltype");
|
|
|
if(StringUtils.isNotEmpty(billtype)) {
|
|
|
- switch (billtype) {
|
|
|
- case "er_publicreimbursebill":
|
|
|
- BLART = "BX";
|
|
|
- break;
|
|
|
- default:
|
|
|
- BLART = "BX";
|
|
|
- break;
|
|
|
- }
|
|
|
+// switch (billtype) {
|
|
|
+// case "er_publicreimbursebill":
|
|
|
+// BLART = "BX";
|
|
|
+// break;
|
|
|
+// default:
|
|
|
+// BLART = "BX";
|
|
|
+// break;
|
|
|
+// }
|
|
|
sourcebill = voucher.getString("sourcebill");
|
|
|
//上游单据编号
|
|
|
DynamicObject sourcebillDyn = BusinessDataServiceHelper.loadSingle(sourcebill, billtype);
|
|
@@ -349,6 +349,7 @@ public class SyncSapFIUtils {
|
|
|
sb.append(GlVoucherConstantInfo.SUBMITTER).append(".number").append(","); // 制单人编码
|
|
|
sb.append(GlVoucherConstantInfo.SOURCEBILLTYPE).append(","); // 来源单据类型
|
|
|
sb.append(GlVoucherConstantInfo.SOURCEBILL).append(","); // 来源单据ID
|
|
|
+ sb.append("nckd_blart").append(","); // 来源单据ID
|
|
|
sb.append("entries,"); // 凭证行
|
|
|
sb.append("entries.id,"); // 凭证行ID
|
|
|
sb.append("entries.seq,");
|