Freight logistics infrastructure maintenance

 These days the idea of ​​large maintenance of a freight logistics process architecture is such that

 

 Each time you modify or add shipping costs will form a snapshot based on the snapshot can easily record prices back in history. Drawback is more complex, the more data storage.

I designed six tables, used to maintain prices and prices of some other expenses of freight.

 

The design principle of the table is read-only write-only. And wherein BaseFee OtherFee is common as a value type. Relentless course also possible to insert new data continuously.

Other expenses group cited the cost of basic group, here to explain, there are a number of other costs, such as fuel costs, it is considered in accordance with the basis of a certain percentage of the cost out of the charges.

Finally, UI design

 

 Here, taking into account the cost of a lot, so the use of imported + preview mode.

Tell us about what kinds of other costs are and how they are charging.

1, operating fees by ticket charge, operating expenses of each segment weight may differ, here regard him as the basis of freight to follow prices - operating expenses one-time import.

2, a discount one pair of base fee discount 

3, two pairs of discount basis of costs and operating expenses discounted

4, fuel costs one pair of base fees charged as a percentage

5, fuel costs two pairs of base fees charged as a percentage

6, according to ticket surcharge fee, fixed fee

7, Route charges by weight, followed by non-price.

Eventually broken down into # # = total cost basis of cost + sum (# other costs)

Each uses an algorithm to achieve other costs, the final results are added to.

Guess you like

Origin www.cnblogs.com/zhuwansu/p/11989898.html