Selaa lähdekoodia

Added Rounding to 2 decimal places for MYOB Customer Invoices

frogsoftware 11 kuukautta sitten
vanhempi
commit
acd50a5899
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)