Commit b8ad586b by liyanlin

fix

parent 1bcd362b
......@@ -391,6 +391,32 @@ public abstract class AbstractCostService implements CostService {
CostTypeResult costTypeResult = costTypeDao.queryDetail(costDomain.getTypeId());
String nsAccountingSubjectId = costCashiercallbackDomain.getErpAccountingType();
if(costCashiercallbackDomain.getCashierbankcardname().equals("Hang Seng Bank Limited")
&& costCashiercallbackDomain.getCashierbankcard().equals("774-515290-883")){
switch (costCashiercallbackDomain.getCashierunitcode().toUpperCase()){
case "HKD":
nsAccountingSubjectId = "10020201";
break;
case "EUR":
nsAccountingSubjectId = "10020202";
break;
case "USD":
nsAccountingSubjectId = "10020203";
break;
case "GBP":
nsAccountingSubjectId = "10020204";
break;
case "CNY":
nsAccountingSubjectId = "10020205";
break;
case "AUD":
nsAccountingSubjectId = "10020207";
break;
}
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
NetsuiteDataDto netsuiteDataDto = new NetsuiteDataDto();
netsuiteDataDto.setTranid(costDomain.getCostNo());
......@@ -410,7 +436,7 @@ public abstract class AbstractCostService implements CostService {
netsuiCostInfoDtos.add(feeSysInfo);
//财务系统信息
NetsuiCostinfoDto cwSysInfo = new NetsuiCostinfoDto(
costCashiercallbackDomain.getErpAccountingType(),
nsAccountingSubjectId,
costCashiercallbackDomain.getPayamount().toString(),
costCashiercallbackDomain.getCashierunitcode().toUpperCase()
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment