You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB
JavaScript

// CONSTANTS
const ORIGIN_TABLE_NAME = "BASE DE DATOS";
const ORIGIN_VIEW_NAME = "Default View";
// Activate tables and views
const originTable = base.getTableByName(ORIGIN_TABLE_NAME);
const originView = base.getViewByName(originTable, ORIGIN_VIEW_NAME);
const replaceNames = {
"OrgVt": "ORG_VT",
"Nº doc.": "NUM_DOC",
"Factura": "FACTURA",
"Material": "MATERIAL",
"Texto breve de material": "TEXTO_BREVE_MATERIAL",
"Lote": "LOTE",
"Solic.": "CODE_SOLICITANTE",
"Agrup. Cliente": "AGRUPACION_CLIENTE",
"País Solic.": "PAIS_SOLICITANTE",
"Doc.vtas.": "DOCUMENTO_VENTAS",
"Entrega": "ENTREGA",
"Año Fact.": "ANO_FACTURA",
"Denomin.": "DENOMINACION",
"Sust.Activa": "SUSTANCIA_ACTIVA",
"Present.Concentr.": "PRESENTACION_CONCENTRACION",
"Nom.Cl.Final": "CLIENTE_FINAL",
"País CLF": "PAIS_CLIENTE_FINAL",
"Lote-prov.": "LOTE_PROVEEDOR",
"Nom.Prov.Lote": "NOM_PROVEEDOR_LOTE",
"Sector": "SECTOR",
"Dirección dest.me": "DIRECCION_DESTINO",
"N.I.F.com.": "NIF_COMUNITARIO",
"Nº Ped. Cliente cab": "NUM_PEDIDO_CLIENTE",
"Nom Dest.": "NOMBRE_DESTINATARIO",
}