Open bosue opened 10 months ago
There is an optional validation on Sales Order side and another one at Delivery Note side as well, for credit limit. Doesn't it take care of the scenario you mentioned?
Well, there are various different scenarios in play. I will iterate through each and figure out what needs to be done to get each of them right. This shouldn’t block your PR though.
Feature or bug may be debatable. Either way this is a followup to #37326.
Both credit limit exhaustion and the forthcoming maximum overdue invoices feature will currently lead to a credit block which is fine.
However, the implementation of a credit block seems flawed for quite a few cases.
While you‘d still want to register a sales order, you might either want to put it on Hold until the credit block is lifted, so only a Payment Request may be issued, or you might want to issue a Sales Invoice limited to:
The central piece and first step would be putting Sales Orders on Hold here. From there, we need to figure out the rest.
Note that freezing a customer may and should be more than just a mere credit block. You wouldn‘t allow anything to be issued at all, not even a payment request, e.g. in the case of a money laundring or fraud suspect. But that‘s a different issue.
Module
accounts, selling
Version
Frappe / ERPNext: dev