to get a personalized navigation.
to get a personalized navigation.
Hello!
I get a strange error when I try to import a cash invoice into VB NXT. What does the error message mean and how can we prevent it? We have the same problem when importing multiple interest notes belonging to the same customer.
Error message:
(Error: Multiple entries on open invoices: 2 Customer, 0 Supplier entries with this reference.)
What we sent:
mutation VoucherCreate($companyId: Int) {
useCompany(no: $companyId) {
voucher_create( values: [
{
orgUnit1: 1,
invoiceNo: "130123",
dueDateAsDate: "2024-10-29",
customerNo: 31234,
batchNo: 101,
lineNo: 1,
voucherNo: 130123,
voucherDateAsDate: "2024-10-15",
valueDateAsDate: "2024-10-15",
voucherType: 11,
text: "Faktura 130123",
debitAccountType: 1,
debitAccountNo: 31234,
creditAccountNo: 0,
amountDomestic: 60.6900000000000000000
},
{
orgUnit1: 1,
invoiceNo: "130123",
dueDateAsDate: "2024-10-15",
customerNo: 31234,
batchNo: 101,
lineNo: 2,
voucherNo: 130123,
voucherDateAsDate: "2024-10-15",
valueDateAsDate: "2024-10-15",
voucherType: 11,
text: "Betaling, F 130123",
crossReference: "130123",
debitAccountNo: 0,
creditAccountType: 1,
creditAccountNo: 31234,
amountDomestic: 60.6900000000000000000
},
{
orgUnit1: 1,
customerNo: 0,
creditTurnoverClass: 1,
batchNo: 101,
lineNo: 3,
voucherNo: 130123,
voucherDateAsDate: "2024-10-15",
valueDateAsDate: "2024-10-15",
voucherType: 11,
text: "Faktura 130123",
debitAccountNo: 0,
creditAccountType: 3,
creditAccountNo: 3010,
creditTaxCode: 3,
amountDomestic: 60.6900000000000000000
},
{
orgUnit1: 1,
customerNo: 0,
debitTurnoverClass: 0,
batchNo: 101,
lineNo: 4,
voucherNo: 130123,
voucherDateAsDate: "2024-10-15",
valueDateAsDate: "2024-10-15",
voucherType: 11,
text: "Betaling, F 130123",
debitAccountType: 3,
debitAccountNo: 1905,
debitTaxCode: 0,
creditAccountNo: 0,
amountDomestic: 60.6900000000000000000
}
]) {
affectedRows
items { batchNo
voucherNo
voucherDate
valueDate }
}
}
}
Copyright © 2022 Visma.com. All rights reserved.