Skip to content

Commit

Permalink
Merge branch 'release/v0.0.92'
Browse files Browse the repository at this point in the history
* release/v0.0.92:
  feat: restrcit monthly revenue read perm
  feat: get list invoices
  • Loading branch information
namnhce committed Apr 25, 2023
2 parents 1c28f1e + efd6649 commit dc9ca15
Show file tree
Hide file tree
Showing 28 changed files with 1,083 additions and 1,058 deletions.
259 changes: 121 additions & 138 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,7 @@ const docTemplate = `{
}
}
},
"/invoices/latest": {
"/invoices": {
"get": {
"description": "Get latest invoice by project id",
"consumes": [
Expand All @@ -2165,15 +2165,20 @@ const docTemplate = `{
"type": "string",
"description": "projectID",
"name": "projectID",
"in": "query",
"required": true
"in": "query"
},
{
"type": "string",
"description": "status",
"name": "status",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/view.GetLatestInvoiceResponse"
"$ref": "#/definitions/view.InvoiceListResponse"
}
},
"400": {
Expand Down Expand Up @@ -6506,132 +6511,6 @@ const docTemplate = `{
}
}
},
"model.Invoice": {
"type": "object",
"properties": {
"bank": {
"$ref": "#/definitions/model.BankAccount"
},
"bankID": {
"type": "string"
},
"cc": {
"type": "array",
"items": {
"type": "integer"
}
},
"conversionAmount": {
"type": "integer"
},
"conversionRate": {
"type": "number"
},
"createdAt": {
"type": "string"
},
"deletedAt": {
"$ref": "#/definitions/gorm.DeletedAt"
},
"description": {
"type": "string"
},
"discount": {
"type": "integer"
},
"dueAt": {
"type": "string"
},
"email": {
"type": "string"
},
"errorInvoiceID": {
"type": "string"
},
"failedAt": {
"type": "string"
},
"id": {
"type": "string"
},
"invoiceFileContent": {
"description": "we not store this in db",
"type": "array",
"items": {
"type": "integer"
}
},
"invoiceFileURL": {
"type": "string"
},
"invoicedAt": {
"type": "string"
},
"lineItems": {
"type": "array",
"items": {
"type": "integer"
}
},
"messageID": {
"type": "string"
},
"month": {
"type": "integer"
},
"note": {
"type": "string"
},
"number": {
"type": "string"
},
"paidAt": {
"type": "string"
},
"project": {
"$ref": "#/definitions/model.Project"
},
"projectID": {
"type": "string"
},
"references": {
"type": "string"
},
"scheduledDate": {
"type": "string"
},
"sender": {
"$ref": "#/definitions/model.Employee"
},
"sentBy": {
"type": "string"
},
"status": {
"type": "string"
},
"subTotal": {
"type": "integer"
},
"tax": {
"type": "integer"
},
"threadID": {
"type": "string"
},
"todoAttachment": {
"type": "string"
},
"total": {
"type": "integer"
},
"updatedAt": {
"type": "string"
},
"year": {
"type": "integer"
}
}
},
"model.LikertScaleCount": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -10190,14 +10069,6 @@ const docTemplate = `{
}
}
},
"view.GetLatestInvoiceResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/model.Invoice"
}
}
},
"view.GetListClientResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -10384,6 +10255,107 @@ const docTemplate = `{
}
}
},
"view.InvoiceData": {
"type": "object",
"properties": {
"bankAccount": {
"$ref": "#/definitions/view.BankAccount"
},
"bankID": {
"type": "string"
},
"cc": {
"type": "array",
"items": {
"type": "string"
}
},
"client": {
"$ref": "#/definitions/view.ClientInfo"
},
"companyInfo": {
"$ref": "#/definitions/view.CompanyInfo"
},
"conversionAmount": {
"type": "integer"
},
"conversionRate": {
"type": "number"
},
"description": {
"type": "string"
},
"discount": {
"type": "integer"
},
"dueAt": {
"type": "string"
},
"email": {
"type": "string"
},
"errorInvoiceID": {
"type": "string"
},
"failedAt": {
"type": "string"
},
"invoiceFileURL": {
"type": "string"
},
"invoicedAt": {
"type": "string"
},
"lineItems": {
"type": "array",
"items": {
"$ref": "#/definitions/view.InvoiceItem"
}
},
"month": {
"type": "integer"
},
"note": {
"type": "string"
},
"number": {
"type": "string"
},
"paidAt": {
"type": "string"
},
"projectID": {
"type": "string"
},
"projectName": {
"type": "string"
},
"scheduledDate": {
"type": "string"
},
"sentBy": {
"type": "string"
},
"status": {
"type": "string"
},
"subTotal": {
"type": "integer"
},
"tax": {
"type": "integer"
},
"threadID": {
"type": "string"
},
"total": {
"type": "integer"
},
"year": {
"type": "integer"
}
}
},
"view.InvoiceItem": {
"type": "object",
"properties": {
Expand All @@ -10407,6 +10379,17 @@ const docTemplate = `{
}
}
},
"view.InvoiceListResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/view.InvoiceData"
}
}
}
},
"view.InvoiceTemplateResponse": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit dc9ca15

Please sign in to comment.