Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -327,21 +327,21 @@ func drawStatementAgingPDF(pdf *gofpdf.Fpdf, p models.StatementAgingParams, mast
|
||||
pdf.SetFont("dejavu", "B", 15)
|
||||
pdf.SetTextColor(colorPrimary[0], colorPrimary[1], colorPrimary[2])
|
||||
pdf.SetXY(marginL, marginT)
|
||||
pdf.CellFormat(150, 7, "Cari Yaşlandırmalı Ekstre", "", 0, "L", false, 0, "")
|
||||
pdf.CellFormat(150, 7, sanitizePDFText("Cari Yaşlandırmalı Ekstre"), "", 0, "L", false, 0, "")
|
||||
|
||||
pdf.SetFont("dejavu", "", 9)
|
||||
pdf.SetTextColor(20, 20, 20)
|
||||
pdf.SetXY(pageW-marginR-95, marginT+1)
|
||||
pdf.CellFormat(95, 5, "Son Tarih: "+p.EndDate, "", 0, "R", false, 0, "")
|
||||
pdf.CellFormat(95, 5, sanitizePDFText("Son Tarih: "+p.EndDate), "", 0, "R", false, 0, "")
|
||||
pdf.SetXY(pageW-marginR-95, marginT+6)
|
||||
pdf.CellFormat(95, 5, "Cari: "+p.AccountCode, "", 0, "R", false, 0, "")
|
||||
pdf.CellFormat(95, 5, sanitizePDFText("Cari: "+p.AccountCode), "", 0, "R", false, 0, "")
|
||||
|
||||
mode := "1_2"
|
||||
if len(p.Parislemler) > 0 {
|
||||
mode = strings.Join(p.Parislemler, ",")
|
||||
}
|
||||
pdf.SetXY(pageW-marginR-95, marginT+11)
|
||||
pdf.CellFormat(95, 5, "Parasal İşlem: "+mode, "", 0, "R", false, 0, "")
|
||||
pdf.CellFormat(95, 5, sanitizePDFText("Parasal İşlem: "+mode), "", 0, "R", false, 0, "")
|
||||
|
||||
pdf.SetDrawColor(colorPrimary[0], colorPrimary[1], colorPrimary[2])
|
||||
pdf.Line(marginL, marginT+16, pageW-marginR, marginT+16)
|
||||
@@ -362,7 +362,7 @@ func drawStatementAgingPDF(pdf *gofpdf.Fpdf, p models.StatementAgingParams, mast
|
||||
for i, c := range cols {
|
||||
pdf.Rect(x, y, widths[i], h, "DF")
|
||||
pdf.SetXY(x+0.8, y+1.0)
|
||||
pdf.CellFormat(widths[i]-1.6, h-2.0, c, "", 0, "C", false, 0, "")
|
||||
pdf.CellFormat(widths[i]-1.6, h-2.0, sanitizePDFText(c), "", 0, "C", false, 0, "")
|
||||
x += widths[i]
|
||||
}
|
||||
pdf.SetY(y + h)
|
||||
@@ -387,7 +387,7 @@ func drawStatementAgingPDF(pdf *gofpdf.Fpdf, p models.StatementAgingParams, mast
|
||||
align = "C"
|
||||
}
|
||||
pdf.SetXY(x+0.8, y+0.8)
|
||||
pdf.CellFormat(widths[i]-1.6, h-1.6, v, "", 0, align, false, 0, "")
|
||||
pdf.CellFormat(widths[i]-1.6, h-1.6, sanitizePDFText(v), "", 0, align, false, 0, "")
|
||||
x += widths[i]
|
||||
}
|
||||
pdf.SetY(y + h)
|
||||
|
||||
Reference in New Issue
Block a user