Skip to content

Instantly share code, notes, and snippets.

@elyphas
Created June 26, 2019 00:53
Show Gist options
  • Save elyphas/16db0395848316885bf6a8838e277b42 to your computer and use it in GitHub Desktop.
Save elyphas/16db0395848316885bf6a8838e277b42 to your computer and use it in GitHub Desktop.
val colsFmt = Seq(
ValCol(col = 1, field = "cve_oficina", title = "Cve. Oficina", styleTitle = Seq(width := "50px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 2, field = "ejercicio", title = "Ejercicio", styleTitle = Seq(width := "70px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 3, field = "folio", title = "Folio Partida", styleTitle = Seq(width := "50px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 4, field = "renglon", title = "Renglon", styleTitle = Seq(width := "50px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 5, field = "partida", title = "Partida", styleTitle = Seq(width := "70px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 6, field = "descripcion_partida", title = "Descripcion Partida", styleTitle = Seq(width := "50px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 7, field = "cve_articulo", title = "Cve Articulo", styleTitle = Seq(width := "50px"), styleCell = Seq( contentEditable:=true, textAlign := "center")),
ValCol(col = 8, field = "descripcion_articulo", title = "Descripcion Articulo", styleTitle = Seq(width := "75px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 9, field = "unidad", title = "Unidad", styleTitle = Seq(width := "50px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 10, field = "presentacion", title = "Presentacion", styleTitle = Seq(width := "80px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 11, field = "unid_med_pres", title = "Unid Medida Pres.", styleTitle = Seq(width := "80px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 12, field = "cantidad", title = "Cantidad", styleTitle = Seq(width := "80px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 13, field = "precio", title = "Precio", styleTitle = Seq(width := "70px"), styleCell = Seq(textAlign := "right"), typeNumber = "money"),
ValCol(col = 14, field = "subtotal", title = "SubTotal", styleTitle = Seq(width := "70px"), styleCell = Seq(textAlign := "right"), typeNumber = "money"),
ValCol(col = 15, field = "iva_monto", title = "I.V.A.", styleTitle = Seq(width := "70px"), styleCell = Seq(textAlign := "center")),
ValCol(col = 16, field = "total", title = "Total", styleTitle = Seq(width := "70px"), styleCell = Seq(textAlign := "right"), typeNumber = "money"),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment