mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1993: feat(action-handler, printing, schemas)
1 commit: Bestellbestätigung drucken 2. commit: Schemas 3. commit: Action/Command handler feat(action-handler, printing, schemas): add handle command service for automated action execution Implement HandleCommandService and facade to execute order actions automatically after reward collection. Add action handler infrastructure with 23 handlers (Accepted, Arrived, Assembled, etc.). Integrate automatic receipt fetching for print commands. Add schema validation for command handling and receipt queries. Update reward confirmation to trigger actions after successful collection. - Add HandleCommandService with command orchestration - Add HandleCommandFacade as public API layer - Create schemas: HandleCommandSchema, FetchReceiptsByOrderItemSubsetIdsSchema - Add helpers: getMainActions, buildItemQuantityMap - Register 23 action handlers in reward confirmation routes - Support PRINT_SHIPPINGNOTE and PRINT_SMALLAMOUNTINVOICE auto-fetching - Update CoreCommandModule for forRoot/forChild patterns - Add comprehensive unit tests for new services and helpers - Apply prettier formatting to command and printing modules Ref: #5394
This commit is contained in:
committed by
Lorenz Hilpert
parent
53a062dcde
commit
a49ea25fd0
@@ -12,7 +12,7 @@ import { isaActionPrinter } from '@isa/icons';
|
||||
import { PrintService } from '../../services';
|
||||
import { logger } from '@isa/core/logging';
|
||||
|
||||
export type PrintFn = (printer: Printer) => PromiseLike<void>;
|
||||
export type PrintFn = (printer: Printer) => PromiseLike<unknown>;
|
||||
|
||||
/**
|
||||
* A reusable button component that provides print functionality for the application.
|
||||
|
||||
Reference in New Issue
Block a user