@dooer/dooer-test-env 1.5.1 → 1.6.0

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.
Files changed (2) hide show
  1. package/lib/account.js +6 -0
  2. package/package.json +1 -1
package/lib/account.js CHANGED
@@ -165,6 +165,8 @@ async function createAccount({ local, name, ownerUserId, execute = false, fiscal
165
165
  isFSkattRegistered: true,
166
166
  isEmployer: true,
167
167
  bookkeepingStartDate: fy.start,
168
+ vatPeriod: 'monthly',
169
+ vatDueDescription: 'En månad den 12:e',
168
170
  skvFiscalYear: { startDate: fy.start, endDate: fy.end },
169
171
  },
170
172
  'organization information'
@@ -217,6 +219,10 @@ async function createAccount({ local, name, ownerUserId, execute = false, fiscal
217
219
  // and disables the Spara button while it is null (new-document-details/wrapper.tsx). Ghost
218
220
  // Inspector has the column NULL but this key set — the column alone is not enough.
219
221
  { key: 'bookkeepingMethod', value: 'invoiceBased', startDate: fy.start, endDate: null },
222
+ // Momsperiod: HQ renders "unknown" without these (vat-reports reads temporalKeyValueByDate for
223
+ // vatPeriod/vatDue). Monthly + "En månad den 12:e", the same pair Ghost Inspector has.
224
+ { key: 'vatPeriod', value: 'monthly', startDate: fy.start, endDate: null },
225
+ { key: 'vatDue', value: 'En månad den 12:e', startDate: fy.start, endDate: null },
220
226
  ]
221
227
  for (const t of tkv) {
222
228
  acct('POST', `/v1/organizations/${orgId}/temporal-key-values`, t, `temporal key ${t.key}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dooer/dooer-test-env",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "Run the whole Dooer backend locally (staging DB minus customers), copy/purge customers between environments, and shred — one CLI.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": "Dooer/cli-dooer-test-env",