mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: number formats.
This commit is contained in:
14
client/src/components/NumberFormats/NumberFormats.schema.js
Normal file
14
client/src/components/NumberFormats/NumberFormats.schema.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as Yup from 'yup';
|
||||
import { DATATYPES_LENGTH } from 'common/dataTypes';
|
||||
import { defaultTo } from 'lodash';
|
||||
|
||||
|
||||
const Schema = Yup.object().shape({
|
||||
format_money: Yup.string(),
|
||||
show_zero: Yup.boolean(),
|
||||
divide_on_1000: Yup.boolean(),
|
||||
negative_format: Yup.string(),
|
||||
precision: Yup.string(),
|
||||
});
|
||||
|
||||
export const CreateNumberFormateSchema = Schema;
|
||||
Reference in New Issue
Block a user