fix(webapp): code cleanup

This commit is contained in:
Ahmed Bouhuolia
2023-09-22 15:25:56 +02:00
parent ce41845bd7
commit 92ac0dbd25
12 changed files with 32 additions and 24 deletions

View File

@@ -445,13 +445,12 @@ export function useTransactionsByReference(query, props) {
);
}
/**
*
* Retrieves the sales tax liability summary report.
*/
export function useSalesTaxLiabilitySummary(query, props) {
return useRequestQuery(
[t.FINANCIAL_REPORT, t.BALANCE_SHEET, query],
[t.FINANCIAL_REPORT, t.SALES_TAX_LIABILITY_SUMMARY, query],
{
method: 'get',
url: '/financial_statements/sales-tax-liability-summary',

View File

@@ -32,6 +32,7 @@ const FINANCIAL_REPORTS = {
REALIZED_GAIN_OR_LOSS: 'REALIZED_GAIN_OR_LOSS',
UNREALIZED_GAIN_OR_LOSS: 'UNREALIZED_GAIN_OR_LOSS',
PROJECT_PROFITABILITY_SUMMARY: 'PROJECT_PROFITABILITY_SUMMARY',
SALES_TAX_LIABILITY_SUMMARY: 'SALES_TAX_LIABILITY_SUMMARY'
};
const BILLS = {