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 models = Self.app.models;
|
||||||
const originalTaxes = await models.ItemTaxCountry.find({
|
const originalTaxes = await models.ItemTaxCountry.find({
|
||||||
where: {itemFk: originalId},
|
where: {itemFk: originalId},
|
||||||
fields: ['botanical', 'countryFk', 'taxClassFk']
|
fields: ['countryFk', 'taxClassFk']
|
||||||
}, options);
|
}, options);
|
||||||
|
|
||||||
const promises = [];
|
const promises = [];
|
||||||
|
@ -99,7 +99,7 @@ module.exports = Self => {
|
||||||
const models = Self.app.models;
|
const models = Self.app.models;
|
||||||
const botanical = await models.ItemBotanical.findOne({
|
const botanical = await models.ItemBotanical.findOne({
|
||||||
where: {itemFk: originalId},
|
where: {itemFk: originalId},
|
||||||
fields: ['botanical', 'genusFk', 'specieFk']
|
fields: ['genusFk', 'specieFk']
|
||||||
}, options);
|
}, options);
|
||||||
|
|
||||||
if (botanical) {
|
if (botanical) {
|
||||||
|
|
Loading…
Reference in New Issue