itemTaxCountry and item bonanical no longer use the bonanical prop
This commit is contained in:
parent
d46c9bbfa7
commit
29f1f7e89e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue