UniqNumGenerator a = new UniqNumGenerator();
String UniqKey="Act_Id";
if (SetupInfo.getBoolProperty(SetupInfo.SHOW_PERIOD_ID))
UniqKey="PeriodId="+ (Date) cc.comboBoxPeriod.getSelectedItemsKey() + "-"
+(Date) cc.comboBoxPeriod.getSelectedItemsSecondaryKey();
iActId = new Integer(a.ViewNextAvailableNumber(UniqKey, 1, 999999999, compId));
lableTransaction.setText(IntegerField.ConvertIntToLocalizedString(iActId));
clearTable();
TotalDebitAndCredit();
SetSelectionFirstNoEdit();
//repaints whole table