+ 교육비결제

무통장입금(가상계좌)>계산서발행 선택 후, 수강신청 버튼 클릭 시
    회사정보 입력여부 체크 (사업자등록번호/대표자성명/주소/업태/종목/계산서받을이메일)
    위 정보들 미입력 시 '계산서 발급 시 회사정보가 필요합니다. 뒤로가기를 클릭하여 회사정보를 입력해주세요.' 출력
This commit is contained in:
lch 2021-06-22 05:09:17 +00:00
parent 0f0de6161e
commit 93dd5185c6
2 changed files with 15 additions and 1 deletions

View File

@ -926,7 +926,7 @@
,b.payno,b.pstatus
,a2.infee,a2.accommofee
,b.isbill
,a.asname, a.ceoname, a.brno, a.btype, a.bkind, a.mname, a.post, a.address1, a.address2
,a.asname, a.ceoname, a.brno, a.btype, a.bkind, a.mname, a.post, a.address1, a.address2, a.eino
,CAST(AES_DECRYPT(UNHEX(a.mphone), <include refid="sql.digest"></include>) AS char) mphone
,CAST(AES_DECRYPT(UNHEX(a.taxemail), <include refid="sql.digest"></include>) AS char) taxemail
from pplog a

View File

@ -146,6 +146,9 @@
</style>
}
<script type="text/javascript">
var model = {};
model.pplog = @Html.Raw(Json.Encode(new List<NP.Model.PPLog>() { ( Model.PPLog != null ? Model.PPLog : new NP.Model.PPLog {}) }.Select(s => new { s.asname, s.brno, s.ceoname, s.post, s.address1, s.address2, s.bkind, s.btype, s.taxemail }).First()));;
$(document).ready(function () {
$("input[name='ptype']").on("change", function () {
$("#cashbox").hide();
@ -168,7 +171,16 @@
$("#historyForm").submit();
});
});
function save() {
var isCompanyInfo = true;
$.each(model.pplog, function (key, value) {
if (!value) {
isCompanyInfo = false;
return;
}
});
$("#cashrcthp").val("");
$("#isbill").val("");
if ($("input[name='ptype']:checked").length > 0 && $("input[name='ptype']:checked").val() == 3 && $("input[name='iscashrct']:checked").length == 1 && $("input[name='iscashrct']:checked").val() == 2) {
@ -178,6 +190,8 @@
msg("결제방법을 선택해주세요.");
} else if ($("input[name='ptype']:checked").val() == 3 && $("input[name='iscashrct']:checked").length < 1) {
msg("현금영수증 / 계산서 발행여부를 선택해주세요.");
} else if ($("#isbill").val() == 1 && !isCompanyInfo) {
msg("계산서 발급 시 회사정보가 필요합니다. 뒤로가기를 클릭하여 회사정보를 입력해주세요.");
} else {
cap("/fcommon/paystart", "mform", "cbsave");
}