14. Juni 2010 15:04
14. Juni 2010 15:23
IF "Attached-to Line No." = 0 THEN
SalesInvLine2 := SalesInvLine
ELSE
SalesInvLine2.GET("Document No.","Attached-to Line No.");
IF NOT SalesInvLine2.Type IN [SalesInvLine2.Type::" ",SalesInvLine2.Type::"G/L Account"] THEN
IF SalesInvLine2.Quantity = 0 THEN
CurrReport.SKIP;
14. Juni 2010 15:44
OutputNullPosition - OnPreDataItem()
IF ("Sales Line".Type = "Sales Line".Type::" ") OR
("Sales Line".Type > "Sales Line".Type::"Charge (Item)") OR
(NOT "Sales Line"."Print Line") OR
("Sales Line"."Null Position" = "Sales Line"."Null Position"::No)
THEN
CurrReport.BREAK;
OutputNullPosition - OnAfterGetRecord()
IF ( "Sales Line".Type = "Sales Line".Type::"G/L Account" ) THEN BEGIN
IF "Sales Line"."Print own No." THEN
OutputNo := GeneralFunctionMST1.FormatItemNo("Sales Line"."No.")
ELSE
IF "Sales Line"."Print Reference No." THEN
OutputNo := "Sales Line"."Cross-Reference No."
ELSE
OutputNo := '';
END
ELSE IF ( "Sales Line".Type = "Sales Line".Type::Item ) THEN BEGIN
IF "Sales Line"."Print own No." THEN BEGIN
IF "Sales Line"."Search No." <> '' THEN
OutputNo := "Sales Line"."Search No."
ELSE
OutputNo := GeneralFunctionMST1.FormatItemNo("Sales Line"."No.");
END ELSE BEGIN
IF "Sales Line"."Print Reference No." THEN
OutputNo := "Sales Line"."Cross-Reference No."
ELSE
OutputNo := '';
END;
END
ELSE IF ( "Sales Line".Type = "Sales Line".Type::Resource ) THEN BEGIN
IF NOT "Sales Line"."Print own No." THEN
CLEAR(OutputNo)
ELSE
OutputNo := "Sales Line"."No.";
END
ELSE BEGIN
OutputNo := "Sales Line"."No.";
END;
14. Juni 2010 16:34
14. Juni 2010 16:43
14. Juni 2010 16:50
14. Juni 2010 16:52
14. Juni 2010 16:54
14. Juni 2010 17:01
15. Juni 2010 07:30
15. Juni 2010 08:31