2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00
books/models/inventory/InventorySettings.ts
2022-11-18 14:14:29 +05:30

22 lines
618 B
TypeScript

import { Doc } from 'fyo/model/doc';
import { FiltersMap } from 'fyo/model/types';
import { AccountTypeEnum } from 'models/baseModels/Account/types';
import { valuationMethod } from './types';
export class InventorySettings extends Doc {
stockInHand?: string;
valuationMethod?: valuationMethod;
stockInReceivedButNotBilled?: string;
static filters: FiltersMap = {
stockInHand: () => ({
isGroup: false,
accountType: AccountTypeEnum.Stock,
}),
stockReceivedButNotBilled: () => ({
isGroup: false,
accountType: AccountTypeEnum['Stock Received But Not Billed'],
}),
};
}