Skip to content

feat(cda): upload revised DC bag Excel on lot adjustment - #64

Merged
ginaxu1 merged 4 commits into
mainfrom
feat/cda-lot-adj-excel-upload
Sep 8, 2026
Merged

feat(cda): upload revised DC bag Excel on lot adjustment#64
ginaxu1 merged 4 commits into
mainfrom
feat/cda-lot-adj-excel-upload

Conversation

@ginaxu1

@ginaxu1 ginaxu1 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Resolves LSFLK/lsf-govtech-tnsw#108

Summary

On the CDA process 01 lot adjustment path, traders currently type amended bag details into a free-text field. This change lets them download the existing DC bag details Excel template, fill in the amended bag list, and upload that sheet instead, so the officer can re-issue the salmonella/physical quality certificate against the amended bag quantity for the existing CusDec/consignment.

Template: https://docs.google.com/spreadsheets/d/1nVT_Q2S59KRUD-JWZy_gnjsYNnswjOsnDHdoJMHKzZ4/edit?gid=0#gid=0

Changes Made

  • Replaced the lots_to_remove text field with a required Excel file upload (revised_dc_bags_details, .xlsx/.xls) when the trader selects Request Lot Adjustment (Remove specific lots). Both tnsw and agency copies of the trader form are updated.
  • Reused the existing application DC bag details template (cda-apply-coconut-cert--bag-template) on the lot adjustment screen. No new artifact file.
  • Mapped the uploaded file from the trader task through to officer review in the lot adjustment sub-workflow.
  • Updated the certificate display copy so it asks the trader to upload the revised Excel sheet rather than list lots in text.
  • CusDec stays the existing consignment declaration. No new CusDec upload field.

Verification

Manual verification (see screen recording https://github.com/LSFLK/lsf-govtech-tnsw/issues/108#issuecomment-5586151204)

  • Open a CDA process 01 consignment at the lot adjustment step (PENDING_USER).
  • Select Complete Application & Finish and confirm submit still completes the path.
  • Select Request Lot Adjustment (Remove specific lots) and confirm the Excel upload appears and is required, and that the DC bag details template download is the sheet linked above.
  • Download that template, fill the amended bag list, upload the .xlsx or .xls file, submit, and confirm the officer review task receives the file.
  • Confirm the officer can still approve and upload a revised certificate, or send the request back for more information.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 47286c3b-64d5-4b74-983f-60797702a0f1


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ginaxu1
ginaxu1 marked this pull request as draft September 8, 2026 09:09
@ginaxu1
ginaxu1 force-pushed the feat/cda-lot-adj-excel-upload branch from 6a36bcf to 13a8e81 Compare September 8, 2026 09:21
@ginaxu1
ginaxu1 marked this pull request as ready for review September 8, 2026 14:14
ginaxu1 and others added 3 commits September 8, 2026 19:45
Replace the free-text lots-to-remove field with an Excel file upload so
traders submit amended bag details the same way as the original application.

Co-authored-by: Cursor <cursoragent@cursor.com>
Reuse the existing application bag-details template so traders download
the same sheet, fill the amended bag list, and upload it instead of typing.

Co-authored-by: Cursor <cursoragent@cursor.com>
Leave lots_to_remove as the mapped field so officer inject still works.
The trader form still shows an Excel upload for that field.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ginaxu1
ginaxu1 force-pushed the feat/cda-lot-adj-excel-upload branch from d3edd9c to c272a2d Compare September 8, 2026 14:15
@ginaxu1

ginaxu1 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Full flow here (with CDA officer requesting resubmit, and Trader resubmitting) https://github.com/LSFLK/lsf-govtech-tnsw/issues/108#issuecomment-5586151204

@ginaxu1
ginaxu1 requested a review from mushrafmim September 8, 2026 14:55
CDA validates inject data against the trader form, which requires
adjustment_choice. Without it the inject is rejected and the officer
never sees a pending review task.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ginaxu1
ginaxu1 force-pushed the feat/cda-lot-adj-excel-upload branch from 7aab50f to cf2eda5 Compare September 8, 2026 15:01

@Aravinda-HWK Aravinda-HWK left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ginaxu1
ginaxu1 merged commit b875b28 into main Sep 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants