chip
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
500b68162b
commit
dc0212d2fc
|
@ -78,7 +78,7 @@
|
||||||
label="Currency"
|
label="Currency"
|
||||||
ng-model="$ctrl.invoiceIn.currencyFk"
|
ng-model="$ctrl.invoiceIn.currencyFk"
|
||||||
url="Currencies"
|
url="Currencies"
|
||||||
show-field="name"
|
show-field="code"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
rule>
|
rule>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-one tbody class="taxes">
|
<vn-one tbody class="taxes">
|
||||||
<span td class="chip"><vn-label translate>taxable base</vn-label> {{2 | currency: 'EUR':2}}</spant>
|
<span td class="chip"><vn-label translate>taxable base</vn-label> {{1 | currency: 'EUR':2}}</spant>
|
||||||
<p><vn-label translate>total</vn-label> {{3 | currency: $ctrl.summary.currency.code:2}}</p>
|
<p><vn-label translate>total</vn-label> {{3 | currency: $ctrl.summary.currency.code:2}}</p>
|
||||||
<vn-label>Due day</vn-label>
|
<vn-label>Due day</vn-label>
|
||||||
<vn-chip
|
<vn-chip
|
||||||
|
|
|
@ -5,10 +5,11 @@ vn-invoice-in-summary .summary {
|
||||||
max-width: $width-xl;
|
max-width: $width-xl;
|
||||||
|
|
||||||
|
|
||||||
taxes {
|
.taxes {
|
||||||
border: $border-thin-light;
|
border: $border-thin-light;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin: 3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -26,7 +26,7 @@
|
||||||
data="$ctrl.taxes"
|
data="$ctrl.taxes"
|
||||||
form="form">
|
form="form">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-xl">
|
<form name="form" ng-submit="$ctrl.onSubmit()">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal ng-repeat="invoiceInTax in $ctrl.taxes">
|
<vn-horizontal ng-repeat="invoiceInTax in $ctrl.taxes">
|
||||||
<vn-autocomplete vn-two vn-id="expense" vn-focus
|
<vn-autocomplete vn-two vn-id="expense" vn-focus
|
||||||
|
|
|
@ -5,11 +5,28 @@ class Controller extends Section {
|
||||||
constructor($element, $) {
|
constructor($element, $) {
|
||||||
super($element, $);
|
super($element, $);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
get invoiceIn() {
|
||||||
|
return this._invoiceIn;
|
||||||
|
}
|
||||||
|
|
||||||
|
set invoiceIn(value) {
|
||||||
|
this._invoiceIn = value;
|
||||||
|
if (value) {
|
||||||
|
const filter = {
|
||||||
|
currency: this.invoiceIn.currency
|
||||||
|
}
|
||||||
|
this.$http.get(`ReferenceRates`, {filter})
|
||||||
|
.then(res => this.referenceRate = res.data);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
add() {
|
add() {
|
||||||
|
const defaultExpenseFk = 6000000001;
|
||||||
|
|
||||||
this.$.model.insert({
|
this.$.model.insert({
|
||||||
invoiceIn: this.$params.id,
|
invoiceIn: this.$params.id,
|
||||||
expenseFk: 6000000001
|
expenseFk: defaultExpenseFk
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
|
|
Loading…
Reference in New Issue