mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-08 06:09:50 +00:00
model changes for basic promotion support
tutadb#1443
This commit is contained in:
parent
fc4e7365df
commit
b7839b8407
8 changed files with 254 additions and 214 deletions
|
|
@ -170,6 +170,16 @@
|
|||
"info": "AddAssociation CustomerInfo/customPlan/AGGREGATION/2114."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": 88,
|
||||
"changes": [
|
||||
{
|
||||
"name": "AddValue",
|
||||
"sourceType": "InvoiceInfo",
|
||||
"info": "AddValue InvoiceInfo/discountPercentage/2126."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const modelInfo = {
|
||||
version: 87,
|
||||
compatibleSince: 87,
|
||||
version: 88,
|
||||
compatibleSince: 88,
|
||||
}
|
||||
|
||||
export default modelInfo
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1507,6 +1507,7 @@ export type InvoiceInfo = {
|
|||
_id: Id;
|
||||
_ownerGroup: null | Id;
|
||||
_permissions: Id;
|
||||
discountPercentage: null | NumberString;
|
||||
extendedPeriodOfPaymentDays: NumberString;
|
||||
persistentPaymentPeriodExtension: boolean;
|
||||
publishInvoices: boolean;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import { sys85 } from "./migrations/sys-v85.js"
|
|||
import { accounting5 } from "./migrations/accounting-v5.js"
|
||||
import { sys86 } from "./migrations/sys-v86.js"
|
||||
import { sys87 } from "./migrations/sys-v87.js"
|
||||
import { sys88 } from "./migrations/sys-v88.js"
|
||||
|
||||
export interface OfflineMigration {
|
||||
readonly app: VersionMetadataBaseKey
|
||||
|
|
@ -55,6 +56,7 @@ export const OFFLINE_STORAGE_MIGRATIONS: ReadonlyArray<OfflineMigration> = [
|
|||
sys85,
|
||||
sys86,
|
||||
sys87,
|
||||
sys88,
|
||||
]
|
||||
|
||||
const CURRENT_OFFLINE_VERSION = 1
|
||||
|
|
|
|||
12
src/api/worker/offline/migrations/sys-v88.ts
Normal file
12
src/api/worker/offline/migrations/sys-v88.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { OfflineMigration } from "../OfflineStorageMigrator.js"
|
||||
import { OfflineStorage } from "../OfflineStorage.js"
|
||||
import { deleteInstancesOfType } from "../StandardMigrations.js"
|
||||
import { BookingTypeRef, CustomerInfoTypeRef, GroupInfoTypeRef, GroupTypeRef, UserTypeRef } from "../../../entities/sys/TypeRefs.js"
|
||||
|
||||
export const sys88: OfflineMigration = {
|
||||
app: "sys",
|
||||
version: 88,
|
||||
async migrate(storage: OfflineStorage) {
|
||||
// dummy
|
||||
},
|
||||
}
|
||||
|
|
@ -1526,3 +1526,10 @@ export type TranslationKeyType =
|
|||
| "cannotAddAttendees_msg"
|
||||
| "noCalendar_msg"
|
||||
| "cannotEditFullEvent_msg"
|
||||
| "filterUnread_label"
|
||||
| "filterRead_label"
|
||||
| "filterAllMails_label"
|
||||
| "filterWithAttachments_label"
|
||||
| "searchTemplates_placeholder"
|
||||
| "searchKnowledgebase_placeholder"
|
||||
| "npo50PercentDiscount_msg"
|
||||
|
|
|
|||
|
|
@ -1541,6 +1541,5 @@ export default {
|
|||
"cannotAddAttendees_msg": "You can not modify the guest list for this event because it was not created in your calendar.",
|
||||
"noCalendar_msg": "Please select a calendar for the event.",
|
||||
"cannotEditFullEvent_msg": "You can only edit parts of this event because it does not originate in your calendar.",
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue