attribute2dbField.put("itemYearACC05","ITEM_YEAR");
attribute2dbField.put("itemDateACC05","ITEM_DATE");
attribute2dbField.put("descriptionACC05","DESCRIPTION");
Response res = org.jallinone.commons.server.QueryUtilExtension.insertTable(
conn,
new UserSessionParameters(username),
vo,
"ACC05_JOURNAL_HEADER",
attribute2dbField,
"Y",
"N",
null,
true
);
if (res.isError())
throw new Exception(res.getErrorMessage());
// insert into ACC06...
attribute2dbField.clear();
attribute2dbField.put("companyCodeSys01ACC06","COMPANY_CODE_SYS01");
attribute2dbField.put("progressiveAcc05ACC06","PROGRESSIVE_ACC05");
attribute2dbField.put("itemYearAcc05ACC06","ITEM_YEAR_ACC05");
attribute2dbField.put("progressiveACC06","PROGRESSIVE");
attribute2dbField.put("debitAmountACC06","DEBIT_AMOUNT");
attribute2dbField.put("creditAmountACC06","CREDIT_AMOUNT");
attribute2dbField.put("accountCodeTypeACC06","ACCOUNT_CODE_TYPE");
attribute2dbField.put("accountCodeACC06","ACCOUNT_CODE");
attribute2dbField.put("accountCodeAcc02ACC06","ACCOUNT_CODE_ACC02");
attribute2dbField.put("descriptionACC06","DESCRIPTION");
JournalRowVO rowVO = null;
for(int i=0;i<vo.getJournalRows().size();i++) {
rowVO = (JournalRowVO)vo.getJournalRows().get(i);
rowVO.setProgressiveAcc05ACC06(vo.getProgressiveACC05());
rowVO.setProgressiveACC06(CompanyProgressiveUtils.getConsecutiveProgressive(
vo.getCompanyCodeSys01ACC05(),
"ACC06_JOURNAL_ROWS",
"PROGRESSIVE",
conn
));
res = org.jallinone.commons.server.QueryUtilExtension.insertTable(
conn,
new UserSessionParameters(username),
rowVO,
"ACC06_JOURNAL_ROWS",
attribute2dbField,
"Y",
"N",