|
@@ -180,7 +180,7 @@ func (b *PlanCostExcel) drawSupplierContent() error {
|
|
|
b.FormatToEmpty(&orderCount)
|
|
|
|
|
|
// 实际数量
|
|
|
- confirmCount := fmt.Sprintf("%d", mat.MatInfo.ConfirmCount)
|
|
|
+ confirmCount := fmt.Sprintf("%d", mat.ConfirmCount)
|
|
|
b.FormatToEmpty(&confirmCount)
|
|
|
// 单价
|
|
|
orderPrice := fmt.Sprintf("%.2f", mat.Supplier.OrderPrice)
|
|
@@ -189,7 +189,7 @@ func (b *PlanCostExcel) drawSupplierContent() error {
|
|
|
orderRealPrice := fmt.Sprintf("%.2f", mat.Supplier.OrderRealPrice)
|
|
|
b.FormatToEmpty(&orderRealPrice)
|
|
|
// 实际金额
|
|
|
- confirmPrice := mat.Supplier.OrderPrice * float64(mat.MatInfo.ConfirmCount)
|
|
|
+ confirmPrice := mat.Supplier.OrderPrice * float64(mat.ConfirmCount)
|
|
|
totalConfirmRealPrice += confirmPrice
|
|
|
confirmRealPrice := fmt.Sprintf("%.2f", confirmPrice)
|
|
|
b.FormatToEmpty(&confirmRealPrice)
|
|
@@ -217,7 +217,7 @@ func (b *PlanCostExcel) drawSupplierContent() error {
|
|
|
b.FormatToEmpty(&carftWidth)
|
|
|
|
|
|
// 实际数量
|
|
|
- confirmCraftCount := fmt.Sprintf("%d", craft.CraftInfo.ConfirmCount)
|
|
|
+ confirmCraftCount := fmt.Sprintf("%d", craft.ConfirmCount)
|
|
|
b.FormatToEmpty(&confirmCraftCount)
|
|
|
|
|
|
carftOrderPrice := fmt.Sprintf("%.2f", craft.Supplier.OrderPrice)
|
|
@@ -227,7 +227,7 @@ func (b *PlanCostExcel) drawSupplierContent() error {
|
|
|
b.FormatToEmpty(&carftOrderRealPrice)
|
|
|
|
|
|
// 实际金额
|
|
|
- confirmCraftPrice := craft.Supplier.OrderPrice * float64(craft.CraftInfo.ConfirmCount)
|
|
|
+ confirmCraftPrice := craft.Supplier.OrderPrice * float64(craft.ConfirmCount)
|
|
|
totalConfirmRealPrice += confirmCraftPrice
|
|
|
confirmCraftRealPrice := fmt.Sprintf("%.2f", confirmCraftPrice)
|
|
|
b.FormatToEmpty(&confirmCraftRealPrice)
|
|
@@ -359,7 +359,7 @@ func (b *PlanCostExcel) drawAllContent() error {
|
|
|
// b.drawRow(row, "", mat.MatInfo.Name, "", supplierName, mat.MatInfo.Norm, matHeigth, matWidth, mat.MatInfo.Unit, orderCount, orderPrice, orderRealPrice, "")
|
|
|
|
|
|
// 实际数量
|
|
|
- confirmCount := fmt.Sprintf("%d", mat.MatInfo.ConfirmCount)
|
|
|
+ confirmCount := fmt.Sprintf("%d", mat.ConfirmCount)
|
|
|
b.FormatToEmpty(&confirmCount)
|
|
|
// 单价
|
|
|
orderPrice := fmt.Sprintf("%.2f", mat.Supplier.OrderPrice)
|
|
@@ -368,7 +368,7 @@ func (b *PlanCostExcel) drawAllContent() error {
|
|
|
orderRealPrice := fmt.Sprintf("%.2f", mat.Supplier.OrderRealPrice)
|
|
|
b.FormatToEmpty(&orderRealPrice)
|
|
|
// 实际金额
|
|
|
- confirmPrice := mat.Supplier.OrderPrice * float64(mat.MatInfo.ConfirmCount)
|
|
|
+ confirmPrice := mat.Supplier.OrderPrice * float64(mat.ConfirmCount)
|
|
|
totalConfirmRealPrice += confirmPrice
|
|
|
confirmRealPrice := fmt.Sprintf("%.2f", confirmPrice)
|
|
|
b.FormatToEmpty(&confirmRealPrice)
|
|
@@ -396,7 +396,7 @@ func (b *PlanCostExcel) drawAllContent() error {
|
|
|
// b.drawRow(row, "", "", craft.CraftInfo.Name, craftSupplierName, craft.CraftInfo.Norm, carftHeigth, carftWidth, craft.CraftInfo.Unit, carftOrderCount, carftOrderPrice, carftOrderRealPrice, "")
|
|
|
|
|
|
// 实际数量
|
|
|
- confirmCraftCount := fmt.Sprintf("%d", craft.CraftInfo.ConfirmCount)
|
|
|
+ confirmCraftCount := fmt.Sprintf("%d", craft.ConfirmCount)
|
|
|
b.FormatToEmpty(&confirmCraftCount)
|
|
|
|
|
|
carftOrderPrice := fmt.Sprintf("%.2f", craft.Supplier.OrderPrice)
|
|
@@ -406,7 +406,7 @@ func (b *PlanCostExcel) drawAllContent() error {
|
|
|
b.FormatToEmpty(&carftOrderRealPrice)
|
|
|
|
|
|
// 实际金额
|
|
|
- confirmCraftPrice := craft.Supplier.OrderPrice * float64(craft.CraftInfo.ConfirmCount)
|
|
|
+ confirmCraftPrice := craft.Supplier.OrderPrice * float64(craft.ConfirmCount)
|
|
|
totalConfirmRealPrice += confirmCraftPrice
|
|
|
confirmCraftRealPrice := fmt.Sprintf("%.2f", confirmCraftPrice)
|
|
|
b.FormatToEmpty(&confirmCraftRealPrice)
|