单击按钮将发票数据发送到 SAGE 50 Cloud

问题描述

我目前正在开发一个个人项目,该项目由一个网站组成,该网站在表格中显示发票信息,该表格是从 Firebase 中提取的。 我正在使用 JavaScript 来显示表格中的数据。

这是我填充表格的方式:

function getInvoices(){
    var docRef = db.collection("invoices");
    docRef.get().then(function(querySnapshot) {
    querySnapshot.forEach(function(doc) {

         html = createInvoiceRow(doc.data(),doc.id);
          $('.invoiceTable').find('tbody').append(html);

    });
    jobsDataTable = $('.jobsTable').DataTable({language: { search: "",searchPlaceholder: "Search...",sLengthMenu: "MENU" },"lengthMenu": [[300],["300"]]});

  });



  }

.

    function createInvoiceRow(invoice,id)
      {


  var invoicedate = invoice['value'].toDate();
  var getvaluedate = invoicedate.getDate() + '/' + (invoicedate.getMonth()+1) + '/' + invoicedate.getFullYear();



  html = '<tr id="invoice'+id+'">';
  html += '  <td class="centercheck">'+invoice['jobnumber']+'</td>';
  html += '  <td class="centercheck">'+invoice['price']+'</td>';
  html += '  <td class="centercheck">'+getvaluedate+'</td>';
  html += '</tr>';

  return html;


}

这是我遇到困难的地方,我希望能够将所选发票的信息传递到 SAGE 50,例如您如何通过“批量分类帐”添加发票,方法是单击我网站上的按钮。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...