Commit inicial: fuentes MBS ERP (Genero 6) + .gitignore + docs/SETUP_PC_MBS.md

This commit is contained in:
2026-08-18 20:59:52 -04:00
commit 454973e269
5978 changed files with 2664094 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
select UNIQUE a.tipo,a.num_oc,a.fech_oc,b.nom_sp,a.c_flete,a.otros_g,
SUM(d.cantidad * d.precio)
FROM cotb00014 a,cotb00001 b,cotb00015 d
WHERE b.cod_sp = a.cod_sp AND b.cod_sp_sec = a.cod_sp_sec AND
a.num_oc = d.num_oc AND a.tipo = d.tipo AND
a.fech_oc between "010197" AND "120897" AND
a.tipo = a.tipo AND a.cod_sp_sec = a.cod_sp_sec AND
a.status_t is null
GROUP BY 1,2,3,4,5,6
ORDER BY 1,2