5 Replies Latest reply: May 14, 2012 5:57 AM by Sandro Pividori RSS

    Distribution of values

    Sandro Pividori

      He.

      I have the following tables:

      Captura.JPG

      I need to distribute the values of the Importe_C Importe_D to reach the following result:

      Captura1.JPG

      Example:

      the Nro_D 9 is canceled with Det_id 6144, then Nro_D 10 is canceled with $ 280 of 6144 Det_id, with $ 2000

      of 6136 Det_id and $ 300 of 6138 Det_id and so on. Of course very grateful for any help you can give me.

      Attached files with data and results.

       

      Regards.