void mmReportBudget::AdjustYearValues(int& day, int& month, wxDateTime& date) { if (mmIniOptions::instance().budgetFinancialYears_) { GetFinancialYearValues(day, month); SetDateToEndOfYear(day, month, date, false); } }
void mmReportBudget::AdjustYearValues(int day, int month, wxDateTime& date) const { if (Option::instance().getBudgetFinancialYears()) { GetFinancialYearValues(day, month); SetDateToEndOfYear(day, month, date, false); } }
void mmReportBudget::AdjustDateForEndFinancialYear(wxDateTime& date) const { if (Option::instance().getBudgetFinancialYears()) { int day, month; GetFinancialYearValues(day, month); SetDateToEndOfYear(day, month, date); } }
void mmReportBudget::AdjustDateForEndFinancialYear(wxDateTime& date) { if (mmIniOptions::instance().budgetFinancialYears_) { int day, month; GetFinancialYearValues(day, month); SetDateToEndOfYear(day, month, date); } }
wxString mmReportBudget::AdjustYearValues(int& day, int& month, long year, wxString yearStr) { if ((yearStr.length() < 5)) { if (mmIniOptions::instance().budgetFinancialYears_) { GetFinancialYearValues(day, month); yearStr = wxString::Format(_("Financial Year: %s - %i"), yearStr, (year + 1)); } else yearStr = wxString::Format(_("Year: %s"), yearStr); } else { yearStr = wxString::Format(_("Month: %s"), yearStr); } return yearStr; }
const wxString mmReportBudget::AdjustYearValues(int day, int month, long year, const wxString& yearStr) const { wxString ret = yearStr; if ((ret.length() < 5)) { if (Option::instance().getBudgetFinancialYears()) { GetFinancialYearValues(day, month); ret = wxString::Format(_("Financial Year: %s - %li"), yearStr, (year + 1)); } else { ret = wxString::Format(_("Year: %s"), yearStr); } } else { ret = wxString::Format(_("Month: %s"), yearStr); } return ret; }