Project

General

Profile

Actions

Task #19357

open

MCL/CPW Receipt PDF - to display HBL/MBL ref, Container Ref(s), and Cheque Number

Added by Redmine Admin about 1 month ago. Updated about 7 hours ago.

Status:
QA
Priority:
High
Assignee:
-
Start date:
01/29/2026
Due date:
01/29/2026 (33 days late)
% Done:

0%

Estimated time:
0:00 h
Spent time:
GitLab ID:
3751
GitLab Milestone:
GitLab Ticket Number:
1162
GitLab Time Logged:
50400
Lock Timeline Date:
No
gitlab project trace:

Description

MCL has requested that the receipt PDF generated from the Mfreight system must:

  • Display the appropriate Bill of Lading reference depending on consignment type (LCL/FCL)
    • For LCL consignments, display the HBL Reference
    • For FCL consignments, display the MBL Reference
  • Display container reference(s) linked to the consignment
  • Display cheque number only when payment is made by cheque

All fields must be conditionally displayed and must not show empty or irrelevant labels.

Acceptance Criteria

  1. LCL Consignments
  • Given the consignment type is LCL
  • When the receipt PDF is generated
  • Then the HBL Ref. is displayed on the receipt PDF
  • And the value matches the HBL reference stored in the system
  1. FCL Consignments
  • Given the consignment type is FCL
  • When the receipt PDF is generated
  • Then the MBL Ref. is displayed on the receipt PDF
  • And the value matches the MBL reference stored in the system
  1. Conditional Display
  • Only the applicable reference (HBL or MBL) is displayed
  • No irrelevant or empty reference labels appear on the receipt PDF

Container Reference(s)

  • Given the consignment has one or more container references stored in the system
  • When the receipt PDF is generated
  • Then a Container Ref. field is displayed on the receipt PDF
  • And it shows all container references associated with the consignment
  • And the values match those stored in the system

Multiple Containers Formatting

  • Given multiple container references exist
  • Then all container references are displayed in a readable format (e.g. comma-separated or one per line)
  • And text wraps correctly without truncation or layout overlap

Conditional Display

  • Given no container references exist for the consignment
  • Then the Container Ref. field is not displayed
  • And no empty label or placeholder appears on the receipt PDF

3. Cheque Number

Cheque Payment

  • Given a receipt line item has Payment Method = CHEQUE
  • When the receipt PDF is generated
  • Then the Cheque No. is displayed for that line item
  • The cheque number displayed matches the value stored in the system.

Non-Cheque Payment

  • Given a receipt line item has Payment Method ≠ CHEQUE (e.g., CASH)
  • Then Cheque No. is not displayed for that line item
  • And no empty value or placeholder is shown

Multiple Cheques

  • Given the receipt contains multiple cheque payments
  • Then each cheque payment line displays its own corresponding cheque number

Sample Payment Receipt from MCL

MCL Payment Receipt.pdf


GitLab Sync Log

[{"id": "38357", "author": "Vishesh Jodhoa", "hours": 7.0, "created": "2026-02-06T12:00:50.568Z", "log_date": "2026-02-06", "comment": "Imported from GitLab by @Vishesh Jodhoa on 2026-02-06T12:00:50.568Z: 7h-(7.0)h spend at: 2026-02-06", "status": "active", "deleted_by": "", "redmine_entry_id": 12198}, {"id": "38650", "author": "Vishesh Jodhoa", "hours": 7.0, "created": "2026-02-11T12:08:02.225Z", "log_date": "2026-02-09", "comment": "Imported from GitLab by @Vishesh Jodhoa on 2026-02-11T12:08:02.225Z: 7h-(7.0)h spend at: 2026-02-09", "status": "active", "deleted_by": "", "redmine_entry_id": 12254}]

Actions #1

Updated by Redmine Admin about 1 month ago

  • GitLab Sync Log updated (diff)
Actions #2

Updated by Redmine Admin 27 days ago

  • Subject changed from MCL/CPW Receipt PDF - to display HBL/MBL ref to MCL/CPW Receipt PDF - to display HBL/MBL ref, Container Ref(s), and Cheque Number
  • Description updated (diff)
Actions #3

Updated by Redmine Admin 25 days ago

  • GitLab Time Logged changed from 0 to 25200
Actions #4

Updated by Redmine Admin 25 days ago

  • GitLab Sync Log updated (diff)
Actions #5

Updated by Redmine Admin 20 days ago

  • GitLab Time Logged changed from 25200 to 50400
Actions #6

Updated by Redmine Admin 20 days ago

  • GitLab Sync Log updated (diff)
Actions #7

Updated by Redmine Admin 19 days ago

  • Status changed from New to Development Done
Actions #8

Updated by Redmine Admin 6 days ago

  • Status changed from Development Done to QA
Actions

Also available in: Atom PDF