Explode BOM, Purchase order

gmitsuygmitsuy Member Posts: 5
Hi, I'm a newbie in Dynamics NAV 5.0
I have a problem..., if a Product X is assembled by 10 A units, 20 B units & 25 C units. In this case X is a big box with A B & C type pair of shoes that come in boxes.
In the case I receive only receive 9 X boxes instead of 10. I want to explode the BOM so it shows me 90A,180B & 225C pair of shoes.
When i put 9 in "Quantity to receive" and explode the BOM, it shows me 100A, 200B & 250C as if I received 10.
Is there an easy way to get 90A,180B & 225C pair of shoes?
I'll appreciate any help!
Kindest Regards

Comments

  • gargatul.itgargatul.it Member Posts: 14
    Hi,

    I think u need little change in CodeUnit 73. Just validate Qty to Receive Also e.g

    Before Change
    //
    FromBOMComp.Type::Item:
    BEGIN
    Item.GET(FromBOMComp."No.");
    ToPurchLine.Type := ToPurchLine.Type::Item;
    ToPurchLine.VALIDATE("No.",FromBOMComp."No.");
    ToPurchLine.VALIDATE("Variant Code",FromBOMComp."Variant Code");
    ToPurchLine.VALIDATE(
    Quantity,
    ROUND(
    "Quantity (Base)" * FromBOMComp."Quantity per" *
    UOMMgt.GetQtyPerUnitOfMeasure(Item,FromBOMComp."Unit of Measure Code") /
    ToPurchLine."Qty. per Unit of Measure",
    0.00001));
    END;
    //
    After Change
    //
    FromBOMComp.Type::Item:
    BEGIN
    Item.GET(FromBOMComp."No.");
    ToPurchLine.Type := ToPurchLine.Type::Item;
    ToPurchLine.VALIDATE("No.",FromBOMComp."No.");
    ToPurchLine.VALIDATE("Variant Code",FromBOMComp."Variant Code");
    ToPurchLine.VALIDATE(
    Quantity,
    ROUND(
    "Quantity (Base)" * FromBOMComp."Quantity per" *
    UOMMgt.GetQtyPerUnitOfMeasure(Item,FromBOMComp."Unit of Measure Code") /
    ToPurchLine."Qty. per Unit of Measure",
    0.00001));
    ToPurchLine.VALIDATE(
    "Qty. to Receive",
    ROUND(
    "Qty. to Receive" * FromBOMComp."Quantity per" *
    UOMMgt.GetQtyPerUnitOfMeasure(Item,FromBOMComp."Unit of Measure Code") /
    ToPurchLine."Qty. per Unit of Measure",
    0.00001));

    END;
  • gmitsuygmitsuy Member Posts: 5
    Thank you! It was very helpful...
    Cheers
Sign In or Register to comment.