I think you should reconsider your scheme. If you can change Qtyto an array and add a date to the field date, this will help a lot.
{
"Type" : "one",
"Qty" : [
{
"date": "10-Dec"
"value" : 58
},
{
"date": "11-Dec"
"value" : 83
}
]
},
{
"Type" : "two",
"Qty" : [
{
"date": "10-Dec"
"value" : 4
},
"date": "11-Dec"
"value" : 7
},
"date": "12-Dec"
"value" : 8
}
]
}
You can effectively use indexes and aggregation structure to make your bills.
If this is not an option, I would suggest combining this data into an additional field and update this field when inserting / updating.