Billing: Calculate prices
This commit is contained in:
		@@ -689,7 +689,7 @@ namespace Elwig.Helpers {
 | 
			
		||||
                BEGIN
 | 
			
		||||
                    INSERT INTO payment_member (year, avnr, mgnr, net_amount)
 | 
			
		||||
                    VALUES (NEW.year, NEW.avnr, (SELECT mgnr FROM delivery WHERE (year, did) = (NEW.year, NEW.did)), NEW.amount)
 | 
			
		||||
                    ON CONFLICT DO UPDATE SET amount = amount + excluded.amount;
 | 
			
		||||
                    ON CONFLICT DO UPDATE SET net_amount = net_amount + excluded.net_amount;
 | 
			
		||||
                END;
 | 
			
		||||
                """);
 | 
			
		||||
            ExecuteNonQuery(cnx, """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user