견적서 토탈 볼륨 오류 API 수정

This commit is contained in:
LAPTOP-L3VE7KK2\USER 2025-02-07 15:15:55 +09:00
parent 2135a56724
commit d3f1d20896

View File

@ -1603,12 +1603,12 @@ public class EstimateService {
// YJSS인 경우 (PKG 단가 * 모듈용량) + 패키지 제외상품 합산
// YJOD인 경우 모든 아이템의 합산
if ("YJSS".equals(estimateType)) {
if ("1".equals(itemResponse.getModuleFlg())) {
totVol = totVol.add(pnowW.multiply(amount));
}
if ("1".equals(itemResponse.getPkgMaterialFlg())) { // 패키지 제외상품 여부(1)
supplyPrice = supplyPrice.add(salePrice.multiply(amount));
} else {
if ("1".equals(itemResponse.getModuleFlg())) {
totVol = totVol.add(pnowW.multiply(amount));
}
}
} else {
if ("1".equals(itemResponse.getModuleFlg())) {