Ejemplo n.º 1
0
 /// <summary>
 /// Check BP
 /// </summary>
 /// <param name="bp">bp bp</param>
 private void CheckBP(MBPartner bp)
 {
     AddLog(0, null, null, bp.GetName() + ":");
     //	See also VMerge.postMerge
     CheckPayments(bp);
     CheckInvoices(bp);
     //
     bp.SetTotalOpenBalance();
     bp.SetActualLifeTimeValue();
     bp.Save();
     //
     //	if (bp.getSO_CreditUsed().signum() != 0)
     AddLog(0, null, bp.GetSO_CreditUsed(), Msg.GetElement(GetCtx(), "SO_CreditUsed"));
     AddLog(0, null, bp.GetTotalOpenBalance(), Msg.GetElement(GetCtx(), "TotalOpenBalance"));
     AddLog(0, null, bp.GetActualLifeTimeValue(), Msg.GetElement(GetCtx(), "ActualLifeTimeValue"));
     //
     Commit();
 }       //	checkBP