diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index eb6563a..3ef4948 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -1182,7 +1182,16 @@ namespace NP.BO.Controllers { ViewBag.Taxinvoice = result.Data; ViewBag.TaxinvoiceInfo = PopbillService.GetTaxinvoiceInfo(payTax).Data; - if(ViewBag.TaxinvoiceInfo != null && payTax.statecode == 0) + + string[] popbillManager = GetConfig("popbillManager").Split(';'); + + if (payTax.statecode == 0) + { + ViewBag.Taxinvoice.invoicerTEL = popbillManager[0]; + ViewBag.Taxinvoice.invoicerContactName = popbillManager[1]; + } + + if (ViewBag.TaxinvoiceInfo != null && payTax.statecode == 0) { #region 세금계산서 상태코드 업데이트 payTax.uno = SUserInfo.UserNo; @@ -1193,6 +1202,9 @@ namespace NP.BO.Controllers } } } + + + #endregion return View(vm); diff --git a/BO/Web.config b/BO/Web.config index 9b979cd..7d4c0ec 100644 --- a/BO/Web.config +++ b/BO/Web.config @@ -37,7 +37,9 @@ - + + + @@ -55,8 +57,8 @@ - - + + diff --git a/Base/Controller/ACommonCRoom.cs b/Base/Controller/ACommonCRoom.cs index 5821f28..ed8b173 100644 --- a/Base/Controller/ACommonCRoom.cs +++ b/Base/Controller/ACommonCRoom.cs @@ -1422,7 +1422,9 @@ namespace NP.Base.Controllers if (Dao.Save("cr.paytax.save", payTax) > 0) { var payItems = Dao.Get("cr.paytaxitem2", new System.Collections.Hashtable() { { "taxno", payTax.taxno } }); - var result = Popbill.PopbillService.RegistIssue(Dao, payTax, payItems); + string[] popbillManager = GetConfig("popbillManager").Split(';'); + + var result = Popbill.PopbillService.RegistIssue(Dao, payTax, payItems, popbillManager[0], popbillManager[1]); if (result.IsSuccess) { #region 세금계산서 상태코드 업데이트 diff --git a/Base/Popbill/PopbillService.cs b/Base/Popbill/PopbillService.cs index 1a09408..ab7d707 100644 --- a/Base/Popbill/PopbillService.cs +++ b/Base/Popbill/PopbillService.cs @@ -430,7 +430,7 @@ namespace NP.Base.Popbill /// 메모 /// IssueResponse /// 작성된 세금계산서 데이터를 팝빌에 저장과 동시에 발행(전자서명)하여 "발행완료" 상태로 처리합니다. - public static Result RegistIssue(CommonDao Dao, PayTax payTax, IList payItems, MgtKeyType keyType = MgtKeyType.SELL, bool forceIssue = false, string memo = "") + public static Result RegistIssue(CommonDao Dao, PayTax payTax, IList payItems, string managerPhone = "", string managerName = "", MgtKeyType keyType = MgtKeyType.SELL, bool forceIssue = false, string memo = "") { Result result = new Result(); ; try @@ -453,6 +453,8 @@ namespace NP.Base.Popbill else { var taxinvoice = GetTaxinvoice(payTax, payItems, keyType).Data; + taxinvoice.invoicerTEL = managerPhone; // 세금계산서 발행시 invoicerTEL번호를 기업에 등록된 연락처로 변경 2023.05.17 (pms: 7903) + taxinvoice.invoicerContactName = managerName;// 세금계산서 발행시 invoicerTEL번호를 기업에 등록된 연락처로 변경 2023.05.17 (pms: 7903) result.Data = PopbillConfig.taxinvoiceService.RegistIssue(PopbillConfig.CorpNum, taxinvoice, forceIssue, memo); result.Code = result.Data.code; result.Message = result.Data.message; diff --git a/Dao/MyBatis/Maps/CRoom.xml b/Dao/MyBatis/Maps/CRoom.xml index c23306f..178df43 100644 --- a/Dao/MyBatis/Maps/CRoom.xml +++ b/Dao/MyBatis/Maps/CRoom.xml @@ -1511,12 +1511,12 @@ ,manname=#manname# ,telno=HEX(AES_ENCRYPT(#telno#, )) ,email=HEX(AES_ENCRYPT(#email#, )) - ,taxdate=#taxdate# - ,taxinfo=#taxinfo# - ,isreceipt=#isreceipt# - ,iscancel=#iscancel# - ,asaddr=#asaddr# - ,mgtkey=#mgtkey# + ,taxdate=#taxdate# + ,taxinfo=#taxinfo# + ,isreceipt=#isreceipt# + ,iscancel=#iscancel# + ,asaddr=#asaddr# + ,mgtkey=#mgtkey# ,taxdatereq=#taxdatereq# ,statecode=#statecode# ,realtaxdate=case when #statecode#=300 and realtaxdate is null then now() else realtaxdate end