Tuned ui to support ecommerce product catalogue and purchases.
This commit is contained in:
@@ -57,11 +57,20 @@ class UomsNotifier extends AsyncNotifier<List<UnitOfMeasure>> {
|
||||
// If empty in database, seed standard units of measure
|
||||
try {
|
||||
final defaults = [
|
||||
{'name': 'Pieces', 'abbreviation': 'pcs'},
|
||||
{'name': 'Units', 'abbreviation': 'unit'},
|
||||
{'name': 'Boxes', 'abbreviation': 'box'},
|
||||
{'name': 'Sets', 'abbreviation': 'set'},
|
||||
{'name': 'Pairs', 'abbreviation': 'pair'},
|
||||
{'name': 'Packs', 'abbreviation': 'pk'},
|
||||
{'name': 'Grams', 'abbreviation': 'g'},
|
||||
{'name': 'Kilograms', 'abbreviation': 'kg'},
|
||||
{'name': 'Pieces', 'abbreviation': 'pcs'},
|
||||
{'name': 'Carats', 'abbreviation': 'ct'},
|
||||
{'name': 'Milligrams', 'abbreviation': 'mg'},
|
||||
{'name': 'Carats', 'abbreviation': 'ct'},
|
||||
{'name': 'Meters', 'abbreviation': 'm'},
|
||||
{'name': 'Liters', 'abbreviation': 'l'},
|
||||
{'name': 'Milliliters', 'abbreviation': 'ml'},
|
||||
{'name': 'Dozens', 'abbreviation': 'doz'},
|
||||
];
|
||||
for (final def in defaults) {
|
||||
await DioClient().dio.post('/inventory/uom', data: def);
|
||||
|
||||
Reference in New Issue
Block a user