|
@@ -194,6 +194,9 @@ define(['app/app'], function(app) {
|
|
|
if (Number(data.currentTaxUnitPrice) <= 0){
|
|
if (Number(data.currentTaxUnitPrice) <= 0){
|
|
|
data.currentTaxUnitPrice = 0.000001;
|
|
data.currentTaxUnitPrice = 0.000001;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (Number(data.currentTaxUnitPrice) > 100000){
|
|
|
|
|
+ data.currentTaxUnitPrice = 100000;
|
|
|
|
|
+ }
|
|
|
data.currentTaxUnitPrice = Number(NumberService.toCeil(data.currentTaxUnitPrice, 6));
|
|
data.currentTaxUnitPrice = Number(NumberService.toCeil(data.currentTaxUnitPrice, 6));
|
|
|
$scope.purchase.currentTotal = 0;
|
|
$scope.purchase.currentTotal = 0;
|
|
|
angular.forEach($scope.purchase.purchaseDetails, function (detail) {
|
|
angular.forEach($scope.purchase.purchaseDetails, function (detail) {
|