From 200d2edc9a6c9e6cfb58b8e4afe0e8e57dd8d324 Mon Sep 17 00:00:00 2001
From: Oliver Walters <oliver.henry.walters@gmail.com>
Date: Tue, 14 Apr 2020 22:57:58 +1000
Subject: [PATCH] Add some docs

---
 lib/barcode.dart | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/barcode.dart b/lib/barcode.dart
index fc1d02c1..243e3497 100644
--- a/lib/barcode.dart
+++ b/lib/barcode.dart
@@ -26,6 +26,11 @@ Future<void> scanQrCode(BuildContext context) async {
 
     showProgressDialog(context, "Querying Server", "Sending barcode data to server");
 
+    /*
+     * POST the scanned barcode data to the server.
+     * It is the responsibility of the server to validate and sanitize the barcode data,
+     * and return a "common" response that we know how to deal with.
+     */
     InvenTreeAPI().post("barcode/", body: data).then((var response) {
 
       // Close the progress dialog