결제하기>충전, 포인트 문구 및 현금영수증 정보 인서트 안되도록 수정
This commit is contained in:
parent
139ad267e4
commit
da0109a602
@ -1682,6 +1682,8 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
|||||||
|
|
||||||
if(s_paymethod.equals("CARD")){
|
if(s_paymethod.equals("CARD")){
|
||||||
s_paymethod = "신용카드" ; // 신용카드(정상 결과코드:3001)
|
s_paymethod = "신용카드" ; // 신용카드(정상 결과코드:3001)
|
||||||
|
}else if(s_paymethod.equals("SPAY")){
|
||||||
|
s_paymethod = "간편결제" ; // 간편결제
|
||||||
}else if(s_paymethod.equals("BANK")){
|
}else if(s_paymethod.equals("BANK")){
|
||||||
s_paymethod = "계좌이체" ; // 계좌이체(정상 결과코드:4000)
|
s_paymethod = "계좌이체" ; // 계좌이체(정상 결과코드:4000)
|
||||||
}else if(s_paymethod.equals("CELLPHONE")){
|
}else if(s_paymethod.equals("CELLPHONE")){
|
||||||
@ -1711,6 +1713,24 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
|||||||
private MjonPayVO setPointVO(MjonPayVO mjonPayVO) throws Exception{
|
private MjonPayVO setPointVO(MjonPayVO mjonPayVO) throws Exception{
|
||||||
|
|
||||||
String s_paymethod = mjonPayVO.getPayMethod();
|
String s_paymethod = mjonPayVO.getPayMethod();
|
||||||
|
if(s_paymethod.equals("CARD")){
|
||||||
|
s_paymethod = "신용카드" ; // 신용카드(정상 결과코드:3001)
|
||||||
|
}else if(s_paymethod.equals("SPAY")){
|
||||||
|
s_paymethod = "간편결제" ; // 간편결제
|
||||||
|
}else if(s_paymethod.equals("BANK")){
|
||||||
|
s_paymethod = "계좌이체" ; // 계좌이체(정상 결과코드:4000)
|
||||||
|
}else if(s_paymethod.equals("CELLPHONE")){
|
||||||
|
s_paymethod = "휴대폰" ; // 휴대폰(정상 결과코드:A000)
|
||||||
|
}else if(s_paymethod.equals("VBANK")){
|
||||||
|
s_paymethod = "가상계좌" ; // 가상계좌(정상 결과코드:4100)
|
||||||
|
}else if(s_paymethod.equals("SSG_BANK")){
|
||||||
|
s_paymethod = "SSG은행계좌" ; // SSG은행계좌(정상 결과코드:0000)
|
||||||
|
}else if(s_paymethod.equals("CMS_BANK")){
|
||||||
|
s_paymethod = "계좌간편결제" ; // 계좌간편결제(정상 결과코드:0000)
|
||||||
|
}else {
|
||||||
|
s_paymethod = "";
|
||||||
|
}
|
||||||
|
|
||||||
String s_amt = mjonPayVO.getAmt();
|
String s_amt = mjonPayVO.getAmt();
|
||||||
// 부가세별도 충전금액
|
// 부가세별도 충전금액
|
||||||
s_amt = setCashVatNotIncluded(s_amt);
|
s_amt = setCashVatNotIncluded(s_amt);
|
||||||
@ -2080,8 +2100,8 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
|||||||
//세금계산서,현금영수증 자동발행 체크 / 자동발행 'N'이며 10만원 이상 결제시 현금영수증 의무발행
|
//세금계산서,현금영수증 자동발행 체크 / 자동발행 'N'이며 10만원 이상 결제시 현금영수증 의무발행
|
||||||
//String uniqId = mberManageDAO.selectUniqId(mjonPayVO.getUserId());
|
//String uniqId = mberManageDAO.selectUniqId(mjonPayVO.getUserId());
|
||||||
MberManageVO mberManageVO = mberManageDAO.selectMber(mjonPayVO.getUserId()); //멤버ID에서 유니크ID로 수정 필요
|
MberManageVO mberManageVO = mberManageDAO.selectMber(mjonPayVO.getUserId()); //멤버ID에서 유니크ID로 수정 필요
|
||||||
// 세금계산서 자동발행이고,카드결제가 아닐경우에만 자동발행
|
// 세금계산서 자동발행이고,카드결제, 간편결제가 아닐경우에만 자동발행
|
||||||
if(("B".equals(mberManageVO.getTaxbillAuto()) || "C".equals(mberManageVO.getTaxbillAuto())) && !"CARD".equals(mjonPayVO.getPayMethod())) {
|
if(("B".equals(mberManageVO.getTaxbillAuto()) || "C".equals(mberManageVO.getTaxbillAuto())) && !"CARD".equals(mjonPayVO.getPayMethod()) && !"SPAY".equals(mjonPayVO.getPayMethod())) {
|
||||||
TaxVO taxVO = new TaxVO();
|
TaxVO taxVO = new TaxVO();
|
||||||
|
|
||||||
/*발행타입 1:소득공제 현금영수증 2:지출증빙 현금영수증 9:세금계산서*/
|
/*발행타입 1:소득공제 현금영수증 2:지출증빙 현금영수증 9:세금계산서*/
|
||||||
@ -2121,7 +2141,7 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//세금계산서 자동발행 설정이 아니면서, 결제금액이 10만원 이상인 경우 현금영수증 의무발행 데이터 등록 필요
|
//세금계산서 자동발행 설정이 아니면서, 결제금액이 10만원 이상인 경우 현금영수증 의무발행 데이터 등록 필요
|
||||||
if("N".equals(mberManageVO.getTaxbillAuto()) && Integer.parseInt(mjonPayVO.getAmt()) >= 100000 && !"CARD".equals(mjonPayVO.getPayMethod())) {
|
if("N".equals(mberManageVO.getTaxbillAuto()) && Integer.parseInt(mjonPayVO.getAmt()) >= 100000 && !"CARD".equals(mjonPayVO.getPayMethod()) && !"SPAY".equals(mjonPayVO.getPayMethod())) {
|
||||||
//결제금액이 10만원 넘는 경우 : 현금영수증 의무발행 요청 등록
|
//결제금액이 10만원 넘는 경우 : 현금영수증 의무발행 요청 등록
|
||||||
TaxVO taxVO = new TaxVO();
|
TaxVO taxVO = new TaxVO();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user