mirror of
https://github.com/frappe/books.git
synced 2024-12-22 10:58:59 +00:00
chore: code cleanup
This commit is contained in:
parent
d4a08d8331
commit
3da9f81b62
@ -3,8 +3,6 @@ import { Money } from 'pesa';
|
||||
import { PricingRuleItem } from '../PricingRuleItem/PricingRuleItem';
|
||||
import { getIsDocEnabledColumn } from 'models/helpers';
|
||||
import {
|
||||
FiltersMap,
|
||||
FormulaMap,
|
||||
HiddenMap,
|
||||
ListViewSettings,
|
||||
RequiredMap,
|
||||
@ -54,8 +52,6 @@ export class PricingRule extends Doc {
|
||||
return this.discountType === 'Price Discount';
|
||||
}
|
||||
|
||||
formulas: FormulaMap = {};
|
||||
|
||||
validations: ValidationMap = {
|
||||
minQuantity: (value: DocValue) => {
|
||||
if (!value || !this.maxQuantity) {
|
||||
@ -167,6 +163,4 @@ export class PricingRule extends Doc {
|
||||
recurseEvery: () => this.isDiscountTypeIsPriceDiscount || !this.isRecursive,
|
||||
recurseOver: () => this.isDiscountTypeIsPriceDiscount || !this.isRecursive,
|
||||
};
|
||||
|
||||
static filters: FiltersMap = {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user