Well, she's not allowed to poo at night
Sorry, but that's not going to work - you can't tell a dog (or any other living creature) that they can't poo when they need to.
If you don't want her to poo at night, you need to adjust her meal times so she poos at other times where you have time to take her out for a walk.
If she poos loads, maybe it would be worth having a look at when she gets food, chews and treats. If I feed my dog treats and chews many times a day, she will be pooing all the time.
It sounds like you need to start over with house training.
It works keeping a constant eye on the puppy and take it out whenever it's been eating, sleeping, drinking and playing. As well as when it's searching for somewhere to pee/poo.
When the puppy pees or poos outside, you praise it like there's no tomorrow. We gave our dog a treat as well - it worked for us.
When the puppy pees or poos inside the house, just clean it up. Don't shout at the dog and don't punish - there's simply no point in it.
And you need to be patient with the dog. The owners need to teach the dog what to do - you can't expect a dog to know what is expected.
Teach a dog what you want it to do rather than focusing on what you don't want it to do.
It is hard work having a dog - and house training takes a lot of time and energy.
For the whining when you go upstairs, you need to train being alone.