mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
fix(remission-list, remission-data-access): add impediment comment and remaining quantity handling for return suggestions Add support for impedimentComment and remainingQuantity fields when adding return suggestion items. When quantity is less than available stock, automatically set impedimentComment to 'Restmenge' and calculate remainingQuantity as the difference between available stock and remitted quantity. Changes: - Add impedimentComment and remainingQuantity to AddReturnSuggestionItemSchema - Update RemissionReturnReceiptService to handle new fields in addReturnSuggestionItem method - Enhance RemissionListComponent to calculate and pass impediment data when remitting items - Fix quantity calculation logic to properly handle partial remissions Ref: #5322