|
|
|
@@ -105,7 +105,8 @@ public class InvoiceModel : PageModel |
|
|
|
// 判斷是否為初始轉頁(三個選項都沒填寫) |
|
|
|
bool isInitialRedirect = string.IsNullOrEmpty(InvoiceData.Email) && |
|
|
|
string.IsNullOrEmpty(InvoiceData.CarrierID) && |
|
|
|
string.IsNullOrEmpty(InvoiceData.BuyerIdentifier); |
|
|
|
string.IsNullOrEmpty(InvoiceData.BuyerIdentifier) && |
|
|
|
string.IsNullOrEmpty(InvoiceData.LoveCode); |
|
|
|
|
|
|
|
// 如果是初始轉頁,直接顯示表單讓用戶填寫 |
|
|
|
if (isInitialRedirect) |
|
|
|
@@ -134,7 +135,7 @@ public class InvoiceModel : PageModel |
|
|
|
if (!string.IsNullOrEmpty(InvoiceData.Email)) filledCount++; |
|
|
|
if (!string.IsNullOrEmpty(InvoiceData.CarrierID)) filledCount++; |
|
|
|
if (!string.IsNullOrEmpty(InvoiceData.BuyerIdentifier)) filledCount++; |
|
|
|
// if (!string.IsNullOrEmpty(InvoiceData.LoveCode)) filledCount++; |
|
|
|
if (!string.IsNullOrEmpty(InvoiceData.LoveCode)) filledCount++; |
|
|
|
|
|
|
|
if (filledCount == 0) |
|
|
|
{ |
|
|
|
@@ -232,13 +233,9 @@ public class InvoiceModel : PageModel |
|
|
|
InvoiceData.TransDateTime = InvoiceData.TransDateTime ?? string.Empty; |
|
|
|
InvoiceData.TransAmount = InvoiceData.TransAmount ?? string.Empty; |
|
|
|
InvoiceData.DeviceID = InvoiceData.DeviceID ?? string.Empty; |
|
|
|
InvoiceData.Email = InvoiceData.Email ?? string.Empty; |
|
|
|
InvoiceData.CarrierID = InvoiceData.CarrierID ?? string.Empty; |
|
|
|
InvoiceData.LocationID = InvoiceData.LocationID ?? string.Empty; |
|
|
|
InvoiceData.CarPlateNum = InvoiceData.CarPlateNum ?? string.Empty; |
|
|
|
InvoiceData.OrderID = InvoiceData.OrderID ?? string.Empty; |
|
|
|
InvoiceData.BuyerIdentifier = InvoiceData.BuyerIdentifier ?? string.Empty; |
|
|
|
InvoiceData.LoveCode = InvoiceData.LoveCode ?? string.Empty; |
|
|
|
InvoiceData.TaxType = InvoiceData.TaxType ?? string.Empty; |
|
|
|
} |
|
|
|
|
|
|
|
|