9. Februar 2010 12:44
9. Februar 2010 12:49
9. Februar 2010 12:53
10. Februar 2010 10:35
10. Februar 2010 10:45
10. Februar 2010 10:49
9. Mai 2014 11:59
24. Februar 2015 14:40
24. Februar 2015 15:59
QtyType::Invoicing:
BEGIN
CASE TRUE OF
("Document Type" IN ["Document Type"::Order,"Document Type"::Invoice]) AND
(NOT SalesHeader.Ship) AND SalesHeader.Invoice AND (NOT "Prepayment Line"):
BEGIN
IF "Shipment No." = '' THEN BEGIN
QtyToHandle := GetAbsMin("Qty. to Invoice","Qty. Shipped Not Invoiced");
VATAmountLine.Quantity :=
VATAmountLine.Quantity + GetAbsMin("Qty. to Invoice (Base)","Qty. Shipped Not Invd. (Base)");
END ELSE BEGIN
QtyToHandle := "Qty. to Invoice";
VATAmountLine.Quantity := VATAmountLine.Quantity + "Qty. to Invoice (Base)";
END;
END;
("Document Type" IN ["Document Type"::"Return Order","Document Type"::"Credit Memo"]) AND
(NOT SalesHeader.Receive) AND SalesHeader.Invoice:
BEGIN
//----------------------------------------------------------------------------------------------------------
//PS55621
//QtyToHandle := GetAbsMin("Qty. to Invoice","Return Qty. Rcd. Not Invd.");
//VATAmountLine.Quantity :=
// VATAmountLine.Quantity + GetAbsMin("Qty. to Invoice (Base)","Ret. Qty. Rcd. Not Invd.(Base)");
// PS55621.begin
IF "Return Receipt No." = '' THEN BEGIN
QtyToHandle := GetAbsMin("Qty. to Invoice","Return Qty. Rcd. Not Invd.");
VATAmountLine.Quantity :=
VATAmountLine.Quantity + GetAbsMin("Qty. to Invoice (Base)","Ret. Qty. Rcd. Not Invd.(Base)");
END ELSE BEGIN
QtyToHandle := "Qty. to Invoice";
VATAmountLine.Quantity := VATAmountLine.Quantity + "Qty. to Invoice (Base)";
END;
//PS55621.end
//----------------------------------------------------------------------------------------------------------
END;
QtyType::Invoicing:
BEGIN
CASE TRUE OF
("Document Type" IN ["Document Type"::Order,"Document Type"::Invoice]) AND
(NOT PurchHeader.Receive) AND PurchHeader.Invoice AND (NOT "Prepayment Line"):
BEGIN
IF "Receipt No." = '' THEN BEGIN
QtyToHandle := GetAbsMin("Qty. to Invoice","Qty. Rcd. Not Invoiced");
VATAmountLine.Quantity :=
VATAmountLine.Quantity + GetAbsMin("Qty. to Invoice (Base)","Qty. Rcd. Not Invoiced (Base)");
END ELSE BEGIN
QtyToHandle := "Qty. to Invoice";
VATAmountLine.Quantity := VATAmountLine.Quantity + "Qty. to Invoice (Base)";
END;
END;
("Document Type" IN ["Document Type"::"Return Order","Document Type"::"Credit Memo"]) AND
(NOT PurchHeader.Ship) AND PurchHeader.Invoice:
BEGIN
//----------------------------------------------------------------------------------------------------------
//PS55621
//QtyToHandle := GetAbsMin("Qty. to Invoice","Return Qty. Shipped Not Invd.");
//VATAmountLine.Quantity :=
// VATAmountLine.Quantity + GetAbsMin("Qty. to Invoice (Base)","Ret. Qty. Shpd Not Invd.(Base)");
// PS55621.begin
IF "Return Shipment No." = '' THEN BEGIN
QtyToHandle := GetAbsMin("Qty. to Invoice","Return Qty. Shipped Not Invd.");
VATAmountLine.Quantity :=
VATAmountLine.Quantity + GetAbsMin("Qty. to Invoice (Base)","Ret. Qty. Shpd Not Invd.(Base)");
END ELSE BEGIN
QtyToHandle := "Qty. to Invoice";
VATAmountLine.Quantity := VATAmountLine.Quantity + "Qty. to Invoice (Base)";
END;
//PS55621.end
//----------------------------------------------------------------------------------------------------------
END;
24. Februar 2015 16:55