chore(webapp): document functions

This commit is contained in:
Ahmed Bouhuolia
2023-08-20 23:16:54 +02:00
parent d5decbbd0b
commit abc5631ac2
3 changed files with 8 additions and 10 deletions

View File

@@ -3,8 +3,7 @@ import intl from 'react-intl-universal';
import moment from 'moment';
/**
*
* @returns
* The validation schema of vendors transactions.
*/
export const getVendorTransactionsQuerySchema = () => {
return Yup.object().shape({
@@ -17,8 +16,7 @@ export const getVendorTransactionsQuerySchema = () => {
};
/**
*
* @returns {}
* Retrieves the default query of vendors transactions.
*/
export const getVendorsTransactionsDefaultQuery = () => ({
fromDate: moment().toDate(),