update
This commit is contained in:
parent
478b8e70f1
commit
55de28532f
14 changed files with 149 additions and 115 deletions
|
|
@ -8,8 +8,10 @@ class Stocks {
|
|||
List<Map<String, dynamic>> stockData = [];
|
||||
|
||||
try {
|
||||
final data =
|
||||
await _supabase.from('stocks').select('ref_medicines(medicine_name), expiration_date, quantity, price');
|
||||
final data = await _supabase
|
||||
.from('stocks')
|
||||
.select('ref_medicines(medicine_name), expiration_date, quantity, price')
|
||||
.order('ref_medicines(medicine_name)', ascending: true);
|
||||
|
||||
for (var item in data) {
|
||||
stockData.add({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue