Added batch display in issue.

This commit is contained in:
Tanshu 2013-02-09 19:22:31 +05:30
parent 0f29356f0d
commit ac11133f97
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
CACHE MANIFEST
# version 2013-01-17.1
# version 2013-02-09.1
CACHE:
/partial/404.html

View File

@ -77,6 +77,7 @@
<thead>
<tr>
<th>Product</th>
<th>Batch</th>
<th>Quantity</th>
<th>Rate</th>
<th>Amount</th>
@ -86,6 +87,7 @@
<tbody id="tbodyMain">
<tr ng-repeat="inventory in voucher.Inventories">
<td>{{inventory.Product.Name}}</td>
<td>{{inventory.Batch.Name}}</td>
<td>{{inventory.Quantity}}</td>
<td>{{inventory.Rate}}</td>
<td>{{inventory.Amount}}</td>

View File

@ -166,7 +166,7 @@ def voucher_info(voucher):
'Tax': item.tax, 'Discount': item.discount, 'Amount': item.amount,
'Product': {'ProductID': item.product.id, 'Name': item.product.full_name, 'Units': item.product.units,
'Price': item.rate},
'Batch': {'BatchID': item.batch.id, 'QuantityRemaining': item.batch.quantity_remaining}})
'Batch': {'BatchID': item.batch.id, 'Name': item.batch.name, 'QuantityRemaining': item.batch.quantity_remaining}})
return json_voucher