Fixed: purchase invoice creation no longer fails with Merit's "Periood liiga pikk(max 3 kuud)" error. The internal getpurchorders duplicate check previously requested a 730-day window, exceeding Merit's hard 3-month limit; it now anchors on the invoice DocDate and clamps the window to ~85 days. Added a regression test asserting the period span never exceeds 3 months.