Explorar o código

WindykcjaPanel: Fix fv price round BUG

Piotr Labudda %!s(int64=11) %!d(string=hai) anos
pai
achega
240d065979
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SE/superedit-USERS2_WINDYKACJA_STATUS.php

+ 1 - 1
SE/superedit-USERS2_WINDYKACJA_STATUS.php

@@ -4977,7 +4977,7 @@ class WindykacjaStatsModel {
 				BILLS_FVAT.*
 				, count(BILLS_FVAT_POS.ID) as ILOSC_POZYCJI
 				, BILLS_FVAT_POS.ID_BILLS_FVAT
-				, round(sum((BILLS_FVAT_POS.AMMOUNT * BILLS_FVAT_POS.PRICE)*(1 + BILLS_FVAT_POS.VAT/100)), 2) as WARTOSC
+				, sum(round((round(BILLS_FVAT_POS.AMMOUNT * BILLS_FVAT_POS.PRICE, 2)) * (1 + BILLS_FVAT_POS.VAT / 100), 2)) as WARTOSC
 				-- , count(BILLS_FVAT_POS.PRICE) as ILOSC_POZYCJI
 				, `NUMBER` as `NUMBER`
 				, `ID_BILLING_PREFIXES` as `ID_BILLING_PREFIXES`