mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 08:48:11 +00:00
feat(warehouses): gate double-handling fee on a per-booking Yes/No
Double handling billed every import with a matching rule. Add bookings.double_handling (+ set_at/by), charge only when Yes, expose a PATCH endpoint (import-only, locked after invoicing, audited) and Yes/No items in the inventory row menu.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsBoolean } from 'class-validator';
|
||||
|
||||
/**
|
||||
* Warehouse staff's post-unloading answer: did these goods have to be
|
||||
* re-handled? Only `true` makes the DOUBLE_HANDLING_FEE rule bill the booking.
|
||||
*/
|
||||
export class SetDoubleHandlingDto {
|
||||
@ApiProperty({
|
||||
description: 'Yes (true) applies the double-handling fee rule; No (false) does not.',
|
||||
})
|
||||
@IsBoolean()
|
||||
doubleHandling!: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user