mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-21 20:19:23 +01:00
Add loop for calling newStock for each prescription
This commit is contained in:
parent
d0a5bfb74e
commit
95fc6b382c
1 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,12 @@ public class AlarmReceiver extends BroadcastReceiver {
|
||||||
PrescriptionsDAO prescriptionsDAO = prescriptions.getPrescriptionsDAO();
|
PrescriptionsDAO prescriptionsDAO = prescriptions.getPrescriptionsDAO();
|
||||||
List<Prescription> prescriptionList = prescriptionsDAO.getAllMedics();
|
List<Prescription> prescriptionList = prescriptionsDAO.getAllMedics();
|
||||||
|
|
||||||
|
Prescription currentPrescription;
|
||||||
|
for (int i=0; i < prescriptionList.size(); i++) {
|
||||||
|
currentPrescription = prescriptionList.get(i);
|
||||||
|
currentPrescription.newStock();
|
||||||
|
}
|
||||||
|
|
||||||
prescriptionList = Utils.sortPrescriptionList(prescriptionList);
|
prescriptionList = Utils.sortPrescriptionList(prescriptionList);
|
||||||
Prescription firstPrescription = null ;
|
Prescription firstPrescription = null ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue