This question has been flagged

I need to prevent customers paying invoices if they don't have deposit. How to check the deposits of customer when they pay their invoices? Total receivable will be (-) if the customer have deposit otherwise it will be (+)

Can you show me an example code?

Avatar
Discard
Best Answer

This information is on the Accounting tab of the Customer record:

image description

Avatar
Discard
Author

But how do i check it by code, i need to check the total receivable when customer pay their invoices. Can you show me an example code?

Have a look at https://www.openerp.com/apps/6.1/partner_credit_limit/ - it is a module that checks total receivable and credit limit before approving a sales order.

Author

Thanks..i will have a look at it :-)