Fix product performance grouped JSON build
This commit is contained in:
@@ -1427,6 +1427,12 @@ func postProductionProductCostingOnMLSaveHandler(w http.ResponseWriter, r *http.
|
||||
totalUSD := 0.0
|
||||
totalEUR := 0.0
|
||||
for _, r := range req.Detail.Upserts {
|
||||
// The top header in the detail screen only includes rows marked
|
||||
// "Maliyete Dahil". Persist that exact business total to the master
|
||||
// record as well; excluded detail rows must not inflate the cost.
|
||||
if r.MaliyeteDahil != 1 {
|
||||
continue
|
||||
}
|
||||
qty := r.LMiktar
|
||||
if qty < 0 {
|
||||
qty = 0
|
||||
|
||||
Reference in New Issue
Block a user