mirror of
https://github.com/frappe/books.git
synced 2025-01-03 15:17:30 +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 { PricingRuleItem } from '../PricingRuleItem/PricingRuleItem';
|
||||||
import { getIsDocEnabledColumn } from 'models/helpers';
|
import { getIsDocEnabledColumn } from 'models/helpers';
|
||||||
import {
|
import {
|
||||||
FiltersMap,
|
|
||||||
FormulaMap,
|
|
||||||
HiddenMap,
|
HiddenMap,
|
||||||
ListViewSettings,
|
ListViewSettings,
|
||||||
RequiredMap,
|
RequiredMap,
|
||||||
@ -54,8 +52,6 @@ export class PricingRule extends Doc {
|
|||||||
return this.discountType === 'Price Discount';
|
return this.discountType === 'Price Discount';
|
||||||
}
|
}
|
||||||
|
|
||||||
formulas: FormulaMap = {};
|
|
||||||
|
|
||||||
validations: ValidationMap = {
|
validations: ValidationMap = {
|
||||||
minQuantity: (value: DocValue) => {
|
minQuantity: (value: DocValue) => {
|
||||||
if (!value || !this.maxQuantity) {
|
if (!value || !this.maxQuantity) {
|
||||||
@ -167,6 +163,4 @@ export class PricingRule extends Doc {
|
|||||||
recurseEvery: () => this.isDiscountTypeIsPriceDiscount || !this.isRecursive,
|
recurseEvery: () => this.isDiscountTypeIsPriceDiscount || !this.isRecursive,
|
||||||
recurseOver: () => this.isDiscountTypeIsPriceDiscount || !this.isRecursive,
|
recurseOver: () => this.isDiscountTypeIsPriceDiscount || !this.isRecursive,
|
||||||
};
|
};
|
||||||
|
|
||||||
static filters: FiltersMap = {};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user