From 3071a20b8a292f4cd8970ea07a18dfe175721516 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Tue, 29 Oct 2024 11:46:46 +0300 Subject: [PATCH] VIDA 4 package booking update --- .../Appointments/PatientPackageComponent.dart | 15 +++++---------- .../appointment_services/GetDoctorsList.dart | 3 ++- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/lib/models/Appointments/PatientPackageComponent.dart b/lib/models/Appointments/PatientPackageComponent.dart index 31163cc7..26ce9229 100644 --- a/lib/models/Appointments/PatientPackageComponent.dart +++ b/lib/models/Appointments/PatientPackageComponent.dart @@ -15,8 +15,7 @@ class PatientPackageComponent { Map toJson() { final Map data = new Map(); if (this.patientPackageComponents != null) { - data['PatientPackageComponents'] = - this.patientPackageComponents!.map((v) => v.toJson()).toList(); + data['PatientPackageComponents'] = this.patientPackageComponents!.map((v) => v.toJson()).toList(); } return data; } @@ -30,15 +29,9 @@ class PatientPackageComponents { int? projectID; int? sequence; String? setupID; + num? invoiceNo_VP; - PatientPackageComponents( - {this.invoiceNo, - this.lineItemNo, - this.procedureID, - this.procedureName, - this.projectID, - this.sequence, - this.setupID}); + PatientPackageComponents({this.invoiceNo, this.lineItemNo, this.procedureID, this.procedureName, this.projectID, this.sequence, this.setupID, this.invoiceNo_VP}); PatientPackageComponents.fromJson(Map json) { invoiceNo = json['InvoiceNo']; @@ -48,6 +41,7 @@ class PatientPackageComponents { projectID = json['ProjectID']; sequence = json['Sequence']; setupID = json['SetupID']; + invoiceNo_VP = json['InvoiceNo_VP']; } Map toJson() { @@ -59,6 +53,7 @@ class PatientPackageComponents { data['ProjectID'] = this.projectID; data['Sequence'] = this.sequence; data['SetupID'] = this.setupID; + data['InvoiceNo_VP'] = this.invoiceNo_VP; return data; } } diff --git a/lib/services/appointment_services/GetDoctorsList.dart b/lib/services/appointment_services/GetDoctorsList.dart index 9e4bdaa8..35b6d163 100644 --- a/lib/services/appointment_services/GetDoctorsList.dart +++ b/lib/services/appointment_services/GetDoctorsList.dart @@ -387,7 +387,7 @@ class DoctorsListService extends BaseService { } Future insertAppointment(int docID, int clinicID, int projectID, String selectedTime, String selectedDate, int initialSlotDuration, int languageID, BuildContext context, - [String? procedureID, num? testTypeEnum, num? testProcedureEnum, ProjectViewModel? projectViewModel, int? invoiceNumber, int? lineItemNo]) async { + [String? procedureID, num? testTypeEnum, num? testProcedureEnum, ProjectViewModel? projectViewModel, int? invoiceNumber, int? lineItemNo, String? invoiceNoVP]) async { Map request; if (await this.sharedPref.getObject(USER_PROFILE) != null) { @@ -428,6 +428,7 @@ class DoctorsListService extends BaseService { "PatientTypeID": authUser.patientType, "PatientType": authUser.patientType, "InvoiceNo": invoiceNumber, + "InvoiceNo_VP": invoiceNoVP, "LineItemNo": lineItemNo, // "TokenID":"@dm!n" };