mirror of
https://github.com/frappe/books.git
synced 2024-12-22 02:49:03 +00:00
Add regional schemas for Switzerland.
This commit is contained in:
parent
e86778f09e
commit
6ec7a1b9a1
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,6 +23,7 @@ yarn-error.log*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
*.code-workspace
|
||||
|
||||
#Electron-builder output
|
||||
/dist_electron
|
||||
|
21
schemas/regional/ch/AccountingSettings.json
Normal file
21
schemas/regional/ch/AccountingSettings.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "AccountingSettings",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "taxId",
|
||||
"label": "Tax ID",
|
||||
"fieldtype": "Data",
|
||||
"placeholder": "CHE-123.456.789",
|
||||
"section": "Default"
|
||||
}
|
||||
],
|
||||
"quickEditFields": [
|
||||
"fullname",
|
||||
"email",
|
||||
"companyName",
|
||||
"country",
|
||||
"fiscalYearStart",
|
||||
"fiscalYearEnd",
|
||||
"taxId"
|
||||
]
|
||||
}
|
4
schemas/regional/ch/index.ts
Normal file
4
schemas/regional/ch/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { SchemaStub } from '../../types';
|
||||
import AccountingSettings from './AccountingSettings.json';
|
||||
|
||||
export default [AccountingSettings] as SchemaStub[];
|
@ -1,7 +1,11 @@
|
||||
import { SchemaStub } from 'schemas/types';
|
||||
import IndianSchemas from './in';
|
||||
import SwissSchemas from './ch';
|
||||
|
||||
/**
|
||||
* Regional Schemas are exported by country code.
|
||||
*/
|
||||
export default { in: IndianSchemas } as Record<string, SchemaStub[]>;
|
||||
export default { in: IndianSchemas, ch: SwissSchemas } as Record<
|
||||
string,
|
||||
SchemaStub[]
|
||||
>;
|
||||
|
@ -29,7 +29,7 @@ const printSettingsFields = [
|
||||
'address',
|
||||
'companyName',
|
||||
];
|
||||
const accountingSettingsFields = ['gstin'];
|
||||
const accountingSettingsFields = ['gstin', 'taxId'];
|
||||
|
||||
export async function getPrintTemplatePropValues(
|
||||
doc: Doc
|
||||
|
Loading…
Reference in New Issue
Block a user