itemTaxCountry and item bonanical no longer use the bonanical prop

This commit is contained in:
Carlos Jimenez Ruiz 2021-07-19 14:46:18 +02:00
parent d46c9bbfa7
commit 29f1f7e89e
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ module.exports = Self => {
const models = Self.app.models;
const originalTaxes = await models.ItemTaxCountry.find({
where: {itemFk: originalId},
fields: ['botanical', 'countryFk', 'taxClassFk']
fields: ['countryFk', 'taxClassFk']
}, options);
const promises = [];
@ -99,7 +99,7 @@ module.exports = Self => {
const models = Self.app.models;
const botanical = await models.ItemBotanical.findOne({
where: {itemFk: originalId},
fields: ['botanical', 'genusFk', 'specieFk']
fields: ['genusFk', 'specieFk']
}, options);
if (botanical) {