This commit is contained in:
Patrick Alvin Alcala 2025-02-25 17:22:13 +08:00
parent 11fc5c43bf
commit 41651ae447
13 changed files with 237 additions and 125 deletions

View file

@ -29,6 +29,11 @@ class RefMedicines {
return data.first['ref_medicines_uuid'];
}
Future<String> getBarcode(String name) async {
final data = await _supabase.from('ref_medicines').select('barcode').eq('medicine_name', name);
return data.first['barcode'];
}
Future<void> postMedicine(String uuid, String name, String muuid, String guuid, String tuuid, String barcode) async {
final medicine = {
'ref_medicines_uuid': uuid,