ERS is a business process between trading partners that conduct commerce without invoices. In an ERS transaction, the supplier ships goods based upon an Advance Shipping Notice (ASN), and the purchase...
The short and quick answer would be to pay them back in the order that they are due with whatever money that you can get from the liquidation. The creditors, however, are to be paid before any partners/stockholders are paid anything from the company.