20 lines
486 B
Plaintext
20 lines
486 B
Plaintext
{
|
|
FUNCION : ambienteFacturacion
|
|
OBETIVO : Identificar el ambiente a enviar los XML a la dgii
|
|
DESARROLLADO POR: Ing. Juan Soto
|
|
FECHA : 14/02/2026
|
|
|
|
}
|
|
|
|
FUNCTION ambiente()
|
|
DEFINE qcompania STRING,
|
|
ambiente VARCHAR(50)
|
|
|
|
LET qcompania = "select a.ambienteDgii FROM marmotech.dbo.companias a"
|
|
|
|
PREPARE bcompania FROM qcompania
|
|
EXECUTE bcompania INTO ambiente
|
|
|
|
RETURN ambiente
|
|
|
|
END FUNCTION |