|
|
- package productrpc
-
- import (
- "testing"
- )
-
- func Test_ProductCommission(t *testing.T) {
-
- commission_rule := "2"
- commission_value := "2%"
- commission_rate := "35"
- product_price := "105"
- cost_price := "80"
- quantity := "1"
- ret := ProductCommission(commission_rule, commission_value, commission_rate, product_price, cost_price, quantity)
-
- t.Log(ret)
- }
|