Commit a55b6b87 authored by Cristian Oneț's avatar Cristian Oneț
Browse files

Use the transaction's post date when printing a check.

parent 71b470da
......@@ -142,7 +142,7 @@ void KMMPrintCheckPlugin::slotPrintCheck()
checkHTML.replace("$INSTITUTION_POSTCODE", institution.postcode());
checkHTML.replace("$INSTITUTION_MANAGER", institution.manager());
// data about the transaction
checkHTML.replace("$DATE", KGlobal::locale()->formatDate(QDate::currentDate(), KLocale::LongDate));
checkHTML.replace("$DATE", KGlobal::locale()->formatDate((*it).transaction().postDate(), KLocale::LongDate));
checkHTML.replace("$CHECK_NUMBER", (*it).split().number());
checkHTML.replace("$PAYEE_NAME", file->payee((*it).split().payeeId()).name());
checkHTML.replace("$PAYEE_ADDRESS", file->payee((*it).split().payeeId()).address());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment