@connect-plus-online/ogabai-integrations 0.0.96 → 0.0.98

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
@@ -3815,7 +3815,7 @@ var createExpenseDispenseService = (client) => {
3815
3815
  });
3816
3816
  },
3817
3817
  dispenseExpense: async (req) => {
3818
- const { amountPaid, narration, createdById, expenseId, paymentType } = req.expenseDispense;
3818
+ const { amountPaid, narration, createdById, expenseId, paymentType, platform = "pos" } = req.expenseDispense;
3819
3819
  const expenseRes = await expenseService.getExpense({
3820
3820
  expense: {
3821
3821
  id: expenseId
@@ -3860,7 +3860,8 @@ var createExpenseDispenseService = (client) => {
3860
3860
  amountPaid: expense.amount,
3861
3861
  narration: expense.narration || "Approved expense dispense",
3862
3862
  createdById: expense.createdById,
3863
- paymentType: expense.paymentType
3863
+ paymentType: expense.paymentType,
3864
+ platform: "pos"
3864
3865
  }
3865
3866
  });
3866
3867
  await expenseService.updateExpense({