package ru.bitel.bgbilling.modules.mps.paynet;
import java.math.BigDecimal;
import ru.bitel.bgbilling.kernel.script.server.dev.EventScriptBase;
import ru.bitel.bgbilling.modules.mps.server.events.MPSBeforePaymentEvent;
import ru.bitel.bgbilling.server.util.Setup;
import ru.bitel.common.sql.ConnectionSet;
public class ModifyPaymentSumm
extends EventScriptBase<MPSBeforePaymentEvent>
{
@Override
public void onEvent( MPSBeforePaymentEvent event1, Setup setup2, ConnectionSet connectionSet3 )
throws Exception
{
BigDecimal sum = event1.getPaymentSum();
sum = sum.multiply( new BigDecimal( 1.18 ) );
event1.setPaymentSum( sum );
}
} |