ref #5 StyleSheet: soportar transformaciones
ref #5
con este diff
diff --git a/lib/axlsx_style_sheet.rb b/lib/axlsx_style_sheet.rb
index e9be76389..20e183616 100644
--- a/lib/axlsx_style_sheet.rb
+++ b/lib/axlsx_style_sheet.rb
@@ -2,6 +2,11 @@
# Stylesheet
AxlsxUtil::StyleSheet << {
+ transform: {
+ uppercase: AxlsxUtil::Transform(->(value) {
+ value.upcase
+ })
+ },
# Atoms
diff --git a/app/views/formularios/pof2020_v5/primaria/pof/_tabla5.xlsx.axlsx b/app/views/formularios/pof2020_v5/primaria/pof/_tabla5.xlsx.axlsx
index 41bf72080..3e23104e6 100644
--- a/app/views/formularios/pof2020_v5/primaria/pof/_tabla5.xlsx.axlsx
+++ b/app/views/formularios/pof2020_v5/primaria/pof/_tabla5.xlsx.axlsx
@@ -42,7 +42,7 @@ form.hash 'matricula.inicial.jardin' do |mat|
sh['V20'].to('AA20').merge!
sh['V20'].write 'Matrícula',
- style: sh.style('pof.pri.label')
+ style: sh.style('pof.pri.label', 'transform.uppercase')
sh['V21'].to('AA21').merge!
sh['V21'].write 'Asistencia media',