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 |
|
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 |
|
A product line of an item-tracked product. |
<FT No.>-P1; lot type FT Product. |
|
03 |
|
Lots -1 and -3 exist. |
<FT No.>-4. |
|
04 |
|
Lot -P5 exists, raw material line. |
<FT No.>-1. |
|
05 |
|
Lot -2 exists, product line. |
<FT No.>-P1. |
|
06 |
|
Lots -2 and -9A exist. |
<FT No.>-3. |
|
07 |
|
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 |
|
Lot Code from FT No. off; the fish type has lot nos. |
The first number of the lot nos. |
|
09 |
|
A line that already has a lot code. |
Not modified; keeps its code. |
|
10 |
|
The fish type has no item tracking code. |
Not modified; no lot. |
|
11 |
|
ProcessFishingTrip_u on two raw material and two product lines. |
-1, -2, -P1, -P2 saved on the lines. |