mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
migrate transaction edit page to composition API and typescript
This commit is contained in:
@@ -23,6 +23,18 @@ export class TransactionTemplate extends Transaction implements TransactionTempl
|
||||
this.hidden = hidden;
|
||||
}
|
||||
|
||||
public from(other: TransactionTemplate): void {
|
||||
this.templateType = other.templateType;
|
||||
this.name = other.name;
|
||||
|
||||
if (this.templateType === TemplateType.Schedule.type) {
|
||||
this.scheduledFrequencyType = other.scheduledFrequencyType;
|
||||
this.scheduledFrequency = other.scheduledFrequency;
|
||||
this.utcOffset = other.utcOffset;
|
||||
this.timeZone = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
public toTemplateCreateRequest(clientSessionId: string): TransactionTemplateCreateRequest {
|
||||
return {
|
||||
templateType: this.templateType,
|
||||
|
||||
Reference in New Issue
Block a user