1.0.7 • Published 3 years ago

ams-utils v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

methods to be used:

backhaulDiscountCalculations: it will calculate backhaul discounts. will calculate labor,feul charges and savings and actualPrice prices based on provided inputs.

) Labor = hourlyRate numberOfHours;

*) fuel calculation:

                if "fuelChargeType==0":
                    fuelVal =0
                if "fuelChargeType==1":
                    fuelVal = existing fuelItem value
                if "fuelChargeType==2":
                    fuelCal= travelItem.value  + Labor;
                    fuelCal =  (fuelCal * parseFloat(fuelCharge)) /100;

*) once after we calculate both labor and fuel, then we will calculate actualPrice.

) depositeAmount calculation: actualPriceAfterDiscount 0.20

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago