mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
35 lines
533 B
TypeScript
35 lines
533 B
TypeScript
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` }];
|
|
}
|