* Brian Dunnette [2011-05-11 21:09 +0200]:
Greetings-
Hello,
We're working to get Tryton set up for our local non-profit, and we're
running into a problem: we frequently take in donations as well as give
things away - we'd like to track these as "purchases" and "sales", but by
default, neither sales nor purchases allow items with a price of zero (at
least in 1.8.x).
Is there a way to work around this limitation?
What you could do it the following:
- add a boolean field that mark the line as free
- override the function field of sale.line ('get_amount' I think)
that when this boolean field is ticked will return 0
- I guess that for purchase line, it will work the same way
--
Nicolas Évrard
B2CK SPRL
rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
E-mail/Jabber: [email protected]
Website: http://www.b2ck.com/
--
[email protected] mailing list