update
This commit is contained in:
parent
b299297fa5
commit
11fc5c43bf
29 changed files with 1041 additions and 124 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue