Issue in Subcontracting

navuser1
Member Posts: 1,334
Dear Sir,
We are not been able to enter the Qty.to Consume in the Applied Delivery Challan screen.
The following error message has been appearing in the screen.
Bom defination :-
I have debugged the code and found the followings-
First Screenshot
Second Screenshot
The values of the field variable are detailed below.
The error message is appearing as per code, however, I suppose the code is incorrect or I am missing something. :-k
Kindly address.
We are not been able to enter the Qty.to Consume in the Applied Delivery Challan screen.
The following error message has been appearing in the screen.
"Remaining Quantity is not sufficient in the challan line selected"
Bom defination :-
FG:RM=1:0.5
I have debugged the code and found the followings-
First Screenshot
Second Screenshot
The values of the field variable are detailed below.
"DeliveryChallanLine."Remaining Quantity" =50 DeliveryChallanLine."Quantity per" =0.5 "Qty. to Consume" =50"
The error message is appearing as per code, however, I suppose the code is incorrect or I am missing something. :-k
Kindly address.
Now or Never
0
Comments
-
I have also faced this problem. The previous code which was commented now is i think work fine for this scenario.
I don't know why this code was blocked. I hope this was a mistake by the developers and they will rectify it soon.
// PS45266.begin
// IN0066.begin
// DeliveryChallanLine.RESET;
// DeliveryChallanLine.SETRANGE("Deliver Challan No.","Applied Delivery Challan No.");
// DeliveryChallanLine.SETRANGE("Line No.","App. Delivery Challan Line No.");
// IF DeliveryChallanLine.FINDFIRST THEN
// DeliveryChallanLine.CALCFIELDS("Remaining Quantity");
// IF (DeliveryChallanLine."Remaining Quantity" <
// ("Qty. to Receive" +"Qty. to Consume" +"Qty. to Return (C.E.)"+ "Qty. To Return (V.E.)"))
// THEN
// ERROR(Text000)
// IN0066.end
IF DeliveryChallanLine.GET("Applied Delivery Challan No.","App. Delivery Challan Line No.") THEN BEGIN
DeliveryChallanLine.CALCFIELDS("Remaining Quantity");
IF (DeliveryChallanLine."Remaining Quantity" * DeliveryChallanLine."Quantity per") <
("Qty. to Receive" + "Qty. to Consume" + "Qty. to Return (C.E.)" + "Qty. To Return (V.E.)")
THEN
ERROR(Text000)
END;
// PS45266.end0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions