Initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<button type="button"
|
||||
id="set-interest-rate-btn"
|
||||
subModule="setInterestRate"
|
||||
class="btn btn-default"
|
||||
ng-click="setSubModule($event)">Interest rate</button>
|
||||
<button type="button"
|
||||
id="set-discount-for-customers-btn"
|
||||
subModule="setCustomersDiscount"
|
||||
class="btn btn-default"
|
||||
ng-click="setSubModule($event)">Customers discount</button>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12"
|
||||
id="set-interest-rate-layer"
|
||||
ng-if="isSubmoduleVisible('setInterestRate')">
|
||||
<h3>Set interest rate</h3>
|
||||
<set-interest-rate ng-controller="setInterestRateCtrl" ng-init="getInterestRate()"></set-interest-rate>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12"
|
||||
id="set-customers-discount-layer"
|
||||
ng-if="isSubmoduleVisible('setCustomersDiscount')">
|
||||
<h3>Set customers discount</h3>
|
||||
<set-customers-discount ng-controller="setCustomersDiscountCtrl" ng-init="getCustomersAndDiscount()"></set-customers-discount>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,37 @@
|
||||
<div id="set-customers-discount-module-container">
|
||||
<div class="row">
|
||||
<div class="interest-rate col-md-12">
|
||||
<h4 class="col-md-2">Customer name</h4>
|
||||
<h4 class="col-md-1">Discount</h4>
|
||||
<h4 class="col-md-2">New financing rate</h4>
|
||||
</div>
|
||||
<div ng-repeat="customerDetails in customers track by customerDetails.idCustomer">
|
||||
<div class="customer-info-discount col-md-12">
|
||||
<span class="col-md-2">{{::customerDetails.name}}</span>
|
||||
<div class="customer-discount col-md-1">
|
||||
<input id="discount-input-{{customerDetails.idCustomer}}"
|
||||
class="edit-interest-rate-discount"
|
||||
type="number"
|
||||
placeholder="0"
|
||||
name="customerDiscount"
|
||||
ng-model="discounts[customerDetails.idCustomer]"
|
||||
ng-model-options="{ allowInvalid: true}"
|
||||
min="0"
|
||||
max="{{interestRate-0.01}}"
|
||||
step="0.01" />
|
||||
%
|
||||
</div>
|
||||
<span class="col-md-2">{{getNewInterestRate(customerDetails.idCustomer)}} %</span>
|
||||
</div>
|
||||
<div class="col-md-12 customer-discount-message" ng-if="showMessage">
|
||||
<span class="col-md-offset-1 alert alert-warning">
|
||||
Value should be between 0 and {{getMaxInterestRateValue()}} with maximum 2 decimals
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="btn btn-primary" ng-click="saveCustomersDiscount()">Save</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div id="set-interest-rate-container">
|
||||
<div class="row">
|
||||
<div class="interest-rate col-md-4">
|
||||
<label>Interest rate: </label>
|
||||
<input id="interest-rate-input"
|
||||
class="edit-interest-rate"
|
||||
type="text"
|
||||
placeholder="Interest rate"
|
||||
ng-model="interestRate" /> %
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="btn btn-primary" ng-click="saveInterestRate()">Save</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user