subscription added
This commit is contained in:
@@ -520,7 +520,9 @@ router.post('/:id/export', async (req, res) => {
|
||||
const rate = parseFloat(item.rate.replace(/[^0-9.]/g, '')) || 0;
|
||||
const amount = parseFloat(item.amount.replace(/[^0-9.]/g, '')) || 0;
|
||||
const itemRefId = item.qbo_item_id || '9';
|
||||
const itemRefName = itemRefId == '5' ? "Labor:Labor" : "Parts:Parts";
|
||||
const itemRefName = itemRefId == QBO_LABOR_ID ? "Labor:Labor"
|
||||
: itemRefId == '115' ? "Subscription"
|
||||
: "Parts:Parts";
|
||||
|
||||
return {
|
||||
"DetailType": "SalesItemLineDetail",
|
||||
@@ -653,7 +655,9 @@ router.post('/:id/update-qbo', async (req, res) => {
|
||||
const rate = parseFloat(item.rate.replace(/[^0-9.]/g, '')) || 0;
|
||||
const amount = parseFloat(item.amount.replace(/[^0-9.]/g, '')) || 0;
|
||||
const itemRefId = item.qbo_item_id || QBO_PARTS_ID;
|
||||
const itemRefName = itemRefId == QBO_LABOR_ID ? "Labor:Labor" : "Parts:Parts";
|
||||
const itemRefName = itemRefId == QBO_LABOR_ID ? "Labor:Labor"
|
||||
: itemRefId == '115' ? "Subscription"
|
||||
: "Parts:Parts";
|
||||
|
||||
return {
|
||||
"DetailType": "SalesItemLineDetail",
|
||||
|
||||
Reference in New Issue
Block a user