From 6bf02aab5bf29a193d663db8068db145bd15ea9e Mon Sep 17 00:00:00 2001 From: "s.neumaier" <s.neumaier@adito.de> Date: Wed, 11 Nov 2020 11:34:30 +0100 Subject: [PATCH] [Projekt: Entwicklung - xRM][TicketNr.: 1068641][Angebote - Gesamtrabatt / Rechnungsrabatt] --- entity/Offeritem_entity/recordcontainers/db/onDBUpdate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/entity/Offeritem_entity/recordcontainers/db/onDBUpdate.js b/entity/Offeritem_entity/recordcontainers/db/onDBUpdate.js index 967bd379f9..03b7cff193 100644 --- a/entity/Offeritem_entity/recordcontainers/db/onDBUpdate.js +++ b/entity/Offeritem_entity/recordcontainers/db/onDBUpdate.js @@ -10,6 +10,7 @@ if(oid != "") var discount = vars.exists("$param.Discount_param") ? vars.get("$param.Discount_param"): ""; var cols = ["NET", "VAT"]; var oiUtils = new OfferItemUtils(oid); + var vals = oiUtils.getNetAndVat(); var netDiscounted = OfferItemUtils.getDiscountedNet(vals[0], discount); if(netDiscounted){ -- GitLab