imansoltani / HelloDi

MIT License
0 stars 0 forks source link

On changing credit limit, user enter final value #64

Open msajadi824 opened 10 years ago

msajadi824 commented 10 years ago

user don't enter an value to add before credit limit and enter final value.

imansoltani commented 10 years ago

Attention: when distributor increase retailer credit limit, there must be a tranaction on the distributor's account. for example:

state 1) retailer credit limit = 0.00 state 2) distributor increase retailer's credit limit to 100.00 => transaction on distributor's account = 0.00-100.00 = -100.00 & credit_limit.amount = account.credit_limit = 100.00 state 3) distributor decrease retailer's credit limit to 40.00 credit_limit.amount = account.credit_limit = 40.00