Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

logistic-cost-lib

Library for calculating logistic cost

Cart Structure

All libs take cart as argument

[{quantity: 500,sku: {pretaxPrice: 2.71,weighted: true,weight: 0.0630,kdw_mm: 338,kdh_mm: 7.0,kdl_mm: 208}}]

Usage

letcart=[{quantity: 500,sku: {sku: 'some item',price: 2.9,pretaxPrice: 2.71,weighted: true,weight: 0.0630,kdw_mm: 338,kdh_mm: 7.0,kdl_mm: 208}}]letKL=newKerryLogistic();letTPN=newTPLogistic();letTPN_EMS=newTPLogistic(true);letcfun1=KL.getCostFunction();letcfun2=TPN.getCostFunction();letcfun3=TPN_EMS.getCostFunction();kerr_solution=cfun1(cart);tpn_solution=cfun2(cart);tpne_solution=cfun3(cart);

About

Library for calculating logistic cost with Thai 3PL providers

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages