Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Assign PO-Invoice-Receipt-Invoice #960

Merged
merged 4 commits into from
Aug 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
},
"priceChecking": {
"endpoint": "/form/addons/point-of-sales"
},
"match": {
"endpoint": "/form/addons/match"
}
}
76 changes: 26 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 75 additions & 0 deletions src/api/ADempiere/form/match.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution
// Copyright (C) 2017-Present E.R.P. Consultores y Asociados, C.A.
// Contributor(s): Elsio Sanchez elsiosanches@gmail.com www.erpya.com
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// Get Instance for connectionimport {
import { request } from '@/utils/ADempiere/request'
import { config } from '@/utils/ADempiere/config'

// Receipts List
export function receipts({
businessPartnerUuid,
formUuid
}) {
return request({
url: `${config.match.endpoint}/receipts`,
method: 'get',
params: {
business_partner_uuid: businessPartnerUuid,
form_uuid: formUuid
}
})
.then(receiptsListResponse => {
return receiptsListResponse
})
}
// Invoices List
export function invoces({
businessPartnerUuid,
formUuid
}) {
return request({
url: `${config.match.endpoint}/invoices`,
method: 'get',
params: {
business_partner_uuid: businessPartnerUuid,
form_uuid: formUuid
}
})
.then(invocesListResponse => {
return invocesListResponse
})
}
// Process Receipt
export function processReceipt({
businessPartnerUuid,
receiptUuid,
invoceUuid,
formUuid
}) {
return request({
url: `${config.match.endpoint}/process-receipt`,
method: 'post',
params: {
business_partner_uuid: businessPartnerUuid,
receipt_uuid: receiptUuid,
invoce_uuid: invoceUuid,
form_uuid: formUuid
}
})
.then(response => {
return response
})
}
2 changes: 1 addition & 1 deletion src/components/ADempiere/Carousel/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{{ item.description }}
</p>
</div>
<div class="text item" style="height: 95%;">
<div class="text item" style="height: 90%;overflow: auto;">
<slot />
</div>
</el-card>
Expand Down
55 changes: 55 additions & 0 deletions src/components/ADempiere/Form/VMatch/components/Invoices/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!--
ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution
Copyright (C) 2017-Present E.R.P. Consultores y Asociados, C.A.
Contributor(s): Elsio Sanchez elsiosanchez@erpya.com www.erpya.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https:www.gnu.org/licenses/>.
-->
<template>
<el-tabs type="border-card">
<el-tab-pane :label="$t('form.match.title.invoice')">
<table-from
:ref-table="ref"
:label="labelTable"
:records-data="invoiceList"
:selection="selectedInvoice"
:add-selection="selectInvoice"
:is-selection="true"
/>
</el-tab-pane>
</el-tabs>
</template>

<script>
import tableFrom from '../tableFrom'
import labelTable from '@/components/ADempiere/Form/VMatch/labelTable.js'
export default {
name: 'Invoices',
components: {
tableFrom
},
data() {
return {
labelTable,
ref: 'Match',
selectInvoice: 'selectedInvoceMatch'
}
},
computed: {
invoiceList() {
return this.$store.getters.getInvoiceMatch
},
selectedInvoice() {
return this.$store.getters.getSelectedInvoceMatch
}
}
}
</script>
Loading