Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void RecibosPercepciones()
- {
- CultureInfo ci2 = new CultureInfo("es-ES");
- String dia = ci2.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek).ToString();
- if (dia == "lunes")
- {
- IEnumerable<Registro_Percepciones2> RP = new Registro_Percepciones2().GetAll();
- foreach(var item in RP)
- {
- if (item.Pagos_Realizados != item.No_Pagos)
- {
- new Detalle_RPercerciones()
- {
- Folio = folp,
- id_RPercepciones = item.idRegistroP,
- Monto = item.Monto / item.No_Pagos
- }.Insert();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement