778: -- Scale Factor is the requested batch size divided by the recipe
779: -- total output qty
780: l_total_output_qty := 0;
781: l_uom := p_batch_size_uom;
782: gmd_common_val.calculate_total_qty
783: (formula_id => l_formula_master.formula_id
784: ,x_product_qty => l_total_output_qty
785: ,x_ingredient_qty => l_total_input_qty
786: ,x_uom => l_uom
963: -- Batch is being created by Total Input. The scale factor is the requested batch size divided by the formula's
964: -- total input. We should be changing all the ingredients to the batch size UOM
965: l_total_input_qty := 0;
966: l_uom := p_batch_size_uom;
967: gmd_common_val.calculate_total_qty
968: (formula_id => l_formula_master.formula_id
969: ,x_product_qty => l_total_output_qty
970: ,x_ingredient_qty => l_total_input_qty
971: ,x_uom => l_uom