pub struct CheckConfig {
pub arithmetic_tolerance_ppm: u32,
pub total_tolerance_ppm: u32,
pub tariff_tolerance_ppm: u32,
pub require_tariff: bool,
pub max_zahlungsziel_days: u16,
}Expand description
Configuration for InvoicCheckEngine::check.
Fields§
§arithmetic_tolerance_ppm: u32Tolerance for arithmetic checks (line quantity × unit price vs. line net), expressed in parts-per-million (ppm). Unsigned — zero means strict equality.
Default: 10_000 ppm = 1 %. Increase for rough invoice types (e.g. MMM
settlement that uses SLP approximations).
total_tolerance_ppm: u32Tolerance for the cross-check between sum of line nets and total net.
Default: 10_000 ppm = 1 %.
tariff_tolerance_ppm: u32Tolerance for tariff deviation findings.
Default: 20_000 ppm = 2 %.
require_tariff: boolWhen true, a missing tariff entry for the sender GLN produces a
Dispute-severity finding. When false (default), it produces Warn.
Set to true once the tariff store is fully seeded and the LF has
received PRICAT 27003 from all active NB counterparties.
max_zahlungsziel_days: u16Maximum allowed payment term (Zahlungsziel) in days from the invoice date
(rechnungsdatum) to the due date (faelligkeitsdatum, DTM+265).
Per §7 Allgemeine Festlegungen V6.1d: standard GPKE and WiM payment term
is 30 days. Set to 0 to disable this check.
Default: 30.
Trait Implementations§
Source§impl Clone for CheckConfig
impl Clone for CheckConfig
Source§fn clone(&self) -> CheckConfig
fn clone(&self) -> CheckConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more