|
@@ -89,7 +89,13 @@ public class SyncSapFIUtils {
|
|
|
|
|
|
DynamicObject sourcebillDyn = BusinessDataServiceHelper.loadSingle(sourcebill, billtype);
|
|
|
BKTXT = sourcebillDyn.getString("billno");
|
|
|
- ZUONR = BKTXT;
|
|
|
+
|
|
|
+ if (billtype.equals("er_publicreimbursebill")) {
|
|
|
+ String contractcode = sourcebillDyn.getString("contractsconn");
|
|
|
+ if(StringUtils.isNotEmpty(contractcode)) {
|
|
|
+ ZUONR = contractcode;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
String BUZEI = voucher.getString("entries.seq");
|
|
|
String HKONT = voucher.getString("entries.account.number");
|
|
@@ -112,7 +118,6 @@ public class SyncSapFIUtils {
|
|
|
String SGTXT = StringUtils.isEmpty(voucher.getString("entries.edescription")) ? "" : voucher.getString("entries.edescription");
|
|
|
String KOSTL = "";
|
|
|
String PROJK = "";
|
|
|
-
|
|
|
String KUNNR = "";
|
|
|
String RSTGR = "";
|
|
|
String LIFNR = "";
|
|
@@ -132,9 +137,6 @@ public class SyncSapFIUtils {
|
|
|
}
|
|
|
|
|
|
if(auxpropertiesMap != null && auxpropertiesMap.size() > 0){
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if(StringUtils.isNotEmpty(auxpropertiesMap.get("bd_customer"))){
|
|
|
KUNNR = auxpropertiesMap.get("bd_customer");
|
|
|
}
|
|
@@ -217,6 +219,7 @@ public class SyncSapFIUtils {
|
|
|
|
|
|
DynamicObject sourcebillDyn = BusinessDataServiceHelper.loadSingle(sourcebill, billtype);
|
|
|
BKTXT = sourcebillDyn.getString("billno");
|
|
|
+
|
|
|
}
|
|
|
|
|
|
String XBLNR = StringUtils.isEmpty(voucher.getString("entries.edescription")) ? "" : voucher.getString("entries.edescription");
|
|
@@ -321,6 +324,7 @@ public class SyncSapFIUtils {
|
|
|
return "0";
|
|
|
}
|
|
|
|
|
|
+
|
|
|
public static String getVoucherFieldForQuery() {
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
sb.append(GlVoucherConstantInfo.ID).append(",");
|