If the VAT-exclusive cost of the goods you use is more than two-thirds of the VAT-exclusive price of the whole job, the whole job is charged at the rate for the goods, usually 23%. If the goods cost is two-thirds or less, the reduced rate applies to the whole job.
Example: a job priced at EUR 1,500 before VAT with EUR 1,100 of materials at cost. Two-thirds of EUR 1,500 is EUR 1,000. EUR 1,100 is more, so the whole job is at 23%. Note that the test uses your cost of the goods, not the marked-up selling price.