update
This commit is contained in:
parent
11fc5c43bf
commit
41651ae447
13 changed files with 237 additions and 125 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue