fix saving of stocks
This commit is contained in:
parent
e8d0f213e9
commit
efe74f9711
2 changed files with 20 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue