|
|
|
@ -3,35 +3,49 @@
|
|
|
|
|
width: 95%;
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
|
|
|
|
.panel-heading-new {
|
|
|
|
|
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
|
|
|
|
background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
|
|
|
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3));
|
|
|
|
|
background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
|
|
|
|
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
|
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
|
color: #31708f;
|
|
|
|
|
background-color: #d9edf7;
|
|
|
|
|
border-color: #bce8f1;
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
|
border-top-left-radius: 3px;
|
|
|
|
|
border-top-right-radius: 3px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<h3>Bank Account
|
|
|
|
|
<a class="small" role="button" ng-click="bankCtrl.edit=true"
|
|
|
|
|
ng-if="!bankCtrl.edit && (('11'|withRole)||((!partner.approve_result||partner.approve_result>4) && ('111'|withRole)))">
|
|
|
|
|
<i class="fa fa-edit"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="panel panel-info">
|
|
|
|
|
<div class="panel-heading" >
|
|
|
|
|
<h4>
|
|
|
|
|
Settle Rule Config
|
|
|
|
|
|
|
|
|
|
</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-if="partner.surcharge_mode=='distributed'">
|
|
|
|
|
<label class="col-sm-4">手续费账户余额</label>
|
|
|
|
|
<div class="col-sm-6" style="font-size: 25px">
|
|
|
|
|
<label class="control-label col-sm-2">手续费账户余额</label>
|
|
|
|
|
<div class="col-sm-10" style="font-size: 25px">
|
|
|
|
|
<p>{{surcharge.balance | currency:'AUD'}}<i class="fa fa-bars"
|
|
|
|
|
style="font-size: 15px;color: #3c8dbc;cursor: pointer;padding-left: 15px"
|
|
|
|
|
ng-click="surchargeAccountDetail()"></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-if="partner.surcharge_mode=='distributed'">
|
|
|
|
|
<label class="col-sm-4">允许手续费账户欠款</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-2">允许手续费账户欠款</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="checkbox" ng-model="partner.allow_surcharge_credit" bs-switch
|
|
|
|
|
switch-change="allowSurchargeCredit(partner.allow_surcharge_credit)">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4">Surcharge Mode</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-2">Surcharge Mode</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p>
|
|
|
|
|
<span ng-if="partner.surcharge_mode=='balance'">balance
|
|
|
|
|
<i class="fa fa-sort" style="color: #3c8dbc;cursor: pointer"
|
|
|
|
@ -49,36 +63,36 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-if="'modify_tax_in_surcharge'|withFunc">
|
|
|
|
|
<label class="col-sm-4">RoyalPay Pay GST</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-2">RoyalPay Pay GST</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="checkbox" ng-model="partner.tax_in_surcharge" bs-switch
|
|
|
|
|
switch-change="taxInSurcharge(partner.tax_in_surcharge)">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-if="('10'|withRole)">
|
|
|
|
|
<label class="col-sm-4">Merchant Pay GST  <small><em>(消费者承担手续费时生效)</em></small></label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-2">Merchant Pay GST  <small><em>(消费者承担手续费时生效)</em></small></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="checkbox" ng-model="partner.customer_tax_free" bs-switch
|
|
|
|
|
switch-change="customerTaxFree(partner.customer_tax_free)">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-if="'modify_skip_clear'|withFunc">
|
|
|
|
|
<label class="col-sm-4">Skip Clearing</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-2">Skip Clearing</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="checkbox" ng-model="partner.skip_clearing" bs-switch
|
|
|
|
|
switch-change="skipClearing(partner.skip_clearing)">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-if="'modify_skip_clear'|withFunc">
|
|
|
|
|
<label class="col-sm-4">Pre Settle</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-2">Pre Settle</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="checkbox" ng-model="partner.enable_presettle" bs-switch
|
|
|
|
|
switch-change="switchPreSettle(partner.enable_presettle)">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-if="'modify_min_settle'|withFunc">
|
|
|
|
|
<label class="col-sm-4" for="minSettleEdit">Min Settle</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-2" for="minSettleEdit">Min Settle</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p ng-if="!bankCtrl.modify_min_settle" class="form-control-static">
|
|
|
|
|
<span ng-if="partner.min_settle">AU$</span>{{partner.min_settle || 'Not Configure'}}
|
|
|
|
|
<a role="button" ng-click="bankCtrl.modify_min_settle=true"><i class="fa fa-edit"></i></a>
|
|
|
|
@ -101,15 +115,308 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4">Manual Settle</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<p>
|
|
|
|
|
<span ng-if="partner.manual_settle">Y</span>
|
|
|
|
|
<span ng-if="!partner.manual_settle">N</span>
|
|
|
|
|
<label class="control-label col-sm-2">Manual Settle</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p style="height:30px; line-height:30px; ">
|
|
|
|
|
<span ng-if="partner.manual_settle" style="text-align: center">Y</span>
|
|
|
|
|
<span ng-if="!partner.manual_settle" style="text-align: center">N</span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="settleRule.enable_cross_payment&&sysParams['app.settle-workday-only']!='true'" >
|
|
|
|
|
<div class="panel-heading-new" >
|
|
|
|
|
<h4>
|
|
|
|
|
Cross Payment Settle Rule Config
|
|
|
|
|
<a class="small" role="button" ng-if="!settle_rule_form.edit" ng-click="settle_rule_form.edit=true">
|
|
|
|
|
<i class="fa fa-edit"></i></a>
|
|
|
|
|
</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="row form-horizontal">
|
|
|
|
|
<!--<div class="form-group">-->
|
|
|
|
|
<!--<label class="control-label col-sm-2" for="settle_rule_manual">{{'settle_rule_config.manual_settle'|translate}}</label>-->
|
|
|
|
|
<!--<div class="col-sm-10">-->
|
|
|
|
|
<!--<input type="checkbox" bs-switch ng-readonly="!settle_rule_form.edit"-->
|
|
|
|
|
<!--ng-model="settleRule.manual" id="settle_rule_manual">-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div class="form-group">-->
|
|
|
|
|
<!--<label class="control-label col-sm-2" for="settle_rule_hour">{{'settle_rule_config.settle_hour'|translate}}</label>-->
|
|
|
|
|
<!--<div class="col-sm-10">-->
|
|
|
|
|
<!--<select ng-model="settleRule.hour" id="settle_rule_hour" class="form-control" ng-readonly="!settle_rule_form.edit"-->
|
|
|
|
|
<!--ng-options="hour.value as hour.label for hour in settleHours"></select>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-if="(!settleRule.manual&&settleRule.everyday&&!settle_rule_form.edit)||(!settleRule.manual&&settle_rule_form.edit)">
|
|
|
|
|
<div ng-if="!settle_rule_form.edit">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="settle_rule_everyday">Type</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<span ng-if="settleRule.everyday" readonly>Everyday</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="settle_rule_form.edit">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="settle_rule_everyday">Everyday</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="checkbox" bs-switch ng-readonly="!settle_rule_form.edit"
|
|
|
|
|
ng-model="settleRule.everyday" id="settle_rule_everyday">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-if="!settleRule.manual && !settleRule.everyday">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="settle_rule_type">Type</label>
|
|
|
|
|
<div class="col-sm-10" ng-if="!settle_rule_form.edit">
|
|
|
|
|
<span ng-if="settleRule.rule_type=='DAY_OF_MONTH'"
|
|
|
|
|
readonly>Every Month</span>
|
|
|
|
|
<span ng-if="settleRule.rule_type=='DAY_OF_WEEK'"
|
|
|
|
|
readonly>Every Week</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-10" ng-if="settle_rule_form.edit">
|
|
|
|
|
<select class="form-control" ng-model="settleRule.rule_type" id="settle_rule_type"
|
|
|
|
|
ng-change="settleRule.days=[]">
|
|
|
|
|
<option value="">Select Type</option>
|
|
|
|
|
<option value="DAY_OF_MONTH">Every Month</option>
|
|
|
|
|
<option value="DAY_OF_WEEK">Every Week</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-if="!settleRule.manual && !settleRule.everyday && settleRule.rule_type=='DAY_OF_WEEK'">
|
|
|
|
|
<label class="control-label col-sm-2">Days</label>
|
|
|
|
|
<div class="col-sm-10" ng-if="!settle_rule_form.edit">
|
|
|
|
|
<span ng-if="settleRule.days.indexOf('1')>=0"
|
|
|
|
|
readonly>Sunday</span>
|
|
|
|
|
<span ng-if="settleRule.days.indexOf('2')>=0" readonly>
|
|
|
|
|
Monday</span>
|
|
|
|
|
<span ng-if="settleRule.days.indexOf('3')>=0" readonly>
|
|
|
|
|
Tuesday</span>
|
|
|
|
|
<span ng-if="settleRule.days.indexOf('4')>=0"
|
|
|
|
|
readonly>Wednesday</span>
|
|
|
|
|
<span ng-if="settleRule.days.indexOf('5')>=0"
|
|
|
|
|
readonly>Thursday</span>
|
|
|
|
|
<span ng-if="settleRule.days.indexOf('6')>=0" readonly>
|
|
|
|
|
Friday</span>
|
|
|
|
|
<span ng-if="settleRule.days.indexOf('7')>=0"
|
|
|
|
|
readonly>Saturday</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<div class="btn-group" ng-if="settle_rule_form.edit">
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:settleRule.days.indexOf('1')>=0}"
|
|
|
|
|
ng-click="toggleSettleRuleDay('1')">Sunday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:settleRule.days.indexOf('2')>=0}"
|
|
|
|
|
ng-click="toggleSettleRuleDay('2')">Monday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:settleRule.days.indexOf('3')>=0}"
|
|
|
|
|
ng-click="toggleSettleRuleDay('3')">Tuesday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:settleRule.days.indexOf('4')>=0}"
|
|
|
|
|
ng-click="toggleSettleRuleDay('4')">Wednesday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:settleRule.days.indexOf('5')>=0}"
|
|
|
|
|
ng-click="toggleSettleRuleDay('5')">Thursday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:settleRule.days.indexOf('6')>=0}"
|
|
|
|
|
ng-click="toggleSettleRuleDay('6')">Friday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:settleRule.days.indexOf('7')>=0}"
|
|
|
|
|
ng-click="toggleSettleRuleDay('7')">Saturday
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-if="!settleRule.manual && !settleRule.everyday && settleRule.rule_type=='DAY_OF_MONTH'">
|
|
|
|
|
<label class="control-label col-sm-2">Days</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<div class="date-box">
|
|
|
|
|
<div class="day" ng-repeat="day in settleRule.days">
|
|
|
|
|
<div style="padding: 0" ng-bind="day"></div>
|
|
|
|
|
<div class="del-btn" role="button" ng-if="settle_rule_form.edit"
|
|
|
|
|
ng-click="settleRule.days.splice($index,1)">
|
|
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="day" ng-if="settle_rule_form.edit">
|
|
|
|
|
<div role="button" ng-click="settleAddDay()"><i class="fa fa-calendar"></i></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="settle_rule_min">Min Settle Amount</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="number" class="form-control" ng-readonly="!settle_rule_form.edit" id="settle_rule_min"
|
|
|
|
|
ng-model="settleRule.min">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div class="form-group" ng-if="settleRule.min > 0">-->
|
|
|
|
|
<!--<label class="control-label col-sm-2"-->
|
|
|
|
|
<!--for="settle_rule_max">Max Settle Days</label>-->
|
|
|
|
|
<!--<div class="col-sm-10">-->
|
|
|
|
|
<!--<input type="number" class="form-control" ng-readonly="!settle_rule_form.edit" id="settle_rule_max"-->
|
|
|
|
|
<!--ng-model="settleRule.max_settle_days">-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="panel-footer" ng-if="settle_rule_form.edit">
|
|
|
|
|
<button class="btn btn-success" ng-click="submitSettleRule()"> Save</button>
|
|
|
|
|
<button class="btn btn-danger" ng-click="cancelSettleRule()"> Cancel</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="settleRule.enable_card_payment&&sysParams['app.settle-workday-only']!='true'" >
|
|
|
|
|
<div class="panel-heading-new" >
|
|
|
|
|
<h4>
|
|
|
|
|
Card Payment Settle Rule Config
|
|
|
|
|
<span ng-if="statusCtrl.isShowSwitchButton" style="margin-left: 5px;">
|
|
|
|
|
<input type="checkbox" name="switch" id="switch">
|
|
|
|
|
</span>
|
|
|
|
|
<a class="small" role="button" ng-if="!statusCtrl.isCanEdit && !statusCtrl.isShowSwitchButton"
|
|
|
|
|
ng-click="statusCtrl.isCanEdit=true">
|
|
|
|
|
<i class="fa fa-edit"></i></a>
|
|
|
|
|
</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="panel-body" ng-if="statusCtrl.isShowSettings">
|
|
|
|
|
<div class="row form-horizontal">
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-if="(!cardSettings.manual&&cardSettings.everyday&&!statusCtrl.isCanEdit)||(!cardSettings.manual&&statusCtrl.isCanEdit)">
|
|
|
|
|
<div ng-if="!statusCtrl.isCanEdit">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="settle_rule_everyday">Type</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<span ng-if="cardSettings.everyday" readonly>Everyday</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="statusCtrl.isCanEdit">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="settle_rule_everyday">Everyday</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="checkbox" bs-switch ng-readonly="!statusCtrl.isCanEdit"
|
|
|
|
|
ng-model="cardSettings.everyday" id="settle_rule_everyday">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-if="!cardSettings.manual && !cardSettings.everyday">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="settle_rule_type">Type</label>
|
|
|
|
|
<div class="col-sm-10" ng-if="!statusCtrl.isCanEdit">
|
|
|
|
|
<span ng-if="cardSettings.rule_type=='DAY_OF_MONTH'"
|
|
|
|
|
readonly>Every Month</span>
|
|
|
|
|
<span ng-if="cardSettings.rule_type=='DAY_OF_WEEK'"
|
|
|
|
|
readonly>Every Week</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-10" ng-if="statusCtrl.isCanEdit">
|
|
|
|
|
<select class="form-control" ng-model="cardSettings.rule_type" id="settle_rule_type"
|
|
|
|
|
ng-change="cardSettings.days=[]">
|
|
|
|
|
<option value="">Select Type</option>
|
|
|
|
|
<option value="DAY_OF_MONTH">Every Month</option>
|
|
|
|
|
<option value="DAY_OF_WEEK">Every Week</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-if="!cardSettings.manual && !cardSettings.everyday && cardSettings.rule_type=='DAY_OF_WEEK'">
|
|
|
|
|
<label class="control-label col-sm-2">Days</label>
|
|
|
|
|
<div class="col-sm-10" ng-if="!statusCtrl.isCanEdit">
|
|
|
|
|
<span ng-if="cardSettings.days.indexOf('1')>=0"
|
|
|
|
|
readonly>Sunday</span>
|
|
|
|
|
<span ng-if="cardSettings.days.indexOf('2')>=0" readonly>
|
|
|
|
|
Monday</span>
|
|
|
|
|
<span ng-if="cardSettings.days.indexOf('3')>=0" readonly>
|
|
|
|
|
Tuesday</span>
|
|
|
|
|
<span ng-if="cardSettings.days.indexOf('4')>=0"
|
|
|
|
|
readonly>Wednesday</span>
|
|
|
|
|
<span ng-if="cardSettings.days.indexOf('5')>=0"
|
|
|
|
|
readonly>Thursday</span>
|
|
|
|
|
<span ng-if="cardSettings.days.indexOf('6')>=0" readonly>
|
|
|
|
|
Friday</span>
|
|
|
|
|
<span ng-if="cardSettings.days.indexOf('7')>=0"
|
|
|
|
|
readonly>Saturday</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<div class="btn-group" ng-if="statusCtrl.isCanEdit">
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:cardSettings.days.indexOf('1')>=0}"
|
|
|
|
|
ng-click="toggleCardSettingsDay('1')">Sunday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:cardSettings.days.indexOf('2')>=0}"
|
|
|
|
|
ng-click="toggleCardSettingsDay('2')">Monday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:cardSettings.days.indexOf('3')>=0}"
|
|
|
|
|
ng-click="toggleCardSettingsDay('3')">Tuesday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:cardSettings.days.indexOf('4')>=0}"
|
|
|
|
|
ng-click="toggleCardSettingsDay('4')">Wednesday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:cardSettings.days.indexOf('5')>=0}"
|
|
|
|
|
ng-click="toggleCardSettingsDay('5')">Thursday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:cardSettings.days.indexOf('6')>=0}"
|
|
|
|
|
ng-click="toggleCardSettingsDay('6')">Friday
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-default" ng-class="{active:cardSettings.days.indexOf('7')>=0}"
|
|
|
|
|
ng-click="toggleCardSettingsDay('7')">Saturday
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-if="!cardSettings.manual && !cardSettings.everyday && cardSettings.rule_type=='DAY_OF_MONTH'">
|
|
|
|
|
<label class="control-label col-sm-2">Days</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<div class="date-box">
|
|
|
|
|
<div class="day" ng-repeat="day in cardSettings.days">
|
|
|
|
|
<div style="padding: 0" ng-bind="day"></div>
|
|
|
|
|
<div class="del-btn" role="button" ng-if="statusCtrl.isCanEdit"
|
|
|
|
|
ng-click="cardSettings.days.splice($index,1)">
|
|
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="day" ng-if="statusCtrl.isCanEdit">
|
|
|
|
|
<div role="button" ng-click="setMonthSomeday()"><i class="fa fa-calendar"></i></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="settle_rule_min">Min Settle Amount</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="text" onkeyup="value=value.replace(/[^\d.]/g,'')" class="form-control" ng-readonly="!statusCtrl.isCanEdit"
|
|
|
|
|
ng-model="cardSettings.min">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="panel-footer" ng-if="statusCtrl.isShowSettings && statusCtrl.isCanEdit">
|
|
|
|
|
<button class="btn btn-success" ng-click="submitCardSettings()">Save</button>
|
|
|
|
|
<button class="btn btn-danger" ng-click="cancelCardSettings()">Cancel</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<h3>Bank Account
|
|
|
|
|
<a class="small" role="button" ng-click="bankCtrl.edit=true"
|
|
|
|
|
ng-if="!bankCtrl.edit && (('11'|withRole)||((!partner.approve_result||partner.approve_result>4) && ('111'|withRole)))">
|
|
|
|
|
<i class="fa fa-edit"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-if="'modify_settle_hour'|withFunc">
|
|
|
|
|
<label class="col-sm-4">Settle Hour</label>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|