현금영수증 발행 시 입력하는 핸드폰번호 입력칸 삭제
This commit is contained in:
parent
a336172945
commit
da28c7eadb
|
|
@ -96,22 +96,7 @@
|
|||
<ul class="apyRdo">
|
||||
@if ((Model.PPLog.cshape != 1) || (Model.PPLog.cshape == 1 && Model.PPLog.isrebate == 0))
|
||||
{
|
||||
<li>
|
||||
<input type="radio" name="iscashrct" id="pay0202" value="1"><label for="pay0202">현금영수증 발행<span class="cashnot hide"> (핸드폰번호 :</span></label>
|
||||
<ul class="apyPh cashnot hide">
|
||||
<li>
|
||||
<select id="hp1">
|
||||
<option value="">선택</option>
|
||||
<option value="010">010</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>-</li>
|
||||
<li><input type="tel" id="hp2" maxlength="4" /></li>
|
||||
<li>-</li>
|
||||
<li><input type="tel" id="hp3" maxlength="4" /></li>
|
||||
</ul>
|
||||
<span class="cashnot hide">)</span>
|
||||
</li>
|
||||
<li><input type="radio" name="iscashrct" id="pay0202" value="1"><label for="pay0202">현금영수증 발행</label></li>
|
||||
}
|
||||
@if ((Model.PPLog.cshape == 1 && Model.PPLog.isrebate == 1) || (Model.PPLog.cshape == 1 && Model.PPLog.isrebate == 0 && !String.IsNullOrEmpty(Model.PPLog.asname)))
|
||||
{
|
||||
|
|
@ -185,21 +170,14 @@
|
|||
function save() {
|
||||
$("#cashrcthp").val("");
|
||||
$("#isbill").val("");
|
||||
if ($("input[name='ptype']:checked").length > 0 && $("input[name='ptype']:checked").val() == 1) {
|
||||
$("#pay0201").prop("checked", true);
|
||||
} else if ($("input[name='ptype']:checked").length > 0 && $("input[name='ptype']:checked").val() == 3 && $("input[name='iscashrct']:checked").length == 1 && $("input[name='iscashrct']:checked").val() == 1) {
|
||||
$("#cashrcthp").val($("#hp1").val() + $("#hp2").val() + $("#hp3").val());
|
||||
} else 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) {
|
||||
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) {
|
||||
$("#isbill").val("1");
|
||||
}
|
||||
if ($("input[name='ptype']:checked").length < 1) {
|
||||
msg("결제방법을 선택해주세요.");
|
||||
} else if ($("input[name='ptype']:checked").val() == 3 && $("input[name='iscashrct']:checked").length < 1) {
|
||||
msg("현금영수증 / 계산서 발행여부를 선택해주세요.");
|
||||
} else if ($("input[name='ptype']:checked").val() == 3 && $("input[name='iscashrct']:checked").val() == 1 && !ismobilenumber($("#cashrcthp").val())) {
|
||||
msg("현금영수증 발행 핸드폰번호를 올바르게 입력해주세요.");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
cap("/fcommon/paystart", "mform", "cbsave");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue