My original post was looking at the outcome from the worst case scenario basis - - the invoice ends up unpaid and in litigation. My suggestion was to try and take what I consider to be a crucial ingredient out of the equation - - any relationship between Company A and Company B, whose existence was known by the supplier.
This avoids the shoulda, coulda, woulda defense. It is not unreasonable to me to envision listening to a judge in court chiding me for expecting payment from Company B when all signs indicated it was a transparency pointing to an actual transaction with Company A. I sold the same product, in the same amount, for delivery to a company I knew was in financial distress. I've driven my car into a tree causing damage. What possessed me to give my car to another driver headed into the same tree? (I know, my analogies leave something to be desired but what can you expect for free?) By eliminating any reference to Company A, you avoid the use of that defense.
Here's another wild thought: Suppose Company B didn't know Company A's credit situation was dire. They discovered that you knew this. They get upset when they don't get paid by Company A and blame you (even though you were not obligated to disclose this information). Legal or not, you as a likely unsecured debtor, must now deal with Company B. To put this to rest, to avoid long payment delays, collection efforts or court, do you discount at all?
Perhaps these scenarios are a long-shot, perhaps wholly implausible. But we have all heard of the Twinkie defense along with a myriad of equally outlandish defenses, many of which prevail. We are all caused grief and time-consuming work because there was a sliver of a hook on which a debtor hangs his hat.
If you have knowledge of something that makes you stop and take pause; why not design the sale with that knowledge in mind? Otherwise, you may be in the complete right legally but you can't always take that to the bank.