WiseFish Fishing and Quota - Test - Lot Codes from Fishing Trip No.

Part of WiseFish Fishing and Quota - Test (automated tests) - Overview. 11 tests in 1 test codeunit (84004), all passing on a BC28 container (16.11.2026). Folder src/BaseIntegration; test library 84003 WiFiFQT Library - ItemTracking.

Tests the inbound lot codes from the Fishing Trip No. in WiFiFQ Item Tracking Mgt, added in WFFQ-148: <FT No.>-1, -2, ... for raw material lines and <FT No.>-P1, -P2, ... for product lines. The setting is WiFi Setup "Lot Code from FT No.".

The library turns off the mandatory item tracking checks and catch origin creation in WiFi Setup, and gives the current user a User Setup with a WiFi User Profile (WiFi Lot's OnInsert needs it). The trips are on a vessel with a stock center of its own, without lot nos.

84004 WiFiFQT FT Lot Codes (11 tests)

#

Test

Scenario

Expected result

01

LotCode_01_RawMaterialLineGetsTripNoDashOne

A raw material line of an item-tracked fish type.

<FT No.>-1; the lot refers to the trip (FT Raw Material, line no., vessel).

02

LotCode_02_ProductLineGetsTripNoDashPOne

A product line of an item-tracked product.

<FT No.>-P1; lot type FT Product.

03

LotCode_03_NumberContinuesFromHighestLot

Lots -1 and -3 exist.

<FT No.>-4.

04

LotCode_04_ProductLotsDoNotCountForRawMaterial

Lot -P5 exists, raw material line.

<FT No.>-1.

05

LotCode_05_RawMaterialLotsDoNotCountForProduct

Lot -2 exists, product line.

<FT No.>-P1.

06

LotCode_06_NonNumericSuffixIsIgnored

Lots -2 and -9A exist.

<FT No.>-3.

07

LotCode_07_TooLongLotCodeFails

An 18-character trip no. whose lots have reached -9.

The Inbound Lot Code ...-10 is longer than 20 characters, naming the trip, line and setup field. Longer trip numbers: WFFQ-161.

08

LotCode_08_SettingOffUsesLotNoSeries

Lot Code from FT No. off; the fish type has lot nos.

The first number of the lot nos.

09

LotCode_09_LineWithLotCodeIsNotChanged

A line that already has a lot code.

Not modified; keeps its code.

10

LotCode_10_ItemWithoutTrackingGetsNoLot

The fish type has no item tracking code.

Not modified; no lot.

11

LotCode_11_ProcessFishingTripNumbersEveryLine

ProcessFishingTrip_u on two raw material and two product lines.

-1, -2, -P1, -P2 saved on the lines.