It tests the sales header and individual  sales lines to see whether the credit limit has been exceeded.
Preizkusi glavo prodaje in posamezne vrstice prodaje, da bi ugotovil, ali je bil kreditni limit presežen.