Restricted invoice export to 1 at a time BOD-139

This commit is contained in:
Patrick Fic
2020-06-02 16:43:00 -07:00
parent 73c457e972
commit 6060def9f4
6 changed files with 75 additions and 31 deletions

View File

@@ -49,8 +49,8 @@ const generateBill = (invoice) => {
QBXML: {
QBXMLMsgsRq: {
"@onError": "continueOnError",
BillAddRq: {
BillAdd: {
[`${invoice.is_credit_memo ? "VendorCreditAddRq" : "BillAddRq"}`]: {
[`${invoice.is_credit_memo ? "VendorCreditAdd" : "BillAdd"}`]: {
VendorRef: {
FullName: invoice.vendor.name,
},