fix(server): sales tax liability summary report

This commit is contained in:
Ahmed Bouhuolia
2023-09-23 14:40:21 +02:00
parent 1d1049043e
commit f1e7d0fc44
3 changed files with 26 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
import { TenantSeeder } from '@/lib/Seeder/TenantSeeder';
import { InitialTaxRates } from '../data/TaxRates';
export default class UpdateTaxPayableAccount extends TenantSeeder {
/**
* Seeds initial tax rates to the organization.
*/
up(knex) {
return knex('accounts').then(async () => {
// Inserts seed entries.
return knex('accounts').where('slug', 'tax-payable').update({
account_type: 'tax-payable',
});
});
}
}

View File

@@ -1,7 +1,7 @@
export const TaxPayableAccount = {
name: 'Tax Payable',
slug: 'tax-payable',
account_type: 'other-current-liability',
account_type: 'tax-payable',
code: '20006',
description: '',
active: 1,