Skip to content
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 more Purchase & Sale endpoints #88

Merged
merged 2 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 50 additions & 6 deletions myob/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,24 @@
(DELETE, '', 'sale customer payment'),
]
},
'Sale/CreditRefund/': {
'name': 'credit_refunds',
'methods': [
(ALL, '', 'sale credit refund'),
(GET, '', 'sale credit refund'),
(POST, '', 'sale credit refund'),
(DELETE, '', 'sale credit refund'),
]
},
'Sale/CreditSettlement/': {
'name': 'credit_settlements',
'methods': [
(ALL, '', 'sale credit settlement'),
(GET, '', 'sale credit settlement'),
(POST, '', 'sale credit settlement'),
(DELETE, '', 'sale credit settlement'),
]
},
'Sale/Invoice/': {
'name': 'invoices',
'methods': [
Expand All @@ -45,6 +63,7 @@
(CRUD, 'Service/', 'service type sale invoice'),
]
},

'Sale/Order/': {
'name': 'orders',
'methods': [
Expand Down Expand Up @@ -86,22 +105,47 @@
(CRUD, 'Adjustment/', 'inventory adjustment')
]
},
'Purchase/Bill/': {
'name': 'purchase_bills',
'methods': [
(ALL, '', 'purchase bill type'),
(CRUD, 'Item/', 'item type purchase bill'),
(CRUD, 'Service/', 'service type purchase bill'),
(CRUD, 'Miscellaneous/', 'miscellaneous type purchase bill'),
]
},
'Purchase/DebitRefund/': {
'name': 'debit_refunds',
'methods': [
(ALL, '', 'purchase debit refund'),
(GET, '', 'purchase debit refund'),
(POST, '', 'purchase debit refund'),
(DELETE, '', 'purchase debit refund'),
]
},
'Purchase/DebitSettlement/': {
'name': 'debit_settlements',
'methods': [
(ALL, '', 'purchase debit settlement'),
(GET, '', 'purchase debit settlement'),
(POST, '', 'purchase debit settlement'),
(DELETE, '', 'purchase debit settlement'),
]
},
'Purchase/Order/': {
'name': 'purchase_orders',
'methods': [
(ALL, '', 'purchase order type'),
(CRUD, 'Item/', 'item type purchase order'),
]
},
'Purchase/Bill/': {
'name': 'purchase_bills',
'Purchase/SupplierPayment/': {
'name': 'supplier_payments',
'methods': [
(ALL, '', 'purchase bill type'),
(CRUD, 'Item/', 'item type purchase bill'),
(CRUD, 'Service/', 'service type purchase bill'),
(CRUD, 'Miscellaneous/', 'miscellaneous type purchase bill'),
(CRUD, '', 'purchase supplier payment'),
]
},

'Company/': {
'name': 'company',
'methods': [
Expand Down
Loading
Loading