Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
Update function
  • Loading branch information
gowizzard authored Jan 28, 2022
2 parents 9f76771 + e878f18 commit db8b2d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invoices.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type InvoiceBodyLineItems struct {
Type string `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
Quantity int `json:"quantity"`
Quantity float64 `json:"quantity"`
UnitName string `json:"unitName"`
UnitPrice InvoiceBodyUnitPrice `json:"unitPrice"`
DiscountPercentage int `json:"discountPercentage"`
Expand Down Expand Up @@ -150,7 +150,7 @@ func Invoice(id, token string) (InvoiceBody, error) {
}

// AddInvoice is to create a invoice
func AddInvoice(body *InvoiceBody, token string) (InvoiceReturn, error) {
func AddInvoice(body InvoiceBody, token string) (InvoiceReturn, error) {

// Convert body
convert, err := json.Marshal(body)
Expand Down

0 comments on commit db8b2d3

Please sign in to comment.