From c74368f805f9c199de086d0ca995d18fd4ef6848 Mon Sep 17 00:00:00 2001 From: Oliver <oliver.henry.walters@gmail.com> Date: Tue, 17 Oct 2023 12:12:22 +1100 Subject: [PATCH] Fix typo (#5715) * Fix typo getSpashScren -> getSplashScreen * Cleanup docs --- InvenTree/InvenTree/helpers.py | 6 +++--- InvenTree/part/templatetags/inventree_extras.py | 2 +- docs/docs/extend/plugins/barcode.md | 2 +- docs/docs/report/stock_location.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/InvenTree/InvenTree/helpers.py b/InvenTree/InvenTree/helpers.py index 84aab20c04..5c8cad601c 100644 --- a/InvenTree/InvenTree/helpers.py +++ b/InvenTree/InvenTree/helpers.py @@ -120,7 +120,7 @@ def getLogoImage(as_file=False, custom=True): return getStaticUrl('img/inventree.png') -def getSplashScren(custom=True): +def getSplashScreen(custom=True): """Return the InvenTree splash screen, or a custom splash if available""" static_storage = StaticFilesStorage() @@ -333,7 +333,7 @@ def MakeBarcode(cls_name, object_pk: int, object_data=None, **kwargs): object_type: string describing the object type e.g. 'StockItem' object_id: ID (Primary Key) of the object in the database object_url: url for JSON API detail view of the object - data: Python dict object containing extra datawhich will be rendered to string (must only contain stringable values) + data: Python dict object containing extra data which will be rendered to string (must only contain stringable values) Returns: json string of the supplied data plus some other data @@ -441,7 +441,7 @@ def extract_serial_numbers(input_string, expected_quantity: int, starting_value= - Individual serials are separated by comma: 1, 2, 3, 6,22 - Sequential ranges with provided limits are separated by hyphens: 1-5, 20 - 40 - The "next" available serial number can be specified with the tilde (~) character - - Serial numbers can be supplied as <start>+ for getting all expecteded numbers starting from <start> + - Serial numbers can be supplied as <start>+ for getting all expected numbers starting from <start> - Serial numbers can be supplied as <start>+<length> for getting <length> numbers starting from <start> Actual generation of sequential serials is passed to the 'validation' plugin mixin, diff --git a/InvenTree/part/templatetags/inventree_extras.py b/InvenTree/part/templatetags/inventree_extras.py index 1d641d1594..d002e332b3 100644 --- a/InvenTree/part/templatetags/inventree_extras.py +++ b/InvenTree/part/templatetags/inventree_extras.py @@ -219,7 +219,7 @@ def inventree_logo(**kwargs): def inventree_splash(**kwargs): """Return the URL for the InvenTree splash screen, *or* a custom screen if the user has provided one.""" - return InvenTree.helpers.getSplashScren(**kwargs) + return InvenTree.helpers.getSplashScreen(**kwargs) @register.simple_tag() diff --git a/docs/docs/extend/plugins/barcode.md b/docs/docs/extend/plugins/barcode.md index 864afec342..b655e97cfe 100644 --- a/docs/docs/extend/plugins/barcode.md +++ b/docs/docs/extend/plugins/barcode.md @@ -54,4 +54,4 @@ class InvenTreeBarcodePlugin(BarcodeMixin, InvenTreePlugin): ``` -To try it just copy the file to src/InvenTree/plugins and restart the server. Open the scan barcode window and start to scan codes or type in text manually. Each time the timeout is hit the plugin will execute and printout the result. The timeout can be changed in settings->Barcode Support->Barcode Input Delay. +To try it just copy the file to src/InvenTree/plugins and restart the server. Open the scan barcode window and start to scan codes or type in text manually. Each time the timeout is hit the plugin will execute and printout the result. The timeout can be changed in `Settings->Barcode Support->Barcode Input Delay`. diff --git a/docs/docs/report/stock_location.md b/docs/docs/report/stock_location.md index cfe252b274..27fb1b729b 100644 --- a/docs/docs/report/stock_location.md +++ b/docs/docs/report/stock_location.md @@ -4,7 +4,7 @@ title: Stock Location Reports ## Stock location Reports -You can print a formatted report of a stock location. This makes sense if you have several parts inside one location, e.g. a box that is sent out to a manufacturing partner. Whit a report you can create a box content list. +You can print a formatted report of a stock location. This makes sense if you have several parts inside one location, e.g. a box that is sent out to a manufacturing partner. Whit a report you can create a box content list. ### Context Variables You can use all content variables from the [StockLocation](./context_variables.md#stocklocation) object.