if(discount != 0.0f){
//String parcelPaymenBillPlanCategoryReversal = "2.1.4.4";
//Operation operationReversal = (Operation) system.executeAndQuery(new AddAndReturnOperation(accountId, parcelPaymenBillPlanCategoryReversal, payDate, desc + registration.getStudent().getName(), discount, parcel, receivedValue.getFloatValue()));
//operationReversal.setCategoryId(parcelPaymenBillPlanCategoryReversal);
//system.execute(new AccountAmountControl(accountId, payValue, 0));
system.execute(new AddLinkedOperation(operation));
}
// }else{
// system.executeAndQuery(new AddAndReturnOperation(system.getRegisterMachine(), parcelPaymenBillPlanCategory, payDate, "Mensalidade de "+ registration.getStudent().getName(), payValue, parcel));
// system.execute(new AccountAmountControl(system.getRegisterMachine().getId(), payValue, 0));
// }