@connect-plus-online/ogabai-integrations 0.0.106 → 0.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +11 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +11 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -440,7 +440,7 @@ var userSettingQuery = [
|
|
|
440
440
|
"userId"
|
|
441
441
|
];
|
|
442
442
|
|
|
443
|
-
// src/services/inventory/entities.ts
|
|
443
|
+
// src/services/inventory/inventory.entities.ts
|
|
444
444
|
var customersProductCountQuery = [
|
|
445
445
|
"count",
|
|
446
446
|
"storeId",
|
|
@@ -481,7 +481,8 @@ var stockQuery = [
|
|
|
481
481
|
"deduction",
|
|
482
482
|
"storeId",
|
|
483
483
|
"createdAt",
|
|
484
|
-
"expirationDate"
|
|
484
|
+
"expirationDate",
|
|
485
|
+
"stockType"
|
|
485
486
|
];
|
|
486
487
|
var storeQuery = [
|
|
487
488
|
"_id",
|
|
@@ -3336,7 +3337,8 @@ var transactionQuery = [
|
|
|
3336
3337
|
"transactionType",
|
|
3337
3338
|
"expenseId",
|
|
3338
3339
|
"expenseReceiptUrl",
|
|
3339
|
-
"narration"
|
|
3340
|
+
"narration",
|
|
3341
|
+
"parentTransactionId"
|
|
3340
3342
|
];
|
|
3341
3343
|
var orderQuery = [
|
|
3342
3344
|
"_id",
|
|
@@ -3554,7 +3556,12 @@ var createTransactionService = (client) => {
|
|
|
3554
3556
|
* @returns TransactionResponse
|
|
3555
3557
|
*/
|
|
3556
3558
|
async returnSales(input, fetchFields, option) {
|
|
3557
|
-
return addTransaction(
|
|
3559
|
+
return addTransaction({
|
|
3560
|
+
transaction: {
|
|
3561
|
+
...input.transaction,
|
|
3562
|
+
transactionType: "saleReturn"
|
|
3563
|
+
}
|
|
3564
|
+
}, fetchFields, option);
|
|
3558
3565
|
},
|
|
3559
3566
|
/**
|
|
3560
3567
|
* Uploads a transaction receipt
|