@freteclick/quasar-financial-ui 1.0.111 → 1.0.112

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freteclick/quasar-financial-ui",
3
- "version": "1.0.111",
3
+ "version": "1.0.112",
4
4
  "author": "FreteClick",
5
5
  "description": "FreteClick financial Quasar UI Component",
6
6
  "license": "MIT",
@@ -31,13 +31,10 @@
31
31
  </q-card>
32
32
  </template>
33
33
  <script>
34
- import { mapActions, mapGetters } from "vuex";
35
- import {
36
- formatMoney,
37
- formatDateYmdTodmY,
38
- } from "@freteclick/quasar-common-ui/src/utils/formatter";
34
+ import { mapActions } from "vuex";
35
+
36
+
39
37
  import DataFilter from "@freteclick/quasar-common-ui/src/components/common/DataFilter.vue";
40
- import { date } from "quasar";
41
38
 
42
39
  export default {
43
40
  components: {
@@ -279,8 +279,8 @@ export default {
279
279
  "provider" : this.item.provider,
280
280
  "amount" : parseFloat(this.item.amount.replace(',', '.')),
281
281
  "parcels" : this.item.recurrence == 'monthly' ? null : this.item.parcels,
282
- "dueDate" : this.item.dueDate ? this.item.dueDate.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/g, "\$3\-\$2\-\$1") : null,
283
- "paymentDay" : parseInt(this.item.dueDate.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/g, "\$1")),
282
+ "dueDate" : this.item.dueDate ? this.item.dueDate.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/g, "$3-$2-$1") : null,
283
+ "paymentDay" : parseInt(this.item.dueDate.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/g, "$1")),
284
284
  },
285
285
  {
286
286
  "myCompany" : this.myCompany.id
@@ -257,7 +257,7 @@ export default {
257
257
  let {
258
258
  page,
259
259
  rowsPerPage,
260
- rowsNumber,
260
+
261
261
  sortBy,
262
262
  descending
263
263
  } = props.pagination;
@@ -322,7 +322,6 @@ export default {
322
322
  })
323
323
  .then(statuses => {
324
324
  if (statuses.length) {
325
- let data = [];
326
325
  for (let index in statuses) {
327
326
  let item = statuses[index];
328
327
  this.statuses.push({
@@ -339,11 +338,11 @@ export default {
339
338
  let {
340
339
  page,
341
340
  rowsPerPage,
342
- rowsNumber,
341
+
343
342
  sortBy,
344
343
  descending
345
344
  } = props.pagination;
346
- let filter = props.filter;
345
+
347
346
  let params = { itemsPerPage: rowsPerPage, page };
348
347
 
349
348
  if (this.filters.text != null && this.filters.text.length > 0) {
@@ -292,11 +292,10 @@ export default {
292
292
  this.getStatuses({
293
293
  visibility: 'public',
294
294
  realStatus: ['open', 'pending', 'closed'],
295
- context: order
295
+ context: 'order'
296
296
  })
297
297
  .then(statuses => {
298
298
  if (statuses.length) {
299
- let data = [];
300
299
  for (let index in statuses) {
301
300
  let item = statuses[index];
302
301
  this.statuses.push({
@@ -313,11 +312,11 @@ export default {
313
312
  let {
314
313
  page,
315
314
  rowsPerPage,
316
- rowsNumber,
315
+
317
316
  sortBy,
318
317
  descending
319
318
  } = props.pagination;
320
- let filter = props.filter;
319
+
321
320
  let params = { itemsPerPage: rowsPerPage, page };
322
321
 
323
322
  if (this.filters.text != null && this.filters.text.length > 0) {
@@ -338,7 +338,7 @@ export default {
338
338
  },
339
339
 
340
340
  loadInvoice() {
341
- let params = {};
341
+
342
342
 
343
343
  this.isLoading = true;
344
344
 
@@ -342,7 +342,7 @@ export default {
342
342
 
343
343
  let pagination = props ? props.pagination : this.pagination;
344
344
 
345
- let { page, rowsPerPage, rowsNumber, sortBy, descending } = pagination;
345
+ let { page, rowsPerPage, sortBy, descending } = pagination;
346
346
 
347
347
  let params = { itemsPerPage: rowsPerPage, page };
348
348
 
@@ -291,7 +291,6 @@ export default {
291
291
  context:'order'
292
292
  }).then((statuses) => {
293
293
  if (statuses.length) {
294
- let data = [];
295
294
  for (let index in statuses) {
296
295
  let item = statuses[index];
297
296
  this.statuses.push({
@@ -305,9 +304,9 @@ export default {
305
304
  },
306
305
 
307
306
  onRequest(props) {
308
- let { page, rowsPerPage, rowsNumber, sortBy, descending } =
307
+ let { page, rowsPerPage, sortBy, descending } =
309
308
  props.pagination;
310
- let filter = props.filter;
309
+
311
310
  let params = { itemsPerPage: rowsPerPage, page };
312
311
 
313
312
  if (this.filters.text != null && this.filters.text.length > 0) {
@@ -313,7 +313,7 @@ export default {
313
313
 
314
314
  let pagination = props ? props.pagination : this.pagination;
315
315
 
316
- let { page, rowsPerPage, rowsNumber, sortBy, descending } = pagination;
316
+ let { page, rowsPerPage, sortBy, descending } = pagination;
317
317
 
318
318
  let params = { itemsPerPage: rowsPerPage, page };
319
319
 
@@ -105,7 +105,7 @@ const SETTINGS = {
105
105
  align: "left",
106
106
  format: (val, row) => {
107
107
  return val.replace(
108
- /^(\d{4})\-(\d{2})\-(\d{2})T\d{2}:\d{2}:\d{2}\+\d{2}:\d{2}$/g,
108
+ /^(\d{4})-(\d{2})-(\d{2})T\d{2}:\d{2}:\d{2}\+\d{2}:\d{2}$/g,
109
109
  "$3/$2/$1"
110
110
  );
111
111
  },
@@ -343,9 +343,9 @@ export default {
343
343
  onRequest(props) {
344
344
  if (this.isLoading) return;
345
345
 
346
- let { page, rowsPerPage, rowsNumber, sortBy, descending } =
346
+ let { page, rowsPerPage, sortBy, descending } =
347
347
  props.pagination;
348
- let filter = props.filter;
348
+
349
349
  let params = { itemsPerPage: rowsPerPage, page };
350
350
 
351
351
  if (this.filters.company != null) {