This code actually looks correct to me. I'm afraid I'd have to actively debug it in a screen sharing session to figure out what isn't working. Does your customer see a checkout form and fill in all of their billing information when they are a wholesaler?
Maybe the issue is that the checkout form isn't displayed because it is expecting to get that from paypal?
I'd start by putting a die() statement after line 159 to see if the values look correct there like:
They probably wouldn't, since it doesn't work. Then I'd see if the persistent form values are set properly like:
I'm assuming they would be, since the paypal checkout works.... from there I'd try to figure out why individual references aren't working like:
echo("first name:" . (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name')))) . "<br>");
Somewhere along the line there would be an issue that would give you more to go on, but I'd have to see the results and debug it actively to figure it out.