generated from PenaSide/GolangTemplate
--
This commit is contained in:
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")
|
return api.error(ctx, http.StatusInternalServerError, "failed to read file")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if account.Name.Orgname == "" {
|
||||||
|
account.Name.Orgname = "Безымянное предприятие"
|
||||||
|
}
|
||||||
|
|
||||||
for _, tariff := range tariffs.RawDetails.Tariffs {
|
for _, tariff := range tariffs.RawDetails.Tariffs {
|
||||||
totalAmount := uint64(0)
|
totalAmount := uint64(0)
|
||||||
for _, privilege := range tariff.Privileges {
|
for _, privilege := range tariff.Privileges {
|
||||||
|
Loading…
Reference in New Issue
Block a user