diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index a7759f7..51d4a7f 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -801,7 +801,8 @@ namespace NP.BO.Controllers var result = PopbillService.GetTaxinvoice(payTax); if (result.IsSuccess) { - ViewBag.Taxinvoice = result.Data; + ViewBag.Taxinvoice = result.Data; + ViewBag.TaxinvoiceInfo = PopbillService.GetTaxinvoiceInfo(payTax).Data; } } #endregion diff --git a/BO/Views/croom/taxdetail.cshtml b/BO/Views/croom/taxdetail.cshtml index c829057..5033edd 100644 --- a/BO/Views/croom/taxdetail.cshtml +++ b/BO/Views/croom/taxdetail.cshtml @@ -1,7 +1,10 @@ -@model NP.Model.VMCRoom +@using NP.Base.Popbill +@using Popbill.Taxinvoice; +@model NP.Model.VMCRoom @{ var t = Model.PayTaxes.First(); - var taxinvoice = ViewBag.Taxinvoice; + var taxinvoice = (Taxinvoice)ViewBag.Taxinvoice; + var taxinvoiceInfo = (TaxinvoiceInfo)ViewBag.TaxinvoiceInfo; }