如何解决单击按钮将发票数据发送到 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 举报,一经查实,本站将立刻删除。