Skip to content

Commit

Permalink
feat: hide pricingRuleDetail when unapplied and not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayitzme committed Feb 2, 2024
1 parent 5b1018a commit 812b7e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/baseModels/Invoice/Invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ export abstract class Invoice extends Transactional {
priceList: () => !this.fyo.singles.AccountingSettings?.enablePriceList,
returnAgainst: () =>
(this.isSubmitted || this.isCancelled) && !this.returnAgainst,
pricingRuleDetail: () =>
!this.fyo.singles.AccountingSettings?.enablePricingRule ||
!this.pricingRuleDetail?.length,
};

static defaults: DefaultMap = {
Expand Down

0 comments on commit 812b7e4

Please sign in to comment.