示例#1
0
void mmReportBudget::AdjustYearValues(int& day, int& month, wxDateTime& date)
{
    if (mmIniOptions::instance().budgetFinancialYears_) {
        GetFinancialYearValues(day, month);
        SetDateToEndOfYear(day, month, date, false);
    }
}
示例#2
0
void mmReportBudget::AdjustYearValues(int day, int month, wxDateTime& date) const
{
    if (Option::instance().getBudgetFinancialYears())
    {
        GetFinancialYearValues(day, month);
        SetDateToEndOfYear(day, month, date, false);
    }
}
示例#3
0
void mmReportBudget::AdjustDateForEndFinancialYear(wxDateTime& date) const
{
    if (Option::instance().getBudgetFinancialYears())
    {
        int day, month;
        GetFinancialYearValues(day, month);
        SetDateToEndOfYear(day, month, date);
    }
}
示例#4
0
void mmReportBudget::AdjustDateForEndFinancialYear(wxDateTime& date)
{
    if (mmIniOptions::instance().budgetFinancialYears_)
    {
        int day, month;
        GetFinancialYearValues(day, month);
        SetDateToEndOfYear(day, month, date);
    }
}
示例#5
0
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;
}
示例#6
0
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;
}