Fix: Inserta Pagos SP Id_Cliente (0) y Id_TipoIva (5) - Feat: Google Analytics Tag

This commit is contained in:
2026-03-18 14:55:26 -03:00
parent 37869fa8b4
commit dd4b32dd7e
3 changed files with 26 additions and 15 deletions

View File

@@ -156,7 +156,7 @@ public class AvisosLegacyService : IAvisosLegacyService
{
new SqlParameter("@tipo", dto.Tipo),
new SqlParameter("@nro_operacion", dto.NroOperacion),
new SqlParameter("@id_cliente", dto.IdCliente),
new SqlParameter("@id_cliente", 0), // Siempre debe ser 0 para inserciones web
new SqlParameter("@tipodoc", dto.Tipodoc),
new SqlParameter("@nro_doc", dto.NroDoc),
new SqlParameter("@razon", dto.Razon),

View File

@@ -98,7 +98,7 @@ public class LegacyPaymentService : ILegacyPaymentService
var p = new DynamicParameters();
p.Add("@tipo", ad.VehicleTypeID == 1 ? "A" : "M");
p.Add("@nro_operacion", tx.TransactionID);
p.Add("@id_cliente", ad.UserID);
p.Add("@id_cliente", 0);
p.Add("@tipodoc", 96);
p.Add("@nro_doc", "0");
p.Add("@razon", $"{ad.User.FirstName} {ad.User.LastName}".Trim().ToUpper());
@@ -108,7 +108,7 @@ public class LegacyPaymentService : ILegacyPaymentService
p.Add("@codigopostal", "1900");
p.Add("@telefono", ad.ContactPhone ?? "");
p.Add("@email", ad.User.Email);
p.Add("@id_tipoiva", 1);
p.Add("@id_tipoiva", 5);
p.Add("@porcentaje_iva1", 10.5m);
p.Add("@porcentaje_iva2", 0);
p.Add("@porcentaje_percepcion", 0);

View File

@@ -1,14 +1,25 @@
<!doctype html>
<html lang="en">
<head>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XTD4SD01DV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-XTD4SD01DV');
</script>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo-ma.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Motores Argentinos</title>
<script src="https://sdk.mercadopago.com/js/v2"></script>
</head>
<body>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</body>
</html>