mirror of
https://github.com/inventree/inventree-app.git
synced 2025-10-13 21:02:19 +00:00
Re-order barcode scanning priority (#693)
* Re-order barcode scanning priority - Closes https://github.com/inventree/inventree-app/issues/692 * dart format * Try with removed line * Try without pythonscript * just pub get * try with fvm * Remove fvm * set working dir * try just pub get * Install python first * Updates * Use fvm * Adjust CI
This commit is contained in:
23
.github/workflows/ci.yaml
vendored
23
.github/workflows/ci.yaml
vendored
@@ -30,6 +30,11 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
@@ -53,20 +58,18 @@ jobs:
|
||||
- name: Collect Translation Files
|
||||
run: |
|
||||
cd lib/l10n
|
||||
python3 collect_translations.py
|
||||
python collect_translations.py
|
||||
|
||||
- name: Static Analysis Tests
|
||||
working-directory: .
|
||||
run: |
|
||||
python3 find_dart_files.py
|
||||
flutter pub get
|
||||
flutter analyze
|
||||
python ./find_dart_files.py
|
||||
dart pub global activate fvm
|
||||
fvm install
|
||||
fvm flutter pub get
|
||||
fvm flutter analyze
|
||||
dart format --output=none --set-exit-if-changed .
|
||||
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Start InvenTree Server
|
||||
run: |
|
||||
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel g++
|
||||
@@ -82,7 +85,7 @@ jobs:
|
||||
|
||||
- name: Unit Tests
|
||||
run: |
|
||||
flutter test --coverage
|
||||
fvm flutter test --coverage
|
||||
|
||||
- name: Coveralls
|
||||
uses: coverallsapp/github-action@master
|
||||
|
@@ -1,3 +1,8 @@
|
||||
### 0.19.3 - September 2025
|
||||
---
|
||||
|
||||
- Fixes incorrect priority of barcode scanner results
|
||||
|
||||
### 0.19.2 - August 2025
|
||||
---
|
||||
|
||||
|
@@ -13,6 +13,8 @@ from pathlib import Path
|
||||
if __name__ == "__main__":
|
||||
dart_files = Path("lib").rglob("*.dart")
|
||||
|
||||
print("Discovering dart files...");
|
||||
|
||||
with open("test/coverage_helper_test.dart", "w") as f:
|
||||
f.write("// ignore_for_file: unused_import\n\n")
|
||||
f.write("// dart format off\n\n")
|
||||
|
@@ -250,12 +250,12 @@ class BarcodeScanHandler extends BarcodeHandler {
|
||||
|
||||
// The following model types can be matched with barcodes
|
||||
List<String> validModels = [
|
||||
InvenTreePart.MODEL_TYPE,
|
||||
InvenTreeCompany.MODEL_TYPE,
|
||||
InvenTreeStockItem.MODEL_TYPE,
|
||||
InvenTreeStockLocation.MODEL_TYPE,
|
||||
InvenTreeSupplierPart.MODEL_TYPE,
|
||||
InvenTreeManufacturerPart.MODEL_TYPE,
|
||||
InvenTreePart.MODEL_TYPE,
|
||||
InvenTreeStockLocation.MODEL_TYPE,
|
||||
InvenTreeCompany.MODEL_TYPE,
|
||||
];
|
||||
|
||||
if (InvenTreeAPI().supportsOrderBarcodes) {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
name: inventree
|
||||
description: InvenTree stock management
|
||||
|
||||
version: 0.19.2+101
|
||||
version: 0.19.3+102
|
||||
|
||||
environment:
|
||||
sdk: ^3.8.1
|
||||
|
Reference in New Issue
Block a user