Skip to content

Cancel Delivery note fix#623

Closed
AVPavel wants to merge 4 commits intofiskaltrust:mainfrom
AVPavel:119-cancel-delivery-note-93-using-a-new-url-endpoint
Closed

Cancel Delivery note fix#623
AVPavel wants to merge 4 commits intofiskaltrust:mainfrom
AVPavel:119-cancel-delivery-note-93-using-a-new-url-endpoint

Conversation

@AVPavel
Copy link
Copy Markdown
Contributor

@AVPavel AVPavel commented Feb 15, 2026

Summary of the changes

  • Added a new method responsible to handle the cancellation of a delivery note (9.3).
  • Added a check in the processReceipt method to look first of all for the cancellation case (void + transportInfo + delivery note receiptCase).
  • Added a separate test file to cover validations for the validation.

Detail

The cancellation will only be done if the 3 flags are present: ReceiptCaseFlags.Void, ReceiptCase.DeliveryNote, ReceiptCaseFlagsGR.hasTransportInformation, and if the previous receipt reference is present.

If the conditions are complete and there is no missing critical information (mark, VAT number), then the cancel delivery note method from MyDATASCU.cs will cover the logic of sending the information to myDATA and the response parsing.

The VAT number sent in the URL:

$"/myDataProvider/CancelDeliveryNote?mark={mark}&entityVatNumber={vatNumber}"

is only made out of the numeric part.

The current tests cover only the cases where some of the flags or critical information are missing. No request mock.

Fixes # 119 Market-GR

@AVPavel AVPavel requested a review from a team as a code owner February 15, 2026 16:54
@github-actions github-actions Bot added market-gr Related to the greek market area-tests Affects the test labels Feb 15, 2026
Comment thread scu-gr/src/fiskaltrust.Middleware.SCU.GR.MyData/MyDataSCU.cs Outdated
Comment thread scu-gr/src/fiskaltrust.Middleware.SCU.GR.MyData/MyDataSCU.cs
@StefanKert StefanKert added category-enhancement New feature or request area-sign Affects the signing endpoint scu-gr-mydata Related to the greek MyDATA SCU and removed area-tests Affects the test labels Feb 17, 2026
@github-actions github-actions Bot added the area-tests Affects the test label Feb 17, 2026
@StefanKert StefanKert added the meta-no-issue This PR does not need to have a linked issue label Feb 17, 2026
var aadFactory = new AADEFactory(_masterDataConfiguration);
=======
var aadFactory = new AADEFactory(_masterDataConfiguration, _receiptBaseAddress);
>>>>>>> main
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

issue: There's a merge conflict merged into the PR here 😅

@AVPavel AVPavel dismissed volllly’s stale review March 3, 2026 08:30

Solved the conflict on the next commit

@StefanKert
Copy link
Copy Markdown
Member

Closing cause merged already

@StefanKert StefanKert closed this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-sign Affects the signing endpoint area-tests Affects the test category-enhancement New feature or request market-gr Related to the greek market meta-no-issue This PR does not need to have a linked issue scu-gr-mydata Related to the greek MyDATA SCU

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants