Drunk and broke, Brent Andrew Duncan decided the best way to gather more beer money was to burgle the potato factory where he worked.

The 29-year-old Balclutha man was sentenced to three months' community detention (on a weekend curfew) when he appeared in the Dunedin District Court yesterday.

But, in an unusual move, Judge Michael Turner suspended the sentence for a short period on October 21 so Duncan could walk his sister down the aisle on her wedding day.

Defence counsel Meg Scally explained: her client's father was estranged from the family and the defendant had been given the job on his sister's big day.


He would not be participating in the ''after match'', the judge warned.

Duncan had stopped drinking since the incident on July 15 in any case, Ms Scally said.

''Alcohol had a significant bearing in that they had run out of money and had committed this offending to purchase more alcohol,'' she said.

Duncan had been drinking with a friend on the day but by 10pm they had run out of alcohol.

The defendant had worked at the Kowhai Farms potato factory in Stirling for four years when he decided to fleece his employer.

Once at the premises, he removed a security bar, climbed through the window and made his way to the office.

After breaking into a metal cabinet, Duncan took $760 from a cash tin.

That was not enough.

He took a key, unlocked the main factory and swiped another $40 from a different cash box.

Within hours, a manager got to work, called police and upon reviewing CCTV footage quickly found Duncan was responsible for the break-in.

When speaking to police, he admitted it was a ''dumb thing to do''.

Judge Turner said the defendant had a different explanation for the offending when he spoke to Probation.

Duncan said he had been trying to get his manager in trouble because their working relationship had deteriorated.

He had a limited criminal history, the judge said. A conviction for theft in 2015 was of prime relevance.

As well as the community detention term, Judge Turner sentenced him to six months' supervision and ordered him to repay the $800 he took.