var entryTemplate;
var totalInvoicedBox;
var totalPaidBox;
+var balanceOwedBox;
var invoicePane;
var itemTypes;
var virtualId = -1;
invoiceProrateButton.attr('disabled', false);
}
}
+
+ if(!balanceOwedBox) {
+ balanceOwedBox = new dijit.form.CurrencyTextBox(
+ {style : 'width: 6em'}, dojo.byId('acq-invoice-balance-owed'));
+ }
+ balanceOwedBox.attr('value', (totalCost - totalPaid));
}
<td colspan='4'/>
<td>Total Invoiced</td>
<td>Total Paid</td>
+ <td>Balance Owed</td>
</tr>
</thead>
<tbody>
</td>
<td><div id='acq-invoice-total-invoiced'/></td>
<td><div id='acq-invoice-total-paid'/></td>
+ <td><div id='acq-invoice-balance-owed'/></td>
</tr>
</tbody>
</table>