fixing the structure of export receipt to autocount and import receipt to exchange map failed

This commit is contained in:
Steve Ng
2023-10-29 08:44:31 +08:00
parent f47c3c9ecc
commit 5b681ac8c0
6 changed files with 158 additions and 22 deletions
@@ -267,7 +267,7 @@ export default {
exportInvoiceToAutoCount(){
const checkedStatementTransactions = this.getCheckedStatementOwners();
let route = this.route('invoiceTransactions.export')+'?type=invoices&filter='+JSON.stringify(this.filter);
let route = this.route('invoiceTransactions.export')+'?filter='+JSON.stringify(this.filter);
if (checkedStatementTransactions) {
route += '&bankStatementTransactionId='+checkedStatementTransactions;
}
@@ -277,7 +277,8 @@ export default {
exportReceiptToAutoCount(){
const checkedStatementTransactions = this.getCheckedStatementOwners();
let route = this.route('invoiceTransactions.export')+'?type=receipts&filter='+JSON.stringify(this.filter);
this.filter['statement_transaction_owner_type_in'] = [3,4,5,7,13,14];
let route = this.route('receiptTransactions.export')+'?filter='+JSON.stringify(this.filter);
if (checkedStatementTransactions) {
route += '&bankStatementTransactionId='+checkedStatementTransactions;
}