Cambios en el documento de exportación
This commit is contained in:
@@ -976,6 +976,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
||||
string Patente = DTExportaciones.FiltroPrimeroValor("Patente");
|
||||
string AgenteExt = DTExportaciones.FiltroPrimeroValor("AgenteExt");
|
||||
string TaxId = DTExportaciones.FiltroPrimeroValor("TaxId");
|
||||
string Notas = DTExportaciones.FiltroPrimeroValor("Notas");
|
||||
|
||||
List <ReportParameter> para = new List<ReportParameter>();
|
||||
para.Add(new ReportParameter("CveExportacion", CveExportacion.ToString()));
|
||||
@@ -1040,6 +1041,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
||||
para.Add(new ReportParameter("Patente", Patente));
|
||||
para.Add(new ReportParameter("AgenteExt", AgenteExt));
|
||||
para.Add(new ReportParameter("TaxId", TaxId));
|
||||
para.Add(new ReportParameter("Notas", Notas));
|
||||
|
||||
List <ReportDataSource> lrds = new List<ReportDataSource>();
|
||||
ReportDataSource RDSExportaciones = new ReportDataSource();
|
||||
@@ -1058,12 +1060,14 @@ public partial class Export_ExpDetalle : ClsPaginas
|
||||
DTPartidas.Columns.Add("ValorUnitarioMN", typeof(decimal));
|
||||
DTPartidas.Columns["ValorUnitarioUSD"].DefaultValue = 0.0m;
|
||||
DTPartidas.Columns["ValorUnitarioMN"].DefaultValue = 0.0m;
|
||||
DataRow RowPartida = DTPartidas.Rows[0];
|
||||
decimal cantidad = Convert.ToDecimal(RowPartida["Cantidad"]);
|
||||
if (cantidad > 0)
|
||||
foreach (DataRow row in DTPartidas.Rows)
|
||||
{
|
||||
RowPartida["ValorUnitarioUSD"] = Convert.ToDecimal(RowPartida["Precio"]) / cantidad;
|
||||
RowPartida["ValorUnitarioMN"] = Convert.ToDecimal(RowPartida["ValorTotalMXP"]) / cantidad;
|
||||
decimal cantidad = Convert.ToDecimal(row["Cantidad"]);
|
||||
if (cantidad > 0)
|
||||
{
|
||||
row["ValorUnitarioUSD"] = Convert.ToDecimal(row["Precio"]) / cantidad;
|
||||
row["ValorUnitarioMN"] = Convert.ToDecimal(row["ValorTotalMXP"]) / cantidad;
|
||||
}
|
||||
}
|
||||
ReportDataSource RDSPartidas = new ReportDataSource();
|
||||
RDSPartidas.Name = "DsPartidas";
|
||||
|
||||
Reference in New Issue
Block a user