added image on database
This commit is contained in:
parent
64516a7df2
commit
cea8af232d
1 changed files with 3 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ class RefMedicines {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<bool> postMedicine(String uuid, String name, String muuid, String guuid, String tuuid, String barcode,
|
Future<bool> postMedicine(String uuid, String name, String muuid, String guuid, String tuuid, String barcode,
|
||||||
String distributor, String supplier) async {
|
String distributor, String supplier, String imageuuid) async {
|
||||||
final medicine = {
|
final medicine = {
|
||||||
'ref_medicines_uuid': uuid,
|
'ref_medicines_uuid': uuid,
|
||||||
'medicine_name': name,
|
'medicine_name': name,
|
||||||
|
|
@ -96,7 +96,8 @@ class RefMedicines {
|
||||||
'ref_types_uuid': tuuid,
|
'ref_types_uuid': tuuid,
|
||||||
'barcode': barcode,
|
'barcode': barcode,
|
||||||
'ref_distributors_uuid': distributor,
|
'ref_distributors_uuid': distributor,
|
||||||
'ref_suppliers_uuid': supplier
|
'ref_suppliers_uuid': supplier,
|
||||||
|
'ref_medicines_images': imageuuid
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue