2026-01-30 01
This commit is contained in:
@@ -75,7 +75,9 @@ public partial class albaranes
|
||||
|
||||
public virtual municipios? CodigoMunicipioDescargaNavigation { get; set; }
|
||||
|
||||
public virtual ICollection<detallesalbaranes> detallesalbaranes { get; set; } = new List<detallesalbaranes>();
|
||||
public virtual ICollection<detallesalbaranes> detallesalbaranesidAlbaranNavigation { get; set; } = new List<detallesalbaranes>();
|
||||
|
||||
public virtual ICollection<detallesalbaranes> detallesalbaranesidAlbaranRecogidaNavigation { get; set; } = new List<detallesalbaranes>();
|
||||
|
||||
public virtual almacenes? idAlmacenDestinoNavigation { get; set; }
|
||||
|
||||
|
||||
@@ -25,9 +25,17 @@ public partial class detallesalbaranes
|
||||
|
||||
public bool IncluidoEnPresupuesto { get; set; }
|
||||
|
||||
public int? idAlbaranRecogida { get; set; }
|
||||
|
||||
public int? idUltimaFactura { get; set; }
|
||||
|
||||
public virtual albaranes idAlbaranNavigation { get; set; } = null!;
|
||||
|
||||
public virtual albaranes? idAlbaranRecogidaNavigation { get; set; }
|
||||
|
||||
public virtual articulos? idArticuloNavigation { get; set; }
|
||||
|
||||
public virtual productos idProductoNavigation { get; set; } = null!;
|
||||
|
||||
public virtual facturas? idUltimaFacturaNavigation { get; set; }
|
||||
}
|
||||
|
||||
@@ -77,6 +77,8 @@ public partial class facturas
|
||||
|
||||
public virtual municipios? CodigoMunicipioNavigation { get; set; }
|
||||
|
||||
public virtual ICollection<detallesalbaranes> detallesalbaranes { get; set; } = new List<detallesalbaranes>();
|
||||
|
||||
public virtual ICollection<detallesfacturas> detallesfacturas { get; set; } = new List<detallesfacturas>();
|
||||
|
||||
public virtual ICollection<documentosfacturas> documentosfacturas { get; set; } = new List<documentosfacturas>();
|
||||
|
||||
@@ -836,14 +836,23 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
|
||||
entity.HasIndex(e => e.idAlbaran, "detallesalbaranes_albaranes_idx");
|
||||
|
||||
entity.HasIndex(e => e.idAlbaranRecogida, "detallesalbaranes_albaranrecogida_idx");
|
||||
|
||||
entity.HasIndex(e => e.idArticulo, "detallesalbaranes_articulos_idx");
|
||||
|
||||
entity.HasIndex(e => e.idUltimaFactura, "detallesalbaranes_facturas_idx");
|
||||
|
||||
entity.HasIndex(e => e.idProducto, "detallesalbaranes_productos_idx");
|
||||
|
||||
entity.HasOne(d => d.idAlbaranNavigation).WithMany(p => p.detallesalbaranes)
|
||||
entity.HasOne(d => d.idAlbaranNavigation).WithMany(p => p.detallesalbaranesidAlbaranNavigation)
|
||||
.HasForeignKey(d => d.idAlbaran)
|
||||
.HasConstraintName("detallesalbaranes_albaranes");
|
||||
|
||||
entity.HasOne(d => d.idAlbaranRecogidaNavigation).WithMany(p => p.detallesalbaranesidAlbaranRecogidaNavigation)
|
||||
.HasForeignKey(d => d.idAlbaranRecogida)
|
||||
.OnDelete(DeleteBehavior.SetNull)
|
||||
.HasConstraintName("detallesalbaranes_albaranrecogida");
|
||||
|
||||
entity.HasOne(d => d.idArticuloNavigation).WithMany(p => p.detallesalbaranes)
|
||||
.HasForeignKey(d => d.idArticulo)
|
||||
.OnDelete(DeleteBehavior.SetNull)
|
||||
@@ -853,6 +862,11 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
.HasForeignKey(d => d.idProducto)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("detallesalbaranes_productos");
|
||||
|
||||
entity.HasOne(d => d.idUltimaFacturaNavigation).WithMany(p => p.detallesalbaranes)
|
||||
.HasForeignKey(d => d.idUltimaFactura)
|
||||
.OnDelete(DeleteBehavior.SetNull)
|
||||
.HasConstraintName("detallesalbaranes_facturas");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<detallesfacturas>(entity =>
|
||||
|
||||
@@ -4,18 +4,15 @@
|
||||
"ContextNamespace": null,
|
||||
"FilterSchemas": false,
|
||||
"IncludeConnectionString": false,
|
||||
"IrregularWords": null,
|
||||
"MinimumProductVersion": "2.6.1301",
|
||||
"ModelNamespace": null,
|
||||
"OutputContextPath": "dbcontext",
|
||||
"OutputPath": "db",
|
||||
"PluralRules": null,
|
||||
"PreserveCasingWithRegex": true,
|
||||
"ProjectRootNamespace": "bdGrupoSanchoToro",
|
||||
"Schemas": null,
|
||||
"SelectedHandlebarsLanguage": 2,
|
||||
"SelectedToBeGenerated": 0,
|
||||
"SingularRules": null,
|
||||
"T4TemplatePath": null,
|
||||
"Tables": [
|
||||
{
|
||||
|
||||
@@ -157,29 +157,29 @@ namespace bdGrupoSanchoToro.db
|
||||
public enum TipoAlbaranEnum : int
|
||||
{
|
||||
ENTREGA = 0,
|
||||
RECOGIDA = 1,
|
||||
CAMBIO_ALMACEN = 2,
|
||||
SUBALQUILER = 3,
|
||||
DEVOLUCION_SUBALQUILER = 4,
|
||||
STOCK_INICIAL_O_FABRICACION = 100,
|
||||
COMPRA = 101
|
||||
ENTREGA_DESDE_OBRA = 1,
|
||||
RECOGIDA = 2,
|
||||
CAMBIO_ALMACEN = 3,
|
||||
SUBALQUILER = 4,
|
||||
DEVOLUCION_SUBALQUILER = 5,
|
||||
REGULARIZACION_STOCK = 100,
|
||||
FABRICACION = 101,
|
||||
COMPRA = 102
|
||||
}
|
||||
public enum PrefijoAlbaranEnum : int
|
||||
{
|
||||
AENT = 0,
|
||||
AREC = 1,
|
||||
ACMA = 2,
|
||||
ASBA = 3,
|
||||
ADSA = 4,
|
||||
ASIOF = 100,
|
||||
ACMP = 101
|
||||
AE = 0,
|
||||
AEO =1,
|
||||
AR = 2,
|
||||
ACA = 3,
|
||||
AS = 4,
|
||||
ADS = 5,
|
||||
ARS = 100,
|
||||
AF = 101,
|
||||
AC = 102
|
||||
|
||||
}
|
||||
|
||||
public enum TipoImpresionAlbaranEntregaEnum : int
|
||||
{
|
||||
IMPRIMIR_CONTRATO = 0,
|
||||
IMPRIMIR_ALBARAN_NO_VALORADO = 1,
|
||||
IMPRIMIR_ALBARAN_VALORADO = 2,
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -75,7 +75,7 @@ namespace bdGrupoSanchoToro.db
|
||||
switch ((albaranes.TipoAlbaranEnum)this.idAlbaranNavigation.Tipo)
|
||||
{
|
||||
case albaranes.TipoAlbaranEnum.COMPRA:
|
||||
case albaranes.TipoAlbaranEnum.STOCK_INICIAL_O_FABRICACION:
|
||||
case albaranes.TipoAlbaranEnum.REGULARIZACION_STOCK:
|
||||
{
|
||||
this.ActStockPorAlmacen(bd, Factor, almd.idAlmacen, pr.idProducto);
|
||||
pr.UnidadesInicialesOFabricadas += this.Cantidad * (double)Factor;
|
||||
|
||||
Reference in New Issue
Block a user