Skip to content

Commit

Permalink
paymentTerms workaround (#155)
Browse files Browse the repository at this point in the history
* paymentTerms workaround
  • Loading branch information
gilgardosh authored Jul 26, 2023
1 parent c021034 commit b830360
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-insects-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@accounter-toolkit/green-invoice-graphql': minor
---

Schema minor updates: define updateExpense as mutation, workaround paymentTerms 0 value enum
2 changes: 1 addition & 1 deletion packages/green-invoice-graphql/.meshrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sources:
nullable: false
responseSchema: ../json-schemas/greenInvoice.json#/definitions/getExpenseResponse

- type: Query
- type: Mutation
field: updateExpense
path: /expenses/{args.id}
method: PUT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1486,8 +1486,7 @@
},
"paymentTerms": {
"type": "number",
"description": "The supplier payment term, default is 0",
"enum": [-1, 0, 10, 15, 30, 45, 60, 75, 90, 120]
"description": "The supplier payment term, default is 0"
},
"bankName": {
"type": "string",
Expand Down

0 comments on commit b830360

Please sign in to comment.