Skip to content

Commit 709e1ea

Browse files
committed
fix(excel): borders on result rows
1 parent 8f58ae1 commit 709e1ea

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

excel/result.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,8 @@ func xlsxSumSumMonths(xlsx *excelize.File, sheet string, row int, starts, ends t
450450
scol += 3
451451
}
452452

453-
style, _ = xlsx.NewStyle(mergeStyles(defaultStyle(), fontBold(), customNumberFormat()))
453+
style, _ = xlsx.NewStyle(mergeStyles(defaultStyle(), fontBold(), customNumberFormat(), thickBorder("top")))
454454
_ = xlsx.SetCellStyle(sheet, cell('B', row), cell(ecol, row), style)
455-
style, _ = xlsx.NewStyle(mergeStyles(defaultStyle(), fontBoldItalic(), customNumberFormat()))
456-
_ = xlsx.SetCellStyle(sheet, cell(ecol, row), cell(ecol, row), style)
457455

458456
// half year sums
459457

@@ -465,10 +463,8 @@ func xlsxSumSumMonths(xlsx *excelize.File, sheet string, row int, starts, ends t
465463
scol += 6
466464
}
467465

468-
style, _ = xlsx.NewStyle(mergeStyles(defaultStyle(), fontBold(), customNumberFormat(), thickBorder("bottom")))
466+
style, _ = xlsx.NewStyle(mergeStyles(defaultStyle(), fontBold(), customNumberFormat(), thickBorder("top", "bottom")))
469467
_ = xlsx.SetCellStyle(sheet, cell('B', row), cell(ecol, row), style)
470-
style, _ = xlsx.NewStyle(mergeStyles(defaultStyle(), fontBoldItalic(), customNumberFormat(), thickBorder("bottom")))
471-
_ = xlsx.SetCellStyle(sheet, cell(ecol, row), cell(ecol, row), style)
472468

473469
// eget kapital
474470

0 commit comments

Comments
 (0)