feat(stocking): 佣金不再参与利润计算
calcProfit 新车/二手车两个分支的公式移除 commission 减项, 佣金录入与提交保持不变。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -487,7 +487,7 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 利润=收款价-官方指导价/二手挂牌价+优惠-手续费-改装费-配件费-fob运费-港杂-海运-佣金-挂账-购置税+预估退税
|
// 利润=收款价-官方指导价/二手挂牌价+优惠-手续费-改装费-配件费-fob运费-港杂-海运-挂账-购置税+预估退税(佣金不参与)
|
||||||
const calcProfit = (it: any): number => {
|
const calcProfit = (it: any): number => {
|
||||||
const targetCurrency = 'CNY' // 固定使用人民币
|
const targetCurrency = 'CNY' // 固定使用人民币
|
||||||
const unit = convertCurrency(it.unit_price, it.unit_price_currency, targetCurrency)
|
const unit = convertCurrency(it.unit_price, it.unit_price_currency, targetCurrency)
|
||||||
@@ -516,11 +516,6 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
|||||||
(it as any).ocean_freight_currency,
|
(it as any).ocean_freight_currency,
|
||||||
targetCurrency
|
targetCurrency
|
||||||
)
|
)
|
||||||
const commission = convertCurrency(
|
|
||||||
it.commission ?? (it as any).commission,
|
|
||||||
(it as any).commission_currency,
|
|
||||||
targetCurrency
|
|
||||||
)
|
|
||||||
const purchaseTax = convertCurrency(
|
const purchaseTax = convertCurrency(
|
||||||
it.purchase_tax ?? (it as any).purchase_tax,
|
it.purchase_tax ?? (it as any).purchase_tax,
|
||||||
(it as any).purchase_tax_currency,
|
(it as any).purchase_tax_currency,
|
||||||
@@ -570,7 +565,6 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
|||||||
handling +
|
handling +
|
||||||
port +
|
port +
|
||||||
ocean +
|
ocean +
|
||||||
commission +
|
|
||||||
purchaseTax +
|
purchaseTax +
|
||||||
retention +
|
retention +
|
||||||
increase +
|
increase +
|
||||||
@@ -599,7 +593,6 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
|||||||
handling +
|
handling +
|
||||||
port +
|
port +
|
||||||
ocean +
|
ocean +
|
||||||
commission +
|
|
||||||
purchaseTax +
|
purchaseTax +
|
||||||
retention +
|
retention +
|
||||||
increase +
|
increase +
|
||||||
|
|||||||
Reference in New Issue
Block a user