Ejemplo n.º 1
0
        // Update bill amount method//
        public string GetPatientUpdateBill(string billNo, decimal PaidBill)
        {
            Patients patient = patientGetway.GetPatientByBillNo(billNo);

            if (patient.TotalFee == patient.PaidBill && PaidBill > patient.TotalFee)
            {
                return("Already Paid");
            }
            else if (patient.TotalFee == PaidBill && PaidBill > patient.PaidBill)
            {
                return(patient.PaidBill.ToString());
            }

            else if (PaidBill > patient.TotalFee || PaidBill > patient.PaidBill)
            {
                return("Payment is greater than Bill");
            }
            else if (patient.TotalFee == patient.PaidBill)
            {
                return(patient.TotalFee.ToString());
            }



            else
            {
                return((patient.PaidBill).ToString());
            }
        }
Ejemplo n.º 2
0
        public string GetPatientUpdateBill(string billNo, decimal PaidBill)
        {
            Patients patient = patientGetway.GetPatientByBillNo(billNo);

            if (patient.TotalFee == patient.PaidBill && PaidBill >= patient.TotalFee)
            {
                return("Paid");
            }
            else if (patient.TotalFee == PaidBill || (patient.TotalFee - patient.PaidBill) == PaidBill)
            {
                return(patient.TotalFee.ToString());
            }

            else if (PaidBill > patient.TotalFee || PaidBill > patient.PaidBill)
            {
                return(" Please see due amount.");
            }
            else if (patient.TotalFee == patient.PaidBill && PaidBill < patient.PaidBill)
            {
                return("Paid");
            }

            else
            {
                return((patient.PaidBill).ToString());
            }
        }