-
Committer:
Joel Grand-Guillaume
-
Date:
2013-04-05 07:52:53 UTC
-
mto:
This revision was merged to the branch mainline in
revision
90.
-
Revision ID:
joel.grandguillaume@camptocamp.com-20130405075253-hdsd6lxfju9cfjjz
[FIX][IMP] As we saw that we have a difference in bank statement line type and account finding using manual entry and importation/completion method, we make this refactor implementing a method to determine the type following this rule:
- If the customer checkbox is checked on the found partner, type and account will be customer and receivable
- If the supplier checkbox is checked on the found partner, type and account will be supplier and payable
- If both checkbox are checked or none of them, it'll be based on the amount :
If amount is positif the type and account will be customer and receivable,
If amount is negativ, the type and account will be supplier and payable