【问题标题】:Send invoice data to SAGE 50 Cloud on button click单击按钮将发票数据发送到 SAGE 50 Cloud
【发布时间】:2021-03-10 10:08:12
【问题描述】:

我目前正在从事一个个人项目,该项目由一个网站组成,该网站在表格中显示发票信息,该表格是从 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,例如您如何通过“批量分类帐”添加发票。

【问题讨论】:

    标签: javascript firebase accounting sage50


    【解决方案1】:

    您需要通过加入 Sage Developer 计划来获得 Sage 50 SDK,或者您可以使用 Zynk 等工具将文件导入 Sage。

    【讨论】:

    • 您是否隶属于 Zynk?请注意,当链接到您自己的网站或内容(或您附属的内容)时,您must disclose your affiliation in the answer 以免被视为垃圾邮件。根据 Stack Exchange 政策,在您的用户名中包含与 URL 相同的文本或在您的个人资料中提及它不被视为充分披露。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-26
    • 2021-08-19
    • 1970-01-01
    • 1970-01-01
    • 2019-09-09
    • 1970-01-01
    • 2015-01-23
    相关资源
    最近更新 更多