fix saving of stocks

This commit is contained in:
Patrick Alvin Alcala 2025-04-07 17:50:55 +08:00
parent e8d0f213e9
commit efe74f9711
2 changed files with 20 additions and 4 deletions

View file

@ -69,14 +69,15 @@ class Stocks {
}
}
Future<bool> postStock(String muuid, String name, String quantity) async {
Future<bool> postStock(String muuid, String name, String quantity, String price) async {
final uuid = Uuid().v4();
final stock = {
'stock_uuid': uuid,
'stocks_uuid': uuid,
'ref_medicines_uuid': muuid,
'expiration_date': name,
'quantity': quantity,
'price': price
};
try {