chip
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2021-06-16 18:36:42 +02:00
parent 500b68162b
commit dc0212d2fc
5 changed files with 24 additions and 6 deletions

View File

@ -78,7 +78,7 @@
label="Currency"
ng-model="$ctrl.invoiceIn.currencyFk"
url="Currencies"
show-field="name"
show-field="code"
value-field="id"
rule>
</vn-autocomplete>

View File

@ -46,7 +46,7 @@
</vn-vertical>
</vn-one>
<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>
<vn-label>Due day</vn-label>
<vn-chip

View File

@ -5,10 +5,11 @@ vn-invoice-in-summary .summary {
max-width: $width-xl;
taxes {
.taxes {
border: $border-thin-light;
text-align: right;
padding: 8px;
font-size: 1.2rem;
margin: 3px;
}
}

View File

@ -26,7 +26,7 @@
data="$ctrl.taxes"
form="form">
</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-horizontal ng-repeat="invoiceInTax in $ctrl.taxes">
<vn-autocomplete vn-two vn-id="expense" vn-focus

View File

@ -5,11 +5,28 @@ class Controller extends Section {
constructor($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() {
const defaultExpenseFk = 6000000001;
this.$.model.insert({
invoiceIn: this.$params.id,
expenseFk: 6000000001
expenseFk: defaultExpenseFk
});
}
onSubmit() {