dsh-workbench-salary 0.4.10 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +1 -1
- package/lib/index.js +5 -1
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -6157,7 +6157,7 @@ var GLYPHS = require_icons2().ICONS;
|
|
|
6157
6157
|
ensureStyles();
|
|
6158
6158
|
host.registerAddon({
|
|
6159
6159
|
id: "wb-addon-salary",
|
|
6160
|
-
version: "0.4.
|
|
6160
|
+
version: "0.4.11",
|
|
6161
6161
|
icon: GLYPHS["wallet"],
|
|
6162
6162
|
views: [
|
|
6163
6163
|
{ id: "stats", icon: tabIcon("stats"), title: { zh: "\u7EDF\u8BA1", en: "Stats" }, component: withProps(require_stats(), "\u7EDF\u8BA1") },
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/** wb-addon-salary:按日期记录日结/月结工资、收入项、扣款项与实发统计。 */
|
|
2
2
|
import { bindClock, ensureSchema } from "./db/db.js";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
|
|
5
|
+
// 版本号只认 package.json:首页插件卡读的就是这里注册的 version。
|
|
6
|
+
const ADDON_VERSION = createRequire(import.meta.url)("../package.json").version;
|
|
3
7
|
import { createSalary } from "./domain/salary.js";
|
|
4
8
|
import { registerSalaryActions } from "./domain/actions.js";
|
|
5
9
|
|
|
@@ -28,7 +32,7 @@ export function apply(ctx) {
|
|
|
28
32
|
id: "wb-addon-salary",
|
|
29
33
|
title: "工资",
|
|
30
34
|
description: "按日期记录日结/月结工资:用工类型、收入项、税前扣款、社保公积金、个税与实发",
|
|
31
|
-
version:
|
|
35
|
+
version: ADDON_VERSION,
|
|
32
36
|
category: "finance",
|
|
33
37
|
tables: ["salary_record"],
|
|
34
38
|
sync: { tables: [] },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-workbench-salary",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "个人工作台工资插件:按发薪日期记录工资构成、扣款与实发",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"addon": {
|
|
17
17
|
"id": "wb-addon-salary",
|
|
18
18
|
"title": "工资",
|
|
19
|
-
"version": "0.4.
|
|
19
|
+
"version": "0.4.11",
|
|
20
20
|
"minShell": "0.8.0",
|
|
21
21
|
"tables": [
|
|
22
22
|
"salary_record"
|