This commit is contained in:
Patrick Alvin Alcala 2025-02-25 15:18:41 +08:00
parent b299297fa5
commit 11fc5c43bf
29 changed files with 1041 additions and 124 deletions

View file

@ -29,13 +29,14 @@ class RefMedicines {
return data.first['ref_medicines_uuid'];
}
Future<void> postMedicine(String uuid, String name, String muuid, String guuid, String tuuid) async {
Future<void> postMedicine(String uuid, String name, String muuid, String guuid, String tuuid, String barcode) async {
final medicine = {
'ref_medicines_uuid': uuid,
'medicine_name': name,
'ref_manufactorers_uuid': muuid,
'ref_generic_names_uuid': guuid,
'ref_types_uuid': tuuid
'ref_types_uuid': tuuid,
'barcode': barcode
};
await _supabase.from('ref_medicines').insert(medicine);