Update: A while back I asked "how to reconcile multiple bills with a bill credit" using Suitescript, after a lot of trial and error I determined its not possible if you have more then 10000 bills for that vendor. The only way is through a CSV import and you can execute the saved CSV import via Restlet.
Medium article I published