backbone-inventory 0.10.2

Inventory: stock ledger of record (SLE) + moving-average valuation; emits COGS/asset AccountingPost (Delivery/Receipt -> GL)
Documentation
//! Validator for DeliveryNoteItem entity
//!
//! Generated by metaphor-schema. Do not edit manually.
//!
//! Returns an `EntityValidator<DeliveryNoteItem>` pre-loaded with schema-derived
//! field rules. Extend in the `// <<< CUSTOM` zone.

use backbone_core::{EntityValidator, ValidationErrors, ValidationError};
use backbone_core::{NonNegative};
use crate::domain::entity::DeliveryNoteItem;

/// Validator type alias for DeliveryNoteItem entities.
pub type DeliveryNoteItemValidator = EntityValidator<DeliveryNoteItem>;

/// Build a validator for DeliveryNoteItem with all schema-defined field rules.
pub fn delivery_note_item_validator() -> DeliveryNoteItemValidator {
    EntityValidator::new()
        // No schema-derived rules — add custom rules above.
}