Created
July 6, 2016 20:39
-
-
Save trplll/27734282c64fc80df4781b1f9648fe67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> | |
<body> | |
<div ng-app="" ng-init="quantity=593117;scost=.2448;totalcost=138196.96;"> | |
<h3>QTY</h3> <input ng-model="quantity"> | |
<h3>Standard Cost</h3> <input ng-model="scost"> | |
<h3>Actual Total Cost</h3><input ng-model="totalcost"> | |
<p>QTY: {{ quantity }}</p> | |
<p>Actual Price/Unit: {{ totalcost /quantity | number:4}}</p> | |
<p>Standard Price/unit: {{ scost }}</p> | |
<p>Actual Total Cost: ${{ totalcost }}</p> | |
<p>Standard Total Cost: ${{ quantity*scost | number:2 }}</p> | |
<p>Purchase price variance: ${{ ((totalcost /quantity)-scost)*quantity | number:2 }}</p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment