[IMP]: Updated stock ageing report
This commit is contained in:
parent
82089dc1d3
commit
ec9f101624
@ -58,7 +58,9 @@ class StockAgeingReport(models.AbstractModel):
|
||||
product, location_id, branch_id, company_id, final_dates)
|
||||
product_dict = {'product_id': product.name_get()[0][1],
|
||||
'qty_period_list': qty_period_list,
|
||||
'qty_available': sum(qty_period_list)}
|
||||
'qty_available': sum(qty_period_list),
|
||||
'total_amount': sum(qty_period_list) *
|
||||
product.list_price}
|
||||
product_list.append(product_dict)
|
||||
return product_list
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Brnach: </b></td>
|
||||
<td><b>Branch: </b></td>
|
||||
<td t-foreach="data['branch']" t-as="branch_id">
|
||||
<span t-esc="branch_id.name"/>
|
||||
</td>
|
||||
@ -62,7 +62,8 @@
|
||||
<th t-foreach="data['period_list']" t-as="period">
|
||||
<span t-esc="period"/>
|
||||
</th>
|
||||
<th>Total</th>
|
||||
<th>Total Qty</th>
|
||||
<th>Total Cost</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -76,6 +77,9 @@
|
||||
<td>
|
||||
<span t-esc="product['qty_available']"/>
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="product['total_amount']"/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user