Erpnext Agriculture - Connect Farmers to Distributors

We want to do the following and need some ideas from the group- Connect Farmers to Distribotors who buy their product to banks who finance end to end.

Would this work

  • Install Erpnext for Agricuture
    -enable Retail and Distribution also
  • Farmer need to to able to sell their product to distributors
    -Distrutors need to be able to sell invoices to Banks who will finance receibables for Distributors and pay farmers quicker.

How can we set this up. I recognize we may need to customize some code.