Jelajahi Sumber

Added Rounding to 2 decimal places for MYOB Customer Invoices

frogsoftware 11 bulan lalu
induk
melakukan
acd50a5899
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      prs.shared/Posters/MYOB/InvoiceMYOBPoster.cs

+ 1 - 1
prs.shared/Posters/MYOB/InvoiceMYOBPoster.cs

@@ -185,7 +185,7 @@ public class InvoiceMYOBPoster : IMYOBPoster<Invoice, InvoiceMYOBPosterSettings>
                     // line.UnitPrice = 
                     // line.UnitPriceForeign = 
                     // line.DiscountPercent = 
-                    line.Total = (decimal)item.IncTax;
+                    line.Total = Math.Round(Convert.ToDecimal(item.IncTax),2);
                     line.TotalForeign = 0;
 
                     if(item.SellGL.ID == Guid.Empty)