@dooer/dooer-test-env 1.5.0 → 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.
- package/lib/account.js +11 -0
- 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'
|
|
@@ -212,6 +214,15 @@ async function createAccount({ local, name, ownerUserId, execute = false, fiscal
|
|
|
212
214
|
{ key: 'hasVatRegistration', value: true, startDate: fy.start, endDate: null },
|
|
213
215
|
{ key: 'hasCompanyTax', value: true, startDate: fy.start, endDate: null }, // F-skatt
|
|
214
216
|
{ key: 'hasEmployeeRegistration', value: true, startDate: fy.start, endDate: null },
|
|
217
|
+
// REQUIRED for booking: HQ's booking view reads the method from the TEMPORAL key, not the
|
|
218
|
+
// companies column (lib/use-bookkeeping-method: temporalKeyValueByDate(key:"bookkeepingMethod")),
|
|
219
|
+
// and disables the Spara button while it is null (new-document-details/wrapper.tsx). Ghost
|
|
220
|
+
// Inspector has the column NULL but this key set — the column alone is not enough.
|
|
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 },
|
|
215
226
|
]
|
|
216
227
|
for (const t of tkv) {
|
|
217
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.
|
|
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",
|