mirror of
https://github.com/frappe/books.git
synced 2025-02-03 12:38:34 +00:00
feat: device id field
This commit is contained in:
parent
9d3f0fd29b
commit
faf41ee3c7
@ -2,6 +2,7 @@ import { Doc } from 'fyo/model/doc';
|
||||
import { HiddenMap } from 'fyo/model/types';
|
||||
|
||||
export class ERPNextSyncSettings extends Doc {
|
||||
deviceID?: string;
|
||||
endpoint?: string;
|
||||
authToken?: string;
|
||||
integrationAppVersion?: string;
|
||||
|
@ -5,18 +5,23 @@
|
||||
"isChild": false,
|
||||
"isSubmittable": false,
|
||||
"fields": [
|
||||
{
|
||||
"label": "Device ID",
|
||||
"fieldname": "deviceID",
|
||||
"fieldtype": "Data",
|
||||
"readOnly": true,
|
||||
"section": "Default"
|
||||
},
|
||||
{
|
||||
"label": "API Endpoint",
|
||||
"fieldname": "endpoint",
|
||||
"fieldtype": "Data",
|
||||
"required": true,
|
||||
"section": "Default"
|
||||
},
|
||||
{
|
||||
"label": "Auth Token",
|
||||
"fieldname": "authToken",
|
||||
"fieldtype": "Secret",
|
||||
"required": true,
|
||||
"section": "Default"
|
||||
},
|
||||
{
|
||||
|
@ -70,7 +70,11 @@ import { Shortcuts } from './utils/shortcuts';
|
||||
import { routeTo } from './utils/ui';
|
||||
import { useKeys } from './utils/vueUtils';
|
||||
import { setDarkMode } from 'src/utils/theme';
|
||||
import { initERPNSync, updateERPNSyncSettings } from './utils/erpnextSync';
|
||||
import {
|
||||
initERPNSync,
|
||||
registerInstanceToERPNext,
|
||||
updateERPNSyncSettings,
|
||||
} from './utils/erpnextSync';
|
||||
|
||||
enum Screen {
|
||||
Desk = 'Desk',
|
||||
@ -225,6 +229,7 @@ export default defineComponent({
|
||||
|
||||
await initializeInstance(filePath, false, countryCode, fyo);
|
||||
await updatePrintTemplates(fyo);
|
||||
await registerInstanceToERPNext(fyo);
|
||||
await updateERPNSyncSettings(fyo);
|
||||
initERPNSync(fyo);
|
||||
await this.setDesk(filePath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user