@freteclick/quasar-financial-ui 1.0.85 → 1.0.87

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.
Files changed (51) hide show
  1. package/package.json +17 -17
  2. package/src/components/common/Filters.vue +140 -140
  3. package/src/components/expense/FormExpense.vue +309 -309
  4. package/src/components/expense/TableExpenses.vue +305 -305
  5. package/src/components/invoice/client/ClientInvoiceDetails.vue +212 -212
  6. package/src/components/invoice/client/InvoiceSearching.vue +382 -382
  7. package/src/components/invoice/client/details/InvoiceInvoice.vue +248 -248
  8. package/src/components/invoice/client/details/InvoiceOrders.vue +327 -327
  9. package/src/components/invoice/expense/CreateExpense.vue +539 -539
  10. package/src/components/invoice/expense/DetailExpense.vue +393 -393
  11. package/src/components/invoice/pay/InvoiceDetails.vue +210 -210
  12. package/src/components/invoice/pay/InvoiceSearching.vue +388 -388
  13. package/src/components/invoice/pay/details/InvoiceInvoice.vue +47 -47
  14. package/src/components/invoice/pay/details/InvoiceOrders.vue +342 -342
  15. package/src/components/invoice/receive/InvoiceDetails.vue +280 -280
  16. package/src/components/invoice/receive/InvoiceSearching.vue +359 -359
  17. package/src/components/invoice/receive/details/InvoiceInvoice.vue +453 -371
  18. package/src/components/invoice/receive/details/InvoiceInvoiceBkp.vue +259 -259
  19. package/src/components/invoice/receive/details/InvoiceOrders.vue +369 -369
  20. package/src/i18n/en-us/index.js +8 -8
  21. package/src/i18n/index.js +5 -5
  22. package/src/i18n/pt-br/index.js +30 -30
  23. package/src/pages/Invoice/Client/Details.vue +23 -23
  24. package/src/pages/Invoice/Client/Index.vue +26 -26
  25. package/src/pages/Invoice/Pay/Details.vue +23 -23
  26. package/src/pages/Invoice/Pay/Index.vue +53 -53
  27. package/src/pages/Invoice/Receive/Details.vue +23 -23
  28. package/src/pages/Invoice/Receive/Index.vue +26 -26
  29. package/src/router/routes.js +32 -32
  30. package/src/store/modules/invoice/comission/actions.js +66 -66
  31. package/src/store/modules/invoice/comission/getters.js +6 -6
  32. package/src/store/modules/invoice/comission/index.js +19 -19
  33. package/src/store/modules/invoice/comission/mutation_types.js +7 -7
  34. package/src/store/modules/invoice/comission/mutations.js +42 -42
  35. package/src/store/modules/invoice/expense/actions.js +98 -98
  36. package/src/store/modules/invoice/expense/getters.js +1 -1
  37. package/src/store/modules/invoice/expense/index.js +12 -12
  38. package/src/store/modules/invoice/expense/mutations.js +3 -3
  39. package/src/store/modules/invoice/expense/state.js +5 -5
  40. package/src/store/modules/invoice/pay/actions.js +114 -114
  41. package/src/store/modules/invoice/pay/getters.js +6 -6
  42. package/src/store/modules/invoice/pay/index.js +19 -19
  43. package/src/store/modules/invoice/pay/mutation_types.js +7 -7
  44. package/src/store/modules/invoice/pay/mutations.js +42 -42
  45. package/src/store/modules/invoice/receive/actions.js +163 -152
  46. package/src/store/modules/invoice/receive/actionsBkp.js +77 -77
  47. package/src/store/modules/invoice/receive/getters.js +6 -6
  48. package/src/store/modules/invoice/receive/index.js +19 -19
  49. package/src/store/modules/invoice/receive/mutation_types.js +7 -7
  50. package/src/store/modules/invoice/receive/mutations.js +42 -42
  51. package/src/store/store-flag.d.ts +9 -9
@@ -1,8 +1,8 @@
1
- // This is just an example,
2
- // so you can safely delete all default props below
3
-
4
- export default {
5
- contracts: {
6
-
7
- }
8
- }
1
+ // This is just an example,
2
+ // so you can safely delete all default props below
3
+
4
+ export default {
5
+ contracts: {
6
+
7
+ }
8
+ }
package/src/i18n/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import ptBR from './pt-br'
2
-
3
- export default {
4
- 'pt-br': ptBR
5
- }
1
+ import ptBR from './pt-br'
2
+
3
+ export default {
4
+ 'pt-br': ptBR
5
+ }
@@ -1,30 +1,30 @@
1
- // This is just an example,
2
- // so you can safely delete all default props below
3
-
4
- export const translate = {
5
- purchase: 'Compra',
6
- sale: 'Venda',
7
- comission: 'Comissão',
8
- royalties: 'Royalties',
9
- finance: {
10
- orders: 'Pedidos',
11
- order: 'Pedido',
12
- description: 'Descrição'
13
- },
14
- invoice: {
15
- statuses: {
16
- 'waiting payment': 'Aguardando pagamento',
17
- 'paid': 'Pago',
18
- 'divergence of values': 'Divergência de valores',
19
- 'canceled': 'Cancelado',
20
- 'outdated billing': 'Fatura em atraso',
21
- 'open': 'Aberto',
22
- 'exceeded billing': 'Limite de faturamento excedido',
23
- 'waiting billing': 'Aguardando fatura',
24
- 'waiting generate invoice': 'Gerando NF',
25
- 'waiting for discount': 'Aguardando desconto',
26
- 'resolved': 'Resolvido'
27
- },
28
- },
29
-
30
- }
1
+ // This is just an example,
2
+ // so you can safely delete all default props below
3
+
4
+ export const translate = {
5
+ purchase: 'Compra',
6
+ sale: 'Venda',
7
+ comission: 'Comissão',
8
+ royalties: 'Royalties',
9
+ finance: {
10
+ orders: 'Pedidos',
11
+ order: 'Pedido',
12
+ description: 'Descrição'
13
+ },
14
+ invoice: {
15
+ statuses: {
16
+ 'waiting payment': 'Aguardando pagamento',
17
+ 'paid': 'Pago',
18
+ 'divergence of values': 'Divergência de valores',
19
+ 'canceled': 'Cancelado',
20
+ 'outdated billing': 'Fatura em atraso',
21
+ 'open': 'Aberto',
22
+ 'exceeded billing': 'Limite de faturamento excedido',
23
+ 'waiting billing': 'Aguardando fatura',
24
+ 'waiting generate invoice': 'Gerando NF',
25
+ 'waiting for discount': 'Aguardando desconto',
26
+ 'resolved': 'Resolvido'
27
+ },
28
+ },
29
+
30
+ }
@@ -1,23 +1,23 @@
1
- <template>
2
- <q-page padding>
3
- <ClientInvoiceDetails />
4
- </q-page>
5
- </template>
6
-
7
- <script>
8
- import ClientInvoiceDetails from '../../../components/invoice/client/ClientInvoiceDetails';
9
-
10
- export default {
11
- name : 'ClientInvoiceDetailsPage',
12
-
13
- components: {
14
- ClientInvoiceDetails,
15
- },
16
-
17
- data () {
18
- return {
19
-
20
- }
21
- }
22
- }
23
- </script>
1
+ <template>
2
+ <q-page padding>
3
+ <ClientInvoiceDetails />
4
+ </q-page>
5
+ </template>
6
+
7
+ <script>
8
+ import ClientInvoiceDetails from '../../../components/invoice/client/ClientInvoiceDetails';
9
+
10
+ export default {
11
+ name : 'ClientInvoiceDetailsPage',
12
+
13
+ components: {
14
+ ClientInvoiceDetails,
15
+ },
16
+
17
+ data () {
18
+ return {
19
+
20
+ }
21
+ }
22
+ }
23
+ </script>
@@ -1,27 +1,27 @@
1
- <template>
2
- <q-page padding>
3
- <div class="row">
4
- <div class="col-12">
5
- <InvoiceSearching />
6
- </div>
7
- </div>
8
- </q-page>
9
- </template>
10
-
11
- <script>
12
- import InvoiceSearching from '../../../components/invoice/client/InvoiceSearching';
13
-
14
- export default {
15
- name : 'ClientInvoiceIndexPage',
16
-
17
- components: {
18
- InvoiceSearching,
19
- },
20
-
21
- data () {
22
- return {
23
-
24
- }
25
- }
26
- }
1
+ <template>
2
+ <q-page padding>
3
+ <div class="row">
4
+ <div class="col-12">
5
+ <InvoiceSearching />
6
+ </div>
7
+ </div>
8
+ </q-page>
9
+ </template>
10
+
11
+ <script>
12
+ import InvoiceSearching from '../../../components/invoice/client/InvoiceSearching';
13
+
14
+ export default {
15
+ name : 'ClientInvoiceIndexPage',
16
+
17
+ components: {
18
+ InvoiceSearching,
19
+ },
20
+
21
+ data () {
22
+ return {
23
+
24
+ }
25
+ }
26
+ }
27
27
  </script>
@@ -1,23 +1,23 @@
1
- <template>
2
- <q-page padding>
3
- <InvoiceDetails />
4
- </q-page>
5
- </template>
6
-
7
- <script>
8
- import InvoiceDetails from '../../../components/invoice/pay/InvoiceDetails.vue';
9
-
10
- export default {
11
- name : 'InvoiceDetailsPage',
12
-
13
- components: {
14
- InvoiceDetails,
15
- },
16
-
17
- data () {
18
- return {
19
-
20
- }
21
- }
22
- }
23
- </script>
1
+ <template>
2
+ <q-page padding>
3
+ <InvoiceDetails />
4
+ </q-page>
5
+ </template>
6
+
7
+ <script>
8
+ import InvoiceDetails from '../../../components/invoice/pay/InvoiceDetails.vue';
9
+
10
+ export default {
11
+ name : 'InvoiceDetailsPage',
12
+
13
+ components: {
14
+ InvoiceDetails,
15
+ },
16
+
17
+ data () {
18
+ return {
19
+
20
+ }
21
+ }
22
+ }
23
+ </script>
@@ -1,53 +1,53 @@
1
- <template>
2
- <q-page padding>
3
- <q-card style="min-height: 90vh;" :bordered="false" :flat="true">
4
- <q-card-section class="text-h6">
5
- {{ $t('Contas a pagar') }}
6
- </q-card-section>
7
- <div class="row">
8
- <div class="col-12">
9
- <q-tabs :horizontal="$q.screen.gt.xs" align="justify" v-model="currentTab" class="bg-white text-primary">
10
- <q-tab name="expenses" :label="$t('Despesas')" />
11
- <q-tab name="categories" :label="$t('Categorias')" />
12
- </q-tabs>
13
-
14
- <q-separator />
15
-
16
- <q-tab-panels v-model="currentTab">
17
- <q-tab-panel name="expenses" class="q-px-none">
18
- <InvoiceSearching />
19
- </q-tab-panel>
20
-
21
- <q-tab-panel name="categories" class="q-px-none">
22
- <TableCategories :context="'expense'" :api="api" />
23
- </q-tab-panel>
24
- </q-tab-panels>
25
- </div>
26
- </div>
27
- </q-card>
28
- </q-page>
29
- </template>
30
-
31
- <script>
32
- import Api from '@freteclick/quasar-common-ui/src/utils/api';
33
- import InvoiceSearching from '../../../components/invoice/pay/InvoiceSearching.vue';
34
- import TableCategories from '@freteclick/quasar-common-ui/src/components/categories/Table.vue';
35
-
36
- export default {
37
- components: {
38
- TableCategories,
39
- InvoiceSearching,
40
- },
41
-
42
- data() {
43
- return {
44
- currentTab: 'expenses',
45
- api: new Api(this.$store.getters['auth/user'].token)
46
- }
47
- },
48
-
49
- created() {
50
-
51
- },
52
- }
53
- </script>
1
+ <template>
2
+ <q-page padding>
3
+ <q-card style="min-height: 90vh;" :bordered="false" :flat="true">
4
+ <q-card-section class="text-h6">
5
+ {{ $t('Contas a pagar') }}
6
+ </q-card-section>
7
+ <div class="row">
8
+ <div class="col-12">
9
+ <q-tabs :horizontal="$q.screen.gt.xs" align="justify" v-model="currentTab" class="bg-white text-primary">
10
+ <q-tab name="expenses" :label="$t('Despesas')" />
11
+ <q-tab name="categories" :label="$t('Categorias')" />
12
+ </q-tabs>
13
+
14
+ <q-separator />
15
+
16
+ <q-tab-panels v-model="currentTab">
17
+ <q-tab-panel name="expenses" class="q-px-none">
18
+ <InvoiceSearching />
19
+ </q-tab-panel>
20
+
21
+ <q-tab-panel name="categories" class="q-px-none">
22
+ <TableCategories :context="'expense'" :api="api" />
23
+ </q-tab-panel>
24
+ </q-tab-panels>
25
+ </div>
26
+ </div>
27
+ </q-card>
28
+ </q-page>
29
+ </template>
30
+
31
+ <script>
32
+ import Api from '@freteclick/quasar-common-ui/src/utils/api';
33
+ import InvoiceSearching from '../../../components/invoice/pay/InvoiceSearching.vue';
34
+ import TableCategories from '@freteclick/quasar-common-ui/src/components/categories/Table.vue';
35
+
36
+ export default {
37
+ components: {
38
+ TableCategories,
39
+ InvoiceSearching,
40
+ },
41
+
42
+ data() {
43
+ return {
44
+ currentTab: 'expenses',
45
+ api: new Api(this.$store.getters['auth/user'].token)
46
+ }
47
+ },
48
+
49
+ created() {
50
+
51
+ },
52
+ }
53
+ </script>
@@ -1,23 +1,23 @@
1
- <template>
2
- <q-page padding>
3
- <InvoiceDetails />
4
- </q-page>
5
- </template>
6
-
7
- <script>
8
- import InvoiceDetails from '../../../components/invoice/receive/InvoiceDetails.vue';
9
-
10
- export default {
11
- name : 'InvoiceDetailsPage',
12
-
13
- components: {
14
- InvoiceDetails,
15
- },
16
-
17
- data () {
18
- return {
19
-
20
- }
21
- }
22
- }
23
- </script>
1
+ <template>
2
+ <q-page padding>
3
+ <InvoiceDetails />
4
+ </q-page>
5
+ </template>
6
+
7
+ <script>
8
+ import InvoiceDetails from '../../../components/invoice/receive/InvoiceDetails.vue';
9
+
10
+ export default {
11
+ name : 'InvoiceDetailsPage',
12
+
13
+ components: {
14
+ InvoiceDetails,
15
+ },
16
+
17
+ data () {
18
+ return {
19
+
20
+ }
21
+ }
22
+ }
23
+ </script>
@@ -1,27 +1,27 @@
1
- <template>
2
- <q-page padding>
3
- <div class="row">
4
- <div class="col-12">
5
- <InvoiceSearching />
6
- </div>
7
- </div>
8
- </q-page>
9
- </template>
10
-
11
- <script>
12
- import InvoiceSearching from '../../../components/invoice/receive/InvoiceSearching.vue';
13
-
14
- export default {
15
- name : 'InvoiceIndexPage',
16
-
17
- components: {
18
- InvoiceSearching,
19
- },
20
-
21
- data () {
22
- return {
23
-
24
- }
25
- }
26
- }
1
+ <template>
2
+ <q-page padding>
3
+ <div class="row">
4
+ <div class="col-12">
5
+ <InvoiceSearching />
6
+ </div>
7
+ </div>
8
+ </q-page>
9
+ </template>
10
+
11
+ <script>
12
+ import InvoiceSearching from '../../../components/invoice/receive/InvoiceSearching.vue';
13
+
14
+ export default {
15
+ name : 'InvoiceIndexPage',
16
+
17
+ components: {
18
+ InvoiceSearching,
19
+ },
20
+
21
+ data () {
22
+ return {
23
+
24
+ }
25
+ }
26
+ }
27
27
  </script>
@@ -1,32 +1,32 @@
1
-
2
- export const routes = [
3
- {
4
- path : '/finance/',
5
- component: () => import('../../../../../src/layouts/AdminLayout.vue'),
6
- children : [
7
- { name: 'ClientInvoiceIndex', path: 'client', component: () => import('../pages/Invoice/Client/Index.vue') },
8
- { name: 'ClientInvoiceDetails', path: 'client/id/:id', component: () => import('../pages/Invoice/Client/Details.vue') },
9
-
10
- {
11
- name: 'FinancePayIndex',
12
- path: 'pay',
13
- component: () => import('../pages/Invoice/Pay/Index.vue')
14
- },
15
- {
16
- name: 'PayDetails',
17
- path: 'pay/id/:id',
18
- component: () => import('../pages/Invoice/Pay/Details.vue')
19
- },
20
- {
21
- name: 'FinanceReceiveIndex',
22
- path: 'receive',
23
- component: () => import('../pages/Invoice/Receive/Index.vue')
24
- },
25
- {
26
- name: 'ReceiveDetails',
27
- path: 'receive/id/:id',
28
- component: () => import('../pages/Invoice/Receive/Details.vue')
29
- },
30
- ]
31
- },
32
- ];
1
+
2
+ export const routes = [
3
+ {
4
+ path : '/finance/',
5
+ component: () => import('../../../../../src/layouts/AdminLayout.vue'),
6
+ children : [
7
+ { name: 'ClientInvoiceIndex', path: 'client', component: () => import('../pages/Invoice/Client/Index.vue') },
8
+ { name: 'ClientInvoiceDetails', path: 'client/id/:id', component: () => import('../pages/Invoice/Client/Details.vue') },
9
+
10
+ {
11
+ name: 'FinancePayIndex',
12
+ path: 'pay',
13
+ component: () => import('../pages/Invoice/Pay/Index.vue')
14
+ },
15
+ {
16
+ name: 'PayDetails',
17
+ path: 'pay/id/:id',
18
+ component: () => import('../pages/Invoice/Pay/Details.vue')
19
+ },
20
+ {
21
+ name: 'FinanceReceiveIndex',
22
+ path: 'receive',
23
+ component: () => import('../pages/Invoice/Receive/Index.vue')
24
+ },
25
+ {
26
+ name: 'ReceiveDetails',
27
+ path: 'receive/id/:id',
28
+ component: () => import('../pages/Invoice/Receive/Details.vue')
29
+ },
30
+ ]
31
+ },
32
+ ];
@@ -1,66 +1,66 @@
1
- import SubmissionError from '@freteclick/quasar-common-ui/src/error/SubmissionError';
2
- import { fetch } from '../../../../../../../../src/boot/myapi';
3
- import * as types from './mutation_types';
4
-
5
- const RESOURCE_ENDPOINT = '/finance/comission';
6
-
7
- export const getItems = ({ commit }, params = {}) => {
8
- commit(types.SET_ISLOADING);
9
-
10
- return fetch(RESOURCE_ENDPOINT, { params })
11
- .then(response => response.json())
12
- .then(data => {
13
- commit(types.SET_ISLOADING , false);
14
-
15
- commit(types.SET_ITEMS , data['hydra:member']);
16
- commit(types.SET_VIEW , data['hydra:view']);
17
- commit(types.SET_TOTALITEMS, data['hydra:totalItems']);
18
-
19
- return data['hydra:member'];
20
-
21
- }).catch(e => {
22
- commit(types.SET_ISLOADING, false);
23
-
24
- if (e instanceof SubmissionError) {
25
- commit(types.SET_VIOLATIONS, e.errors);
26
- // eslint-disable-next-line
27
- commit(types.SET_ERROR, e.errors._error);
28
- return;
29
- }
30
-
31
- commit(types.SET_ERROR, e.message);
32
- });
33
- };
34
-
35
- export const reset = ({ commit }) => {
36
- commit(types.RESET);
37
- };
38
-
39
- export const getStatuses = ({ commit }, params = {}) => {
40
- return fetch('/statuses', { params })
41
- .then(response => response.json())
42
- .then(data => {
43
-
44
- return data['hydra:member'];
45
-
46
- }).catch(e => {
47
- if (e instanceof SubmissionError) {
48
- commit(types.SET_VIOLATIONS, e.errors);
49
- // eslint-disable-next-line
50
- commit(types.SET_ERROR, e.errors._error);
51
- return;
52
- }
53
-
54
- commit(types.SET_ERROR, e.message);
55
- });
56
- };
57
-
58
- export const getInvoice = ({ commit }, { invoiceId, params }) => {
59
- return fetch(`/finance/comission/${invoiceId}`, { params })
60
- .then(response => response.json())
61
- .then(data => {
62
-
63
- return data;
64
-
65
- });
66
- };
1
+ import SubmissionError from '@freteclick/quasar-common-ui/src/error/SubmissionError';
2
+ import { fetch } from '../../../../../../../../src/boot/myapi';
3
+ import * as types from './mutation_types';
4
+
5
+ const RESOURCE_ENDPOINT = '/finance/comission';
6
+
7
+ export const getItems = ({ commit }, params = {}) => {
8
+ commit(types.SET_ISLOADING);
9
+
10
+ return fetch(RESOURCE_ENDPOINT, { params })
11
+ .then(response => response.json())
12
+ .then(data => {
13
+ commit(types.SET_ISLOADING , false);
14
+
15
+ commit(types.SET_ITEMS , data['hydra:member']);
16
+ commit(types.SET_VIEW , data['hydra:view']);
17
+ commit(types.SET_TOTALITEMS, data['hydra:totalItems']);
18
+
19
+ return data['hydra:member'];
20
+
21
+ }).catch(e => {
22
+ commit(types.SET_ISLOADING, false);
23
+
24
+ if (e instanceof SubmissionError) {
25
+ commit(types.SET_VIOLATIONS, e.errors);
26
+ // eslint-disable-next-line
27
+ commit(types.SET_ERROR, e.errors._error);
28
+ return;
29
+ }
30
+
31
+ commit(types.SET_ERROR, e.message);
32
+ });
33
+ };
34
+
35
+ export const reset = ({ commit }) => {
36
+ commit(types.RESET);
37
+ };
38
+
39
+ export const getStatuses = ({ commit }, params = {}) => {
40
+ return fetch('/statuses', { params })
41
+ .then(response => response.json())
42
+ .then(data => {
43
+
44
+ return data['hydra:member'];
45
+
46
+ }).catch(e => {
47
+ if (e instanceof SubmissionError) {
48
+ commit(types.SET_VIOLATIONS, e.errors);
49
+ // eslint-disable-next-line
50
+ commit(types.SET_ERROR, e.errors._error);
51
+ return;
52
+ }
53
+
54
+ commit(types.SET_ERROR, e.message);
55
+ });
56
+ };
57
+
58
+ export const getInvoice = ({ commit }, { invoiceId, params }) => {
59
+ return fetch(`/finance/comission/${invoiceId}`, { params })
60
+ .then(response => response.json())
61
+ .then(data => {
62
+
63
+ return data;
64
+
65
+ });
66
+ };
@@ -1,7 +1,7 @@
1
- export const retrieved = state => state.retrieved;
2
- export const error = state => state.error;
3
- export const isLoading = state => state.isLoading;
4
- export const violations = state => state.violations;
5
- export const items = state => state.items;
6
- export const view = state => state.view;
1
+ export const retrieved = state => state.retrieved;
2
+ export const error = state => state.error;
3
+ export const isLoading = state => state.isLoading;
4
+ export const violations = state => state.violations;
5
+ export const items = state => state.items;
6
+ export const view = state => state.view;
7
7
  export const totalItems = state => state.totalItems;