src-db/database/model/triggers/C_INVOICELINE_TRG2.xml
changeset 25602 fbc674d56f04
parent 25568 132f3d7f9f75
child 26214 35a4e54c3ffc
--- a/src-db/database/model/triggers/C_INVOICELINE_TRG2.xml	Tue Dec 16 23:22:21 2014 +0530
+++ b/src-db/database/model/triggers/C_INVOICELINE_TRG2.xml	Tue Dec 23 18:53:13 2014 +0100
@@ -149,7 +149,7 @@
      GrandTotal = CASE v_istaxincluded
                        WHEN 'Y' THEN grandtotal - v_oldgrossamt
                        ELSE TotalLines - v_oldLine + v_newLineNetAmt + COALESCE(v_taxAmt, 0)
-                  END,  prepaymentamt=prepaymentamt - v_oldLine + v_newLineNetAmt
+                  END
    --  Updated = SysDate -- Don't update as otherwise it does not save changes
    WHERE C_Invoice_ID=:old.C_Invoice_ID;
   END IF;