diff --git a/models/baseModels/InvoiceItem/InvoiceItem.ts b/models/baseModels/InvoiceItem/InvoiceItem.ts index e9b8ff73..1f0f4ed1 100644 --- a/models/baseModels/InvoiceItem/InvoiceItem.ts +++ b/models/baseModels/InvoiceItem/InvoiceItem.ts @@ -482,7 +482,7 @@ export abstract class InvoiceItem extends Doc { return pricingRuleDoc.discountPercentage; } - return this.setItemDiscountAmount; + return this.itemDiscountPercent; }, dependsOn: ['pricingRuleDetail'], }, diff --git a/models/helpers.ts b/models/helpers.ts index 30caf5d8..4e06acd1 100644 --- a/models/helpers.ts +++ b/models/helpers.ts @@ -796,7 +796,6 @@ export function canApplyPricingRule( ) { return false; } - return true; }