This commit is contained in:
skeris 2024-05-16 22:53:21 +03:00
parent 1b88590e49
commit 21ef86d6ab

@ -790,6 +790,10 @@ func (api *API2) SendReport(ctx echo.Context) error {
return api.error(ctx, http.StatusInternalServerError, "failed to read file")
}
if account.Name.Orgname == "" {
account.Name.Orgname = "Безымянное предприятие"
}
for _, tariff := range tariffs.RawDetails.Tariffs {
totalAmount := uint64(0)
for _, privilege := range tariff.Privileges {