An Indonesian court on Wednesday jailed a British woman for six months for slapping an immigration officer in an argument over a fine for overstaying her visa.