This commit is contained in:
skeris 2024-05-16 20:32:15 +03:00
parent 6c77fc2f04
commit 72788f8369
3 changed files with 2 additions and 2 deletions

Binary file not shown.

@ -791,7 +791,7 @@ func (api *API2) SendReport(ctx echo.Context) error {
totalAmount += privilege.Amount
}
data := models.RespGeneratorService{
DocNumber: historyMap[req.Id] + 1,
DocNumber: fmt.Sprint(historyMap[req.Id] + 1),
Date: time.Now().Format("2006-01-02"),
OrgTaxNum: verifuser.TaxNumber,
OrgName: models.Name{Orgname: "Orgname"},

@ -1,7 +1,7 @@
package models
type RespGeneratorService struct {
DocNumber int `json:"docnumber"`
DocNumber string `json:"docnumber"`
Date string `json:"date"`
OrgTaxNum string `json:"orgtaxnum"`
OrgName Name `json:"orgname"`