Le mercredi 18 juillet 2012 00:29:31 UTC+2, Cédric Krier a écrit :
>
> On 17/07/12 03:19 -0700, guly200 wrote: 
> > Thanks Cedric 
> > 
> > I thought of doing the following on the invoice line object: 
> > - add one function field "base_quantity" 
> > - add one function field "percentage" 
> > 
> > on each of these function fields, declare a "setter" function that will 
> > calculate : base_quantity x percentage / 100 
> > The result will be written by the setter function in the original tryton 
> > "quantity" field ? 
> > I will hide the original quantity field and make sure a uom of "unit" 
> gets 
> > enought digits to be relevant ? 
> > 
> > Doing this I would not break anything ? 
> > And I could create invoices with a wizard requesting a percentage for 
> each 
> > line and checking that it does not exceed the reminder ? 
> > what do you think ? Did I overlook something ? 
>
> I think it is a bad idea. 
> What is exactly your purpose? 
>
>
Let me clarify the situation:
We are a service company. We have a sale order with big item lines which we 
invoice in steps, let's say:
    30% upon milestone A
    50% upon milestone B
    20% upon milestone C

So if in the sale order we have:
    description     quantity     unit price    amount
    my service          1             100            100 

The customer wants to see 3 invoices with lines like:
    description     quantity     percentage    unit price    amount
    my service          1               30%           100             30 
    
I hope the situation is more clear for you

 

-- 
-- 
[email protected] mailing list



Reply via email to