add suppliers and distributors

This commit is contained in:
Patrick Alvin Alcala 2025-04-22 11:11:59 +08:00
parent 9cf3934f6f
commit 77fae74302
11 changed files with 426 additions and 33 deletions

View file

@ -86,14 +86,17 @@ class RefMedicines {
}
}
Future<bool> postMedicine(String uuid, String name, String muuid, String guuid, String tuuid, String barcode) async {
Future<bool> postMedicine(String uuid, String name, String muuid, String guuid, String tuuid, String barcode,
String distributor, String supplier) async {
final medicine = {
'ref_medicines_uuid': uuid,
'medicine_name': name,
'ref_manufacturers_uuid': muuid,
'ref_generic_names_uuid': guuid,
'ref_types_uuid': tuuid,
'barcode': barcode
'barcode': barcode,
'ref_distributors_uuid': distributor,
'ref_suppliers_uuid': supplier
};
try {