Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to calculate startdate and enddate from basic from multiple dictionaries to list of dictionary
    primarykey
    data
    text
    <p><i>How to get from multiple dictionary to list of dictionary and need to calculate startdate and enddate from basic</i></p> <pre><code>[{'basic': 1000.0, 'end_date': '2011-01-31', 'start_date': '2011-01-01'}, {'basic': 1000.0, 'end_date': '2011-05-31', 'start_date': '2011-05-01'}, {'basic': 2000.0, 'end_date': '2012-01-31', 'start_date': '2012-01-01'}, {'basic': 2000.0, 'end_date': '2012-05-31', 'start_date': '2012-05-01'}, {'basic': 2500.0, 'end_date': '2012-07-31', 'start_date': '2012-07-01'}, {'basic': 2500.0, 'end_date': '2012-08-31', 'start_date': '2012-08-01'}, {'basic': 3500.0, 'end_date': '2013-01-31', 'start_date': '2013-01-01'}, {'basic': 3500.0, 'end_date': '2013-02-28', 'start_date': '2013-02-01'}, {'basic': 4000.0, 'end_date': '2013-11-30', 'start_date': '2013-11-01'}] </code></pre> <p>if the basic amount equal i need to combine the equal amount dictionaries and start_date is begin date and end_date is end of year date</p> <p>say for an example </p> <pre><code>{'basic': 1000.0, 'end_date': '2011-01-31', 'start_date': '2011-01-01'}, {'basic': 1000.0, 'end_date': '2011-05-31', 'start_date': '2011-05-01'}, </code></pre> <p>two dictionary equal so i need to get like this </p> <pre><code>[{'basic': 1000.0, 'start_date': '2011-01-01', 'end_date': '2011-12-31',}, {'basic': 2000.0, 'start_date': '2012-01-01', 'end_date': '2012-06-31', }, {'basic': 2500.0, 'start_date': '2012-07-01', 'end_date': '2012-12-31',}, {'basic': 3500.0, 'start_date': '2013-01-01', 'end_date': '2013-10-31'}, {'basic': 4000.0, 'start_date': '2013-11-01', 'end_date': '2013-12-30'}] </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload