@freteclick/quasar-financial-ui 1.0.100 → 1.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<q-btn outline dense
|
|
48
48
|
:to ="{ name: 'ClientInvoiceDetails', params: { id: props.row.id } }"
|
|
49
49
|
:label="props.cols[0].value"
|
|
50
|
-
:style="{color:props.row.color_status}"
|
|
50
|
+
:style="{color:props.row.color_status}"
|
|
51
51
|
class ="full-width"
|
|
52
52
|
/>
|
|
53
53
|
</q-td>
|
|
@@ -353,11 +353,21 @@ export default {
|
|
|
353
353
|
params['searchBy'] = this.filters.text;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
if (this.filters.status != null && this.filters.status.value != -1) {
|
|
357
|
-
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
|
|
356
|
+
// if (this.filters.status != null && this.filters.status.value != -1) {
|
|
357
|
+
// params['status'] = this.filters.status.value;
|
|
358
|
+
// }
|
|
359
|
+
// else {
|
|
360
|
+
// params['status.realStatus'] = ['open', 'pending'];
|
|
361
|
+
// }
|
|
362
|
+
|
|
363
|
+
if (this.filters.status != null) {
|
|
364
|
+
if (this.filters.status.value > 0) {
|
|
365
|
+
params["status"] = this.filters.status.value;
|
|
366
|
+
} else {
|
|
367
|
+
if (this.filters.status.value == -1) {
|
|
368
|
+
params["status.realStatus"] = ["open", "pending", "pay"];
|
|
369
|
+
}
|
|
370
|
+
}
|
|
361
371
|
}
|
|
362
372
|
|
|
363
373
|
if (this.filters.company != null) {
|
|
@@ -380,4 +390,4 @@ export default {
|
|
|
380
390
|
},
|
|
381
391
|
},
|
|
382
392
|
};
|
|
383
|
-
</script>
|
|
393
|
+
</script>
|
|
@@ -248,7 +248,7 @@ export default {
|
|
|
248
248
|
'localEntrega': item.quote !== null ? `${item.quote.cityDestination.city} / ${item.quote.cityDestination.state.uf}` : '',
|
|
249
249
|
'transportadora': item.quote !== null ? item.quote.carrier.name : '',
|
|
250
250
|
'preco': item.price,
|
|
251
|
-
'precoReal': item.realPrice == null || item.realPrice == 0 ? "-----" :
|
|
251
|
+
'precoReal': this.getRealPrice(item), //item.realPrice == null || item.realPrice == 0 ? "-----" :
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
|
|
@@ -277,6 +277,16 @@ export default {
|
|
|
277
277
|
getStatuses: 'purchasingOrder/getStatuses',
|
|
278
278
|
}),
|
|
279
279
|
|
|
280
|
+
getRealPrice(invoice) {
|
|
281
|
+
let price = 0;
|
|
282
|
+
invoice.invoice.forEach((element) => {
|
|
283
|
+
if (element.invoice.id == this.invoiceId) {
|
|
284
|
+
price = element.realPrice;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
return price == invoice.price || price == 0 ? "-----" : price;
|
|
288
|
+
},
|
|
289
|
+
|
|
280
290
|
requestStatuses() {
|
|
281
291
|
this.loadingStatuses = true;
|
|
282
292
|
this.getStatuses({
|