Fixed MatterQuantity typing issue.

This commit is contained in:
pooyarhz99 2025-09-07 15:30:21 +03:30
parent 274f96df3e
commit 59c8720312
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ COPY --from=builder /app/.env.example ./.env.example
# COPY --from=builder /app/certs ./certs
# Expose the default port (can be overridden by env or flag)
EXPOSE 1404
EXPOSE 144
# Entrypoint
ENTRYPOINT ["/app/iralex-einvoice"]
ENTRYPOINT ["/app/iralex-einvoice"]

View File

@ -89,7 +89,7 @@ type IralexBillDataRow struct {
MatterRowNumber string `json:"matterRowNumber"`
MatterTitle string `json:"matterTitle"`
MatterHours float64 `json:"matterHours"`
MatterQuantity *float64 `json:"matterQuantity"`
MatterQuantity *interface{} `json:"matterQuantity"` // could be either `float` or `string`
MatterTotal float64 `json:"matterTotal"`
TimeEntries []IralexTimeEntry `json:"time_entries"`
ExpenseEntries []interface{} `json:"expense_entries"`