@connect-plus-online/ogabai-integrations 0.0.106 → 0.0.108

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 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,9 @@ var transactionQuery = [
3336
3337
  "transactionType",
3337
3338
  "expenseId",
3338
3339
  "expenseReceiptUrl",
3339
- "narration"
3340
+ "narration",
3341
+ "parentTransactionId",
3342
+ "returnedStockIds"
3340
3343
  ];
3341
3344
  var orderQuery = [
3342
3345
  "_id",
@@ -3554,7 +3557,12 @@ var createTransactionService = (client) => {
3554
3557
  * @returns TransactionResponse
3555
3558
  */
3556
3559
  async returnSales(input, fetchFields, option) {
3557
- return addTransaction(input, fetchFields, option);
3560
+ return addTransaction({
3561
+ transaction: {
3562
+ ...input.transaction,
3563
+ transactionType: "saleReturn"
3564
+ }
3565
+ }, fetchFields, option);
3558
3566
  },
3559
3567
  /**
3560
3568
  * Uploads a transaction receipt