Merge pull request 'fix: get tax formula active only' (#109) from development into production
Reviewed-on: #109pull/113/head 1.2.0-production.2
commit
7afe06e96c
|
@ -8,6 +8,7 @@ import {
|
|||
TransactionBundlingItemEntity,
|
||||
TransactionItemEntity,
|
||||
} from '../../entities/transaction-item.entity';
|
||||
import { STATUS } from 'src/core/strings/constants/base.constants';
|
||||
|
||||
@Injectable()
|
||||
export class PriceCalculator {
|
||||
|
@ -87,7 +88,11 @@ export class PriceCalculator {
|
|||
profit_share: profitShare,
|
||||
};
|
||||
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 taxShareFormulas = shareFormulas.map((formula) => {
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue