Hi,
Sorry for the delay, i have posted the undated version, this version will replace the current version as they are completely different.
all credit checking is done in the payment module and not out side it, also have standardised the naming converstion.
this is still beta, but working.
things to do,
add a paid button on customers orders when they have paid so it will increase credit limted and time limited the payment ie if no payment within 45 day it auto freezes the credit account for non payment.
what does eveyone think of it?