Guest User

Untitled

a guest
Dec 1st, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. totalOrder += (item.Quantity * item.SellingPrice);
  2.  
  3. total = (totalOrder * 8%);
  4.  
  5. var tax = .08;
  6. var tax = 8%
  7.  
  8. ((totalOrder * tax) / 100);
  9.  
  10. <tbody>
  11. @foreach (var item in Model.InvoiceDetail)
  12. {
  13. <tr>
  14. <td>@Html.DisplayFor(modelItem => item.Quantity)</td>
  15. <td>@Html.DisplayFor(modelItem => item.Material)</td>
  16. <td>@Html.DisplayFor(modelItem => item.Description)</td>
  17. <td>$@Html.DisplayFor(modelItem => item.SellingPrice)</td>
  18.  
  19. <td>@string.Format("{0:C2}", (item.Quantity * item.SellingPrice))</td>
  20. </tr>
  21. totalOrder += (item.Quantity * item.SellingPrice);
  22.  
  23. total = (totalOrder * 8%);
  24. }
  25. </tbody>
  26. </table>
  27. <h5 style="margin-left: 80%;"><b>Sub Total :</b> @string.Format("{0:C2}", totalOrder)</h5>
  28. <h5 style="margin-left: 80%;"><b>Tax :</b> 8%</h5>
  29. <h5 style="margin-left: 80%;"><b>Total Due :</b> @string.Format("{0:C2}", total)</h5>
  30.  
  31. decimal totalOrder = 0;
  32. decimal total = 0;
  33.  
  34. decimal totalOrder = 100.1m;
  35. decimal tax = .08m;
  36. decimal total = totalOrder * (1.0m + tax);
  37.  
  38. <tbody>
  39. @foreach (var item in Model.InvoiceDetail)
  40. {
  41. <tr>
  42. <td>@Html.DisplayFor(modelItem => item.Quantity)</td>
  43. <td>@Html.DisplayFor(modelItem => item.Material)</td>
  44. <td>@Html.DisplayFor(modelItem => item.Description)</td>
  45. <td>$@Html.DisplayFor(modelItem => item.SellingPrice)</td>
  46.  
  47. <td>@string.Format("{0:C2}", (item.Quantity * item.SellingPrice))</td>
  48. </tr>
  49. //totalOrder += (item.Quantity * item.SellingPrice);
  50.  
  51.  
  52. }
  53. </tbody>
  54. </table>
  55. @{totalOrder += (Model.TotalCount * Model.PricePer);}
  56. <h5 style="margin-left: 80%;"><b>Sub Total :</b> @string.Format("{0:C2}", totalOrder)</h5>
  57. <h5 style="margin-left: 80%;"><b>Tax :</b> 8%</h5>
  58. <h5 style="margin-left: 80%;"><b>Total Due :</b> @string.Format("{0:C2}", total)</h5>
  59.  
  60. decimal totalOrder = 100.01m;
  61. decimal tax = .08m;
  62. decimal total = totalOrder * (1.0m + tax);
  63.  
  64. decimal totalOrder = 0m;
  65. decimal tax = .08m;
  66. @{decimal totalTax = totalOrder * (tax);
  67. decimal total = totalOrder + totalTax;}
  68.  
  69. <tbody>
  70. @foreach (var item in Model.InvoiceDetail)
  71. {
  72. <tr>
  73. <td>@Html.DisplayFor(modelItem => item.Quantity)</td>
  74. <td>@Html.DisplayFor(modelItem => item.Material)</td>
  75. <td>@Html.DisplayFor(modelItem => item.Description)</td>
  76. <td>$@Html.DisplayFor(modelItem => item.SellingPrice)</td>
  77.  
  78. <td>@string.Format("{0:C2}", (item.Quantity * item.SellingPrice))</td>
  79. </tr>
  80. totalOrder += (item.Quantity * item.SellingPrice);
  81.  
  82.  
  83. }
  84. </tbody>
  85. </table>
  86. @{decimal totalTax = totalOrder * (tax);
  87. decimal total = totalOrder + totalTax;}
  88. <h5 style="margin-left: 80%;"><b>Sub Total :</b> @string.Format("{0:C2}", totalOrder)</h5>
  89. <h5 style="margin-left: 80%;"><b>Tax :</b> 8%</h5>
  90. <h5 style="margin-left: 80%;"><b>Total Due :</b> @string.Format("{0:C2}", total)</h5>
Add Comment
Please, Sign In to add comment