VIDA 4 package booking update

dev_v3.13.6_PenguinIn
haroon amjad 1 year ago
parent c6ee01c652
commit 3071a20b8a

@ -15,8 +15,7 @@ class PatientPackageComponent {
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
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<String, dynamic> 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<String, dynamic> 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;
}
}

@ -387,7 +387,7 @@ class DoctorsListService extends BaseService {
}
Future<Map> 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<String, dynamic> 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"
};

Loading…
Cancel
Save