Browse Source

Added Rounding to 2 decimal places for MYOB Customer Invoices

frogsoftware 11 tháng trước cách đây
mục cha
commit
acd50a5899
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)