softseti-sale-calculator-library 3.7.0 → 3.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "softseti-sale-calculator-library",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Sales calculation engine by Softseti",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -871,6 +871,7 @@ module.exports = {
871
871
  appliedWholesaleLevels,
872
872
  getApplicableDwTaxes,
873
873
  getConsolidatedTaxes,
874
+ calcDwSaleProductPrice,
874
875
  _internals: {
875
876
  calcDwSaleProductSum,
876
877
  calcDwSaleProductDiscount,
package/src/index.d.ts CHANGED
@@ -79,6 +79,8 @@ declare module 'softseti-sale-calculator-library' {
79
79
  */
80
80
  export function calculatePaymentDetails(payment: any, sale: Sale): PaymentCalculation;
81
81
 
82
+
83
+ export function calcDwSaleProductPrice(saleProduct: any, sale: any): number;
82
84
  /**
83
85
  * Gets applied wholesale levels
84
86
  * @param {Sale} sale - Sale object