QCast API #886 견적서 Excel, Pdf 다운시 Open 제품은 단가 필드에 OPEN 텍스트로 보여주도록
This commit is contained in:
parent
b4850483d3
commit
a682efbd2b
@ -1409,6 +1409,11 @@ public class EstimateService {
|
||||
itemResponse.setSalePrice("");
|
||||
itemResponse.setSaleTotPrice("");
|
||||
}
|
||||
|
||||
// 886 Excel, PDF에 OPEN_FLG = 1은 단가필드에 OPEN 텍스트로 보여주도록
|
||||
if ("1".equals(itemResponse.getOpenFlg())) {
|
||||
itemResponse.setSalePrice("OPEN");
|
||||
}
|
||||
}
|
||||
|
||||
// 합산 문자열 통화로 변환 처리
|
||||
@ -1724,7 +1729,7 @@ public class EstimateService {
|
||||
|
||||
quoteList.add(estimateSendResponse);
|
||||
estimateSendRequest.setQuoteList(quoteList);
|
||||
//2차점명
|
||||
// 2차점명
|
||||
estimateSendResponse.setSecSapSalesStoreCd(estimateRequest.getSecSapSalesStoreCd());
|
||||
}
|
||||
|
||||
@ -2254,7 +2259,7 @@ public class EstimateService {
|
||||
|
||||
if (StringUtils.isEmpty(priceRequest.getSapSalesStoreCd())) {
|
||||
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,
|
||||
message.getMessage("common.message.required.data", "Sap Sale Store Code"));
|
||||
message.getMessage("common.message.required.data", "Sap Sale Store Code"));
|
||||
}
|
||||
|
||||
|
||||
@ -2262,15 +2267,15 @@ public class EstimateService {
|
||||
/* [1]. QSP API (url + param) Setting */
|
||||
String url = QSP_API_URL + "/api/master/agencyCustList";
|
||||
String apiUrl = UriComponentsBuilder.fromHttpUrl(url)
|
||||
.queryParam("sapSalesStoreCd", priceRequest.getSapSalesStoreCd()).build().toUriString();
|
||||
.queryParam("sapSalesStoreCd", priceRequest.getSapSalesStoreCd()).build().toUriString();
|
||||
|
||||
/* [2]. QSP API CALL -> Response */
|
||||
String strResponse = interfaceQsp.callApi(HttpMethod.GET, apiUrl, null);
|
||||
|
||||
if (!"".equals(strResponse)) {
|
||||
com.fasterxml.jackson.databind.ObjectMapper om =
|
||||
new com.fasterxml.jackson.databind.ObjectMapper()
|
||||
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
new com.fasterxml.jackson.databind.ObjectMapper()
|
||||
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
response = om.readValue(strResponse, EstimateApiResponse.class);
|
||||
} else {
|
||||
// [msg] No data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user