コード例 #1
0
ファイル: MTRecord.cpp プロジェクト: kazcw/Moneychanger
long MTRecord::GetPaymentPlanAmount()
{
    if (!IsPaymentPlan())
        return 0;

    OTPaymentPlan  thePlan;
    const OTString strPlan(GetContents().c_str());

    if (thePlan.LoadContractFromString(strPlan) &&
        thePlan.HasPaymentPlan())
        return thePlan.GetPaymentPlanAmount();
    return 0;
}