-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add quote taxes #1635
Add quote taxes #1635
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on the docs side
readOnly: true | ||
items: | ||
type: array | ||
description: Taxes that are applied to this invoice and calculated based on the `taxCategoryId` of the related product. | ||
description: Taxes applied and calculated based on the `taxCategoryId` of the related product. | ||
items: | ||
allOf: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why allOf
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -12,11 +12,11 @@ properties: | |||
type: integer | |||
x-type: Money | |||
x-sortable: true | |||
description: Total amount of all invoice taxes. | |||
description: Total amount of all taxes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Total amount of all taxes. | |
description: Total amount of taxes. |
description: Invoice taxes. | ||
allOf: | ||
- $ref: ./Taxes/Taxes.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use the description from the Taxes.yaml object everywhere throughout and not try to override the description with allOf
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need two schemas.
@@ -1,33 +1,33 @@ | |||
allOf: | |||
- properties: | |||
rate: | |||
readOnly: true | |||
readOnly: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allOf
does not override. This is not valid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
Summary
Add taxes to Quote, rearrange tax files. So, invoice and quote will have the same tax object (with some readonly properties), CreditMemo will have tax with all writable properties.
Preview
Checklist