bug fixed
This commit is contained in:
parent
a6dfdc971a
commit
9fc14c70ae
|
@ -12,7 +12,7 @@ module.exports = function(Self) {
|
|||
return !isNaN(value) && value != 0;
|
||||
}
|
||||
|
||||
Self.validateBinded('companyFk', isOfficialCompany, {
|
||||
Self.validateAsync('companyFk', isOfficialCompany, {
|
||||
message: 'Company has to be official'
|
||||
});
|
||||
|
||||
|
|
|
@ -43,9 +43,8 @@
|
|||
<vn-input-number
|
||||
vn-focus
|
||||
label="Amount"
|
||||
ng-model="$ctrl.receipt.amountPaid"
|
||||
ng-model="$ctrl.amountPaid"
|
||||
step="0.01"
|
||||
rule
|
||||
required="true">
|
||||
</vn-input-number>
|
||||
</vn-horizontal>
|
||||
|
|
|
@ -17,6 +17,7 @@ class Controller extends Dialog {
|
|||
|
||||
set amountPaid(value) {
|
||||
this.receipt.amountPaid = value;
|
||||
this.amountToReturn = this.deliveredAmount - value;
|
||||
}
|
||||
|
||||
get amountPaid() {
|
||||
|
|
Loading…
Reference in New Issue