Compare commits

..

No commits in common. "7afe06e96c5ce1200b39915b8fd3fddc8d514fcf" and "95ee8dce8d0b6cd2a0296f5df3416de9548118d1" have entirely different histories.

1 changed files with 1 additions and 6 deletions

View File

@ -8,7 +8,6 @@ import {
TransactionBundlingItemEntity, TransactionBundlingItemEntity,
TransactionItemEntity, TransactionItemEntity,
} from '../../entities/transaction-item.entity'; } from '../../entities/transaction-item.entity';
import { STATUS } from 'src/core/strings/constants/base.constants';
@Injectable() @Injectable()
export class PriceCalculator { export class PriceCalculator {
@ -88,11 +87,7 @@ export class PriceCalculator {
profit_share: profitShare, profit_share: profitShare,
}; };
const dpp = await this.formulaService.salesPriceFormula(); const dpp = await this.formulaService.salesPriceFormula();
const taxFormula = await this.taxService.getManyByOptions({ const taxFormula = await this.taxService.getManyByOptions({});
where: {
status: STATUS.ACTIVE,
},
});
const shareFormulas = await this.formulaService.profitShareFormula(); const shareFormulas = await this.formulaService.profitShareFormula();
const taxShareFormulas = shareFormulas.map((formula) => { const taxShareFormulas = shareFormulas.map((formula) => {
return { return {