Skip to content

Conversation

@hadi-14
Copy link

@hadi-14 hadi-14 commented Oct 15, 2023

I have added some new api requests which I have tested. More could be added though

"""
ErplyAPI
~~~~~~~~
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep existing empty lines in the docstrings. Please check PEP 257.

,'getProducts'
,'getProductCategories'
,'getProductCostForSpecificAmount' # untested
,'getProductCostForSpecificAmount'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this API call?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

,'getSalesDocuments'
,'getServices'
,'getWarehouses'
,'getAllowedWarehouses'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This list is supposed to be alphabetically ordered.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry For that

)
ERPLY_CSV = ('getProductStockCSV', 'getSalesReport')
ERPLY_POST = ('saveProduct',)
ERPLY_CSV = ('getProductStockCSV', 'getSalesReport','getPurchaseReport')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alphabetic order please.

ERPLY_CSV = ('getProductStockCSV', 'getSalesReport')
ERPLY_POST = ('saveProduct',)
ERPLY_CSV = ('getProductStockCSV', 'getSalesReport','getPurchaseReport')
ERPLY_POST = ('saveProduct')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removed comma is needed as ERPLY_POST variable is filled with tuple of strings. With your change you turned it to just single string..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants