@@ -90,7 +90,7 @@
Packing |
Grouping |
Buying value |
- Package |
+ Box |
Volume |
@@ -125,7 +125,16 @@
{{::buy.buyingValue | currency: 'EUR':2}} |
- {{::buy.packageFk | dashIfEmpty}} |
+
+
+
+ |
{{::buy.volume | number}} |
diff --git a/modules/entry/front/buy/import/index.js b/modules/entry/front/buy/import/index.js
index 08e5153805..15cdba7049 100644
--- a/modules/entry/front/buy/import/index.js
+++ b/modules/entry/front/buy/import/index.js
@@ -30,7 +30,7 @@ class Controller extends Section {
this.$.$applyAsync(() => {
this.import.invoice = invoice.id_invoice;
- this.import.description = invoice.tx_awb;
+ this.import.observation = invoice.tx_awb;
const boxes = invoice.boxes;
const buys = [];
@@ -48,7 +48,13 @@ class Controller extends Section {
});
}
}
- this.import.buys = buys;
+
+ const params = {buys};
+ const query = `Entries/${this.entry.id}/importPreview`;
+ this.$http.get(query, {params}).then(res => {
+ this.import.buys = res.data;
+ });
+ // this.import.buys = buys;
});
}