public static bool ServiceDebtScout(debt_table debt) { if (debt == null) { return(false); } else { return(true); } }
public static decimal MainDebtHandler(int index, int client_id, int month) { List <active_debts> debts = getActiveDebtRecods(client_id); foreach (active_debts item in debts) { debt_table debt = getDebtRecordById((int)item.debt_id); if ((debt.service_id == index + 1) && (debt.month_id == month - 1)) { return((decimal)getDebtRecordById((int)item.debt_id).debt); } } return(-1); }
public static decimal getDebtCost(debt_table debt) => (decimal)debt.debt;