Added batch display in issue.
This commit is contained in:
parent
0f29356f0d
commit
ac11133f97
brewman/brewman
@ -1,6 +1,6 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
# version 2013-01-17.1
|
||||
# version 2013-02-09.1
|
||||
|
||||
CACHE:
|
||||
/partial/404.html
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user