implement Gehaltsaufstellung dyflexis data access
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package genpdf
|
||||
|
||||
import (
|
||||
excelread "business-engine/internal/excel_read"
|
||||
domain "business-engine/internal/domain"
|
||||
"fmt"
|
||||
"slices"
|
||||
"time"
|
||||
@@ -35,7 +35,7 @@ func (item LineItem) Total() float64 {
|
||||
return item.Anzahl * item.Betrag
|
||||
}
|
||||
|
||||
func GenerateSalaryStatement(stmt excelread.PayrollStatement, filename string, month time.Time) error {
|
||||
func GenerateSalaryStatement(stmt domain.PayrollStatement, filename string, month time.Time) error {
|
||||
pdf := fpdf.New("P", "mm", "A4", "")
|
||||
pdf.AddUTF8Font("DejaVu", "", "DejaVuSans.ttf")
|
||||
pdf.AddUTF8Font("DejaVu", "B", "DejaVuSans-Bold.ttf")
|
||||
@@ -86,7 +86,7 @@ func GenerateSalaryStatement(stmt excelread.PayrollStatement, filename string, m
|
||||
return nil
|
||||
}
|
||||
|
||||
func genLineItemsFromStatement(stmt excelread.PayrollStatement) []LineItem {
|
||||
func genLineItemsFromStatement(stmt domain.PayrollStatement) []LineItem {
|
||||
var items []LineItem
|
||||
|
||||
// --- Gehalt & Stunden ---
|
||||
|
||||
Reference in New Issue
Block a user