2nd issue is Cash discount. Cash discount is to be allow on Invoice.
Please check attached consolidate ledger
Created attachment 48 [details] Ledger
Created attachment 47 [details] Customer ledger Dear Sir, System issue Invoice without credit limit & if credit balance in customer ledger Cash discount not allowed on invoice. As per company policy Cash discount to be allow on invoice. As party ledger attached for your reference.