model changes for basic promotion support

tutadb#1443
This commit is contained in:
vaf 2023-06-22 08:54:13 +02:00 committed by vis
parent fc4e7365df
commit b7839b8407
No known key found for this signature in database
GPG key ID: F79555BCCA6996D5
8 changed files with 254 additions and 214 deletions

View file

@ -170,6 +170,16 @@
"info": "AddAssociation CustomerInfo/customPlan/AGGREGATION/2114."
}
]
},
{
"version": 88,
"changes": [
{
"name": "AddValue",
"sourceType": "InvoiceInfo",
"info": "AddValue InvoiceInfo/discountPercentage/2126."
}
]
}
]
}

View file

@ -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

View file

@ -1507,6 +1507,7 @@ export type InvoiceInfo = {
_id: Id;
_ownerGroup: null | Id;
_permissions: Id;
discountPercentage: null | NumberString;
extendedPeriodOfPaymentDays: NumberString;
persistentPaymentPeriodExtension: boolean;
publishInvoices: boolean;

View file

@ -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

View 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
},
}

View file

@ -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"

View file

@ -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.",
}
}