1备货调整 2在线升级调整
This commit is contained in:
1 parent
dd52c9b2d3
commit
fef54e1f0f
13 files changed
+290
-182
No files matched your search
@@ -767,8 +767,11 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
sku.wantStockUpBound = sku.todaySaleVolume.ParseToInt() * scale
|
||||
- sku.inventoryNumInfo.warehouseInventoryNum.ParseToInt()
|
||||
- sku.inventoryNumInfo.waitReceiveNum.ParseToInt();
|
||||
if (sku.wantStockUpBound > 0 && sku.wantStockUpBound < this.txtMinBound.Text.ParseToInt())
|
||||
sku.wantStockUpBound = this.txtMinBound.Text.ParseToInt();
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (sku.wantStockUpBound > 0 && sku.wantStockUpBound < this.txtMinBound.Text.ParseToInt())
|
||||
sku.wantStockUpBound = this.txtMinBound.Text.ParseToInt();
|
||||
}));
|
||||
sku.wantStockUpBound = Math.Max(sku.wantStockUpBound, 0);
|
||||
}
|
||||
if (sInfo.skuQuantityDetailList.Any(s => s.wantStockUpBound > 0))
|
||||
@@ -964,6 +967,12 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
if (sku.wantStockUpBound > sBaseSku.applyUpperBound.ParseToInt())
|
||||
{
|
||||
sku.wantStockUpBound = sBaseSku.applyUpperBound.ParseToInt();
|
||||
//如果强制要求最小数量,且平台可备数量小于最小数量,直接不允许备货
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (sku.wantStockUpBound < this.txtMinBound.Text.ParseToInt() && this.chkIfLessMakeZero.Checked)
|
||||
sku.wantStockUpBound = -1;
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1034,7 +1043,8 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
|
||||
private void txtMinBound_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.lblMinBound.Text = "备货数量小于" + txtMinBound.Text.ParseToInt() + "按";
|
||||
this.lblMinBound.Text = "备货量小于" + txtMinBound.Text.ParseToInt() + "按";
|
||||
//this.chkIfLessMakeZero.Text = "平台允许备货数量小于" + txtMinBound.Text.ParseToInt() + "不备货";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user