added pending to code in sales order, sales return, and payment