Hi,
Payment terms is maintained at Customer master->sales area data( KNVV-ZTERM). During sales order creation for the customer, the system propose the payment terms maintained in customer master. The user has the option to override the payment terms in the sales order ( editable field). Generally, in billing payment terms gets copied from the payment terms in the sales order.
Regards,
DPM