The late invoice, it is the trade discount cannot subject to vat, so you should calculate vat at amount before deduct 25% (vat will be 36,822.72). Late invoice and vat should calculate from the subtotal ka, so invoice and CWT should be 394,529.15
Edit total of discount 25% late Invoice (brfore VAT) Complete details.
Edit amount discount 25% of late Invoice.
Complete.