@@ -115,13 +115,17 @@ else if (p.isunpay == 3)
계산서신청
|
- @if (p.taxno != null)
+ @if (p.taxtype == 3)
{
- 신청
+ @p.taxtypename
+ }
+ else if (p.taxtype == 1)
+ {
+ @p.taxtypename 계산서변경
}
else
{
- -
+ @p.taxtypename
}
|
@@ -608,5 +612,16 @@ else if (p.isunpay == 3)
$("#thisbox").slideUp('fast'); $('#bglayer').hide();
}
}
+ function payuntax(payno) {
+ if (confirm("현금영수증을 계산서로 변경하시겠습니까?")) {
+ capp("/acommon/untax", { payno: payno }, "cbpayuntax");
+ }
+ }
+ function cbpayuntax() {
+ if (capResult.code == 1000) {
+ msg("변경상태가 저장되었습니다.", null, null, null, null, "location.href='/croom/payview?payno=@p.payno'");
+ opener.searchthis();
+ }
+ }
}
diff --git a/Base/Controller/ACommonCRoom.cs b/Base/Controller/ACommonCRoom.cs
index 999448b..d797b6a 100644
--- a/Base/Controller/ACommonCRoom.cs
+++ b/Base/Controller/ACommonCRoom.cs
@@ -1503,5 +1503,10 @@ namespace NP.Base.Controllers
}
return JsonOK(Dao.Save("cr.completion.up", completion));
}
+ [HttpPost]
+ public JsonResult UnTax(Int64 payno)
+ {
+ return JsonOK(Dao.Save("pay.untax", new Hashtable() { { "payno", payno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } }));
+ }
}
}
\ No newline at end of file
diff --git a/Dao/MyBatis/Maps/CRoom.xml b/Dao/MyBatis/Maps/CRoom.xml
index cb8fc97..27da9d8 100644
--- a/Dao/MyBatis/Maps/CRoom.xml
+++ b/Dao/MyBatis/Maps/CRoom.xml
@@ -954,17 +954,18 @@
|