--FIX Num cargos, abonos
This commit is contained in:
@@ -10415,8 +10415,9 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
sb.AppendLine($"{TipoReg2}{TipoOpe2}{ClaveMoneda}{ImporteTotal}{TipoCuenta}{Sucursal}{NumCuenta}{Espacio}");
|
sb.AppendLine($"{TipoReg2}{TipoOpe2}{ClaveMoneda}{ImporteTotal}{TipoCuenta}{Sucursal}{NumCuenta}{Espacio}");
|
||||||
|
|
||||||
//REGISTRO DE CARGOS O ABONOS INDIVIDUALES - IMPORTACIÓN
|
//REGISTRO DE CARGOS O ABONOS INDIVIDUALES - IMPORTACIÓN
|
||||||
int Count = 1;
|
int Count = 0;
|
||||||
|
|
||||||
|
decimal SumaImportes = 0;
|
||||||
foreach (DataRow dRow in DTNomina.Rows)
|
foreach (DataRow dRow in DTNomina.Rows)
|
||||||
{
|
{
|
||||||
var TipoReg3 = "3"; //Registro de Movtos. Individuales
|
var TipoReg3 = "3"; //Registro de Movtos. Individuales
|
||||||
@@ -10443,15 +10444,19 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
var Plazo = ""; // 00 - MISMO DIA , 24 HRS
|
var Plazo = ""; // 00 - MISMO DIA , 24 HRS
|
||||||
sb.AppendLine($"{TipoReg3}{TipoOpe3}{ClaveMoneda}{StrImporte}{StrTipoCuenta}{StrCuenta}{ReferenciaAlfa}{EspacioRefBen}{Beneficiario}{Inst3}{DescTEF}{ClaveBanco}{ReferenciaNum}{Plazo}00");
|
sb.AppendLine($"{TipoReg3}{TipoOpe3}{ClaveMoneda}{StrImporte}{StrTipoCuenta}{StrCuenta}{ReferenciaAlfa}{EspacioRefBen}{Beneficiario}{Inst3}{DescTEF}{ClaveBanco}{ReferenciaNum}{Plazo}00");
|
||||||
|
|
||||||
Count = Count + 1;
|
Count += 1;
|
||||||
|
SumaImportes += Importe;
|
||||||
}
|
}
|
||||||
|
|
||||||
//REGISTRO DE TOTALES - IMPORTACIÓN
|
//REGISTRO DE TOTALES - IMPORTACIÓN
|
||||||
var TipoReg4 = "4";
|
var TipoReg4 = "4";
|
||||||
|
// LOS ABONOS A LOS EMPLEADOS
|
||||||
var NumAbonos = Count.ToString("000000");
|
var NumAbonos = Count.ToString("000000");
|
||||||
var NumCargos = Count.ToString("000000");
|
//EL CARGO QUE SE LE HIZO A LA CUENTA DE LA EMPRESA
|
||||||
|
var NumCargos = (1).ToString("000000");
|
||||||
|
var StrImportes = SumaImportes.ToString("0000000000000000.00").Replace(".", "");
|
||||||
|
|
||||||
sb.AppendLine($"{TipoReg4}{ClaveMoneda}{NumAbonos}{ImporteTotal}{NumCargos}{ImporteTotal}");
|
sb.AppendLine($"{TipoReg4}{ClaveMoneda}{NumAbonos}{StrImportes}{NumCargos}{StrImportes}");
|
||||||
|
|
||||||
Response.Clear();
|
Response.Clear();
|
||||||
Response.ClearHeaders();
|
Response.ClearHeaders();
|
||||||
|
|||||||
Reference in New Issue
Block a user