static void ClearStatement(Args _args)
{
RetailStatementTable statementTable;
while select forUpdate statementTable
order by calculatedDate desc
where (statementTable.storeId == '092')
//&& statementTable.statementId > '091-000311'//mkDate(20,12,2018)
{
statementTable.unmarkTransactions();
statementTable.unmarkPosBatches();
ttsBegin;
statementTable.recalculate = NoYes::No;
statementTable.calculatedDate = dateNull();
statementTable.CalculatedLines = 0;
statementTable.calculatedTime = 0;
//statementTable.stmtCalcInfoLog = "";
//statementTable.stmtPostInfoLog = "";
statementTable.doUpdate();
ttsCommit;
}
info("Done");
}
{
RetailStatementTable statementTable;
while select forUpdate statementTable
order by calculatedDate desc
where (statementTable.storeId == '092')
//&& statementTable.statementId > '091-000311'//mkDate(20,12,2018)
{
statementTable.unmarkTransactions();
statementTable.unmarkPosBatches();
ttsBegin;
statementTable.recalculate = NoYes::No;
statementTable.calculatedDate = dateNull();
statementTable.CalculatedLines = 0;
statementTable.calculatedTime = 0;
//statementTable.stmtCalcInfoLog = "";
//statementTable.stmtPostInfoLog = "";
statementTable.doUpdate();
ttsCommit;
}
info("Done");
}