9 lines
258 B
JavaScript
9 lines
258 B
JavaScript
const Tax = require('../../models/Tax');
|
|
const repo = require('../../repositories/tax/taxRepository');
|
|
|
|
async function getAllVatRates() {
|
|
const rows = await repo.listAllVatRates();
|
|
return rows.map(r => new Tax(r));
|
|
}
|
|
|
|
module.exports = { getAllVatRates }; |