|
|
|
@ -1476,7 +1476,7 @@ class DoctorsListService extends BaseService {
|
|
|
|
|
|
|
|
|
|
|
|
Future<Map> HIS_createAdvancePayment(AppoitmentAllHistoryResultList appo, String projectID, double payedAmount, String paymentReference, String paymentMethodName, dynamic patientType,
|
|
|
|
Future<Map> HIS_createAdvancePayment(AppoitmentAllHistoryResultList appo, String projectID, double payedAmount, String paymentReference, String paymentMethodName, dynamic patientType,
|
|
|
|
String patientName, dynamic patientID, BuildContext context,
|
|
|
|
String patientName, dynamic patientID, BuildContext context,
|
|
|
|
{bool isAncillaryOrder = false, int clinicID = 0}) async {
|
|
|
|
{bool isAncillaryOrder = false, int clinicID = 0, dynamic orderNo, dynamic appointmentID, List<dynamic> selectedProcListAPI = const []}) 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) {
|
|
|
|
var data = AuthenticatedUser.fromJson(await this.sharedPref.getObject(USER_PROFILE));
|
|
|
|
var data = AuthenticatedUser.fromJson(await this.sharedPref.getObject(USER_PROFILE));
|
|
|
|
@ -1510,7 +1510,12 @@ class DoctorsListService extends BaseService {
|
|
|
|
"PatientTypeID": patientType,
|
|
|
|
"PatientTypeID": patientType,
|
|
|
|
"IsAncillaryOrder": isAncillaryOrder,
|
|
|
|
"IsAncillaryOrder": isAncillaryOrder,
|
|
|
|
// "AncillaryProcedureList": ancillaryOrdersProcedureList,
|
|
|
|
// "AncillaryProcedureList": ancillaryOrdersProcedureList,
|
|
|
|
"PatientType": patientType
|
|
|
|
"PatientType": patientType,
|
|
|
|
|
|
|
|
"RequestAncillaryOrderInvoice": isAncillaryOrder
|
|
|
|
|
|
|
|
? [
|
|
|
|
|
|
|
|
{"MemberID": 102, "ProjectID": projectID, "AppointmentNo": appointmentID, "OrderNo": orderNo, "AncillaryOrderInvoiceProcList": selectedProcListAPI}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
: [],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
dynamic localRes;
|
|
|
|
dynamic localRes;
|
|
|
|
await baseAppClient.post(HIS_CREATE_ADVANCE_PAYMENT, onSuccess: (response, statusCode) async {
|
|
|
|
await baseAppClient.post(HIS_CREATE_ADVANCE_PAYMENT, onSuccess: (response, statusCode) async {
|
|
|
|
@ -1881,7 +1886,8 @@ class DoctorsListService extends BaseService {
|
|
|
|
return Future.value(localRes);
|
|
|
|
return Future.value(localRes);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<Map> autoGenerateInvoiceERClinic(int? projectID, int? paymentMethod, String? paymentReferenceNo, num? amount, String? cardType, String? cardNumber, String? orderID, String? rrn, bool isAdvanceAvailable) async {
|
|
|
|
Future<Map> autoGenerateInvoiceERClinic(
|
|
|
|
|
|
|
|
int? projectID, int? paymentMethod, String? paymentReferenceNo, num? amount, String? cardType, String? cardNumber, String? orderID, String? rrn, bool isAdvanceAvailable) async {
|
|
|
|
Map<String, dynamic> request;
|
|
|
|
Map<String, dynamic> request;
|
|
|
|
request = {
|
|
|
|
request = {
|
|
|
|
"ProjectID": projectID,
|
|
|
|
"ProjectID": projectID,
|
|
|
|
|