feat: implementado todo lo de auditoria tocaria testearlo nomás
This commit is contained in:
@@ -27,7 +27,7 @@ public class RepositorioCanons: RepositorioBase<RepositorioCanons> {
|
||||
return cc;
|
||||
}
|
||||
|
||||
public bool SetRecibo(Canon c, Recibo re) {
|
||||
public bool SetRecibo(Canon c, Recibo re, long dni) {
|
||||
var con = Context;
|
||||
var cc = con.Canons
|
||||
.Include(x=>x.Idcontratos)
|
||||
@@ -51,10 +51,12 @@ public class RepositorioCanons: RepositorioBase<RepositorioCanons> {
|
||||
ccc.IdpropiedadNavigation.Idestado = 3;
|
||||
}
|
||||
|
||||
GenerarLog(con, dni, $"Set Recibo");
|
||||
|
||||
return Guardar(con);
|
||||
}
|
||||
|
||||
public bool CrearCanons(decimal aumento, long idcontrato) {
|
||||
public bool CrearCanons(decimal aumento, long idcontrato, long dni) {
|
||||
var con = Context;
|
||||
|
||||
aumento/=100;
|
||||
@@ -86,6 +88,8 @@ public class RepositorioCanons: RepositorioBase<RepositorioCanons> {
|
||||
con.Canons.Add(c);
|
||||
cont.Idcanons.Add(c);
|
||||
}
|
||||
GenerarLog(con, dni, $"Crear Canones");
|
||||
|
||||
return Guardar(con);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user