Merge branch 'develop' into tax-compliance

This commit is contained in:
Ahmed Bouhuolia
2023-08-29 15:09:52 +02:00
238 changed files with 1917 additions and 1285 deletions

View File

@@ -284,7 +284,7 @@ export default class SaleInvoice extends mixin(TenantModel, [
* Filters the invoices between the given date range.
*/
filterDateRange(query, startDate, endDate, type = 'day') {
const dateFormat = 'YYYY-MM-DD HH:mm:ss';
const dateFormat = 'YYYY-MM-DD';
const fromDate = moment(startDate).startOf(type).format(dateFormat);
const toDate = moment(endDate).endOf(type).format(dateFormat);