Skip to content

Changes

Started by timer
Started 17 days ago
Took 1 min 1 sec on built-in

Summary

  1. orders-check (Amazon + eBay): don't count a voided linked order as matched (details)
  2. Amazon/eBay orders-check: add batch/single order cancellation (VO) (details)
  3. upload to lexoffice only zugpferd (details)
Commit 0eb5b88f6d5e3d007b193bffd483875433779862 by info
orders-check (Amazon + eBay): don't count a voided linked order as matched

matchOrders() already captured the linked c_order's DocStatus but never
checked it - a manually voided/canceled order still counted as a resolved
match, so the reconciliation page silently showed it as handled instead
of flagging it for reimport (importSingleOrder already treats a voided
link as not-really-imported for the exact same reason; this brings the
comparison page's own matching in line with that rule).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QTy674ErXSPZ8spJ6HMhE6
The file was modifiedserver/api/accounting/ebay/orders-check.get.ts (diff)
The file was modifiedserver/api/accounting/amazon/orders-check.get.ts (diff)
Commit e72265bd4727f144c2355df0676ccf32a933ee67 by info
Amazon/eBay orders-check: add batch/single order cancellation (VO)

Sometimes a matched order was imported with a mistake (wrong amount etc.)
and needs to be voided so it can be reimported clean. Adds a "Stornieren"
toolbar action (batch, from the checkbox selection) and a per-row cancel
button on "Interner Auftrag" (mirrors the existing import "+" button),
both calling the standard order document-action endpoint with VO.

Eligible rows: matched, linked to a real order, no invoice yet, not
already voided/closed. After a successful void the row is patched
in-place to matched:false so it immediately shows as "FEHLT" again and
can be reimported from the same page.

AgDocPreviewLink gains an opt-in onCancelOrder/canCancelOrder param pair,
symmetric with the existing onImportOrder/canImportOrder.
The file was modifiedapp/pages/accounting/ebay-orders-check.vue (diff)
The file was modifiedapp/pages/accounting/amazon-orders-check.vue (diff)
The file was modifiedapp/components/AgGrid/Accounting/AgDocPreviewLink.vue (diff)
Commit 718962b615ea9c5fe54c114e74aa1d8eff256b3f by info
upload to lexoffice only zugpferd
The file was modifiedserver/utils/zugferd/maybeZugferdPdf.ts (diff)
The file was modifiedserver/api/invoices/lexoffice-upload.post.ts (diff)