2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00
books/utils/defaults.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
533 B
TypeScript
Raw Normal View History

2022-11-21 07:15:57 +00:00
import { Fyo } from 'fyo';
export function getDefaultUOMs(fyo: Fyo) {
return [
{
name: fyo.t`Unit`,
isWhole: true,
},
{
name: fyo.t`Kg`,
isWhole: false,
},
{
name: fyo.t`Gram`,
isWhole: false,
},
{
name: fyo.t`Meter`,
isWhole: false,
},
{
name: fyo.t`Hour`,
isWhole: false,
},
{
name: fyo.t`Day`,
isWhole: false,
},
];
}
export function getDefaultLocations(fyo: Fyo) {
return [{ name: fyo.t`Stores` }];
}