My Products
Help
nikolai-at-iizy-dot-no
CONTRIBUTOR **

Error: Multiple entries on open invoices

by nikolai-at-iizy-dot-no (Updated ‎04-11-2024 13:04 by nikolai-at-iizy-dot-no )

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 }
      }
   }
}

 

 

 

 

 

Med vennlig hilsen,
Nikolai Ommundsen
Utvikler @ iizy AS
0 REPLIES 0