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:
Hagernesh
2026-07-25 10:44:41 +00:00
parent 43b053bf71
commit 6983645347
10 changed files with 280 additions and 2 deletions

View File

@@ -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;
}