VIDA 4 package booking update

merge-update-with-lab-changes
haroon amjad 1 year ago
parent c6ee01c652
commit 3071a20b8a

@ -15,8 +15,7 @@ class PatientPackageComponent {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.patientPackageComponents != null) { if (this.patientPackageComponents != null) {
data['PatientPackageComponents'] = data['PatientPackageComponents'] = this.patientPackageComponents!.map((v) => v.toJson()).toList();
this.patientPackageComponents!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
@ -30,15 +29,9 @@ class PatientPackageComponents {
int? projectID; int? projectID;
int? sequence; int? sequence;
String? setupID; String? setupID;
num? invoiceNo_VP;
PatientPackageComponents( PatientPackageComponents({this.invoiceNo, this.lineItemNo, this.procedureID, this.procedureName, this.projectID, this.sequence, this.setupID, this.invoiceNo_VP});
{this.invoiceNo,
this.lineItemNo,
this.procedureID,
this.procedureName,
this.projectID,
this.sequence,
this.setupID});
PatientPackageComponents.fromJson(Map<String, dynamic> json) { PatientPackageComponents.fromJson(Map<String, dynamic> json) {
invoiceNo = json['InvoiceNo']; invoiceNo = json['InvoiceNo'];
@ -48,6 +41,7 @@ class PatientPackageComponents {
projectID = json['ProjectID']; projectID = json['ProjectID'];
sequence = json['Sequence']; sequence = json['Sequence'];
setupID = json['SetupID']; setupID = json['SetupID'];
invoiceNo_VP = json['InvoiceNo_VP'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -59,6 +53,7 @@ class PatientPackageComponents {
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['Sequence'] = this.sequence; data['Sequence'] = this.sequence;
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['InvoiceNo_VP'] = this.invoiceNo_VP;
return data; 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, 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; Map<String, dynamic> request;
if (await this.sharedPref.getObject(USER_PROFILE) != null) { if (await this.sharedPref.getObject(USER_PROFILE) != null) {
@ -428,6 +428,7 @@ class DoctorsListService extends BaseService {
"PatientTypeID": authUser.patientType, "PatientTypeID": authUser.patientType,
"PatientType": authUser.patientType, "PatientType": authUser.patientType,
"InvoiceNo": invoiceNumber, "InvoiceNo": invoiceNumber,
"InvoiceNo_VP": invoiceNoVP,
"LineItemNo": lineItemNo, "LineItemNo": lineItemNo,
// "TokenID":"@dm!n" // "TokenID":"@dm!n"
}; };

Loading…
Cancel
Save