@7365admin1/layer-common 4.65.1 → 4.65.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.65.2
4
+
5
+ ### Patch Changes
6
+
7
+ - dbd4245: Inventory Stock Movement: the Received column labels opening stock received in the month ("incl. N opening stock").
8
+
3
9
  ## 4.65.1
4
10
 
5
11
  ### Patch Changes
@@ -1767,11 +1773,11 @@
1767
1773
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
1768
1774
  own rule from two endpoints the console already calls, unprojected:
1769
1775
 
1770
- GET /api/members/user/:user/app/admin the Seven365 staff membership
1771
- GET /api/roles/id/:role that membership's role document
1776
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
1777
+ GET /api/roles/id/:role that membership's role document
1772
1778
 
1773
- owner = member.type === "admin" && role.type === "admin" && role.default === true
1774
- staff = member.type === "admin" && role.type === "admin"
1779
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
1780
+ staff = member.type === "admin" && role.type === "admin"
1775
1781
 
1776
1782
  `role.default` is the marker because it is the only property of a platform
1777
1783
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -112,6 +112,9 @@
112
112
  <template #item.locationType="{ value }">{{ value === "tenant_unit" ? "Tenant unit" : "Common area" }}</template>
113
113
  <template #item.unitCost="{ value }">{{ money(value) }}</template>
114
114
  <template #item.totalCost="{ value }">{{ money(value) }}</template>
115
+ <template #item.received="{ item }">
116
+ {{ item.received }}<span v-if="item.receivedOpening" class="d-block text-caption text-medium-emphasis">incl. {{ item.receivedOpening }} opening stock</span>
117
+ </template>
115
118
  <template #item.receivedCost="{ value }">{{ money(value) }}</template>
116
119
  <template #item.usedCost="{ value }">{{ money(value) }}</template>
117
120
  <template #item.siteUsedCost="{ value }">{{ money(value) }}</template>
@@ -181,7 +184,7 @@ const barWidth = (v: number) => {
181
184
  };
182
185
 
183
186
  const help: Record<string, string> = {
184
- movement: "For each item: stock at the start of the month, what came in, what was issued and returned, count differences, and stock at the end.",
187
+ movement: "For each item: stock at the start of the month, what came in (deliveries and opening stock), what was issued and returned, count differences, and stock at the end.",
185
188
  usage: "Every recorded usage: where it was used, for which tenant, by whom, and the cost. Use this for tenant billing. Tick records and mark them checked once verified.",
186
189
  technicians: "For each person: stock they held at the start, took, used, returned, and hold at the end of the month.",
187
190
  purchases: "Every delivery received, and opening stock entered with new items (Type: Opening stock), with totals by month and by supplier.",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.65.1",
5
+ "version": "4.65.2",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",