If tax liability is below provisional + buffer (need more tax): Dr Inventory / Cr Closing Stock — increases closing stock, lowers COGS, raises profit & tax.
If tax liability exceeds provisional by more than R500: Dr Closing Stock / Cr Inventory — reduces closing stock, raises COGS, lowers profit & tax back toward the target.