Codeunit 18007962 EOS Free Gift Management
Codeunit 18007962 EOS Free Gift Management
Methods
CreateFreeGoodsLinesYesNo
procedure CreateFreeGoodsLinesYesNo(var SalesHeader: Record "Sales Header")
Parameters / Return Value
- SalesHeader
Record "Sales Header"
CreateFreeGoodsLines
procedure CreateFreeGoodsLines(var SalesHeader: Record "Sales Header")
Parameters / Return Value
- SalesHeader
Record "Sales Header"
UpdateQty
procedure UpdateQty(SalesLine: Record "Sales Line")
Parameters / Return Value
- SalesLine
Record "Sales Line"
DeleteGiftItemCharge
procedure DeleteGiftItemCharge(SalesLine: Record "Sales Line")
Parameters / Return Value
- SalesLine
Record "Sales Line"
HasFreeGoodsLine
procedure HasFreeGoodsLine(SalesLine: Record "Sales Line"): Boolean
Parameters / Return Value
SalesLine
Record "Sales Line"
Returns
Boolean
IsFreeGoodsLine
procedure IsFreeGoodsLine(var SalesLine: Record "Sales Line"): Boolean
Parameters / Return Value
SalesLine
Record "Sales Line"
Returns
Boolean
Events
OnBeforeInsertFreeGiftLine
local procedure OnBeforeInsertFreeGiftLine(OriginalSalesLine: Record "Sales Line")
Parameters / Return Value
- OriginalSalesLine
Record "Sales Line"
OnAfterInsertFreeGiftLine
local procedure OnAfterInsertFreeGiftLine(OriginalSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line")
Parameters / Return Value
OriginalSalesLine
Record "Sales Line"
NewSalesLine
Record "Sales Line"
OnAfterAssignItemCharges
local procedure OnAfterAssignItemCharges(OriginalSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line")
Parameters / Return Value
OriginalSalesLine
Record "Sales Line"
NewSalesLine
Record "Sales Line"
OnBeforeModifySalesLine
procedure OnBeforeModifySalesLine(OriginalSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line")
Parameters / Return Value
OriginalSalesLine
Record "Sales Line"
NewSalesLine
Record "Sales Line"
OnBeforeInsertSalesLine
procedure OnBeforeInsertSalesLine(OriginalSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line")
Parameters / Return Value
OriginalSalesLine
Record "Sales Line"
NewSalesLine
Record "Sales Line"
OnAfterInsertSalesLine
procedure OnAfterInsertSalesLine(OriginalSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line")
Parameters / Return Value
OriginalSalesLine
Record "Sales Line"
NewSalesLine
Record "Sales Line"
OnBeforeAssignNewLineNoInsertFreeGiftLine
local procedure OnBeforeAssignNewLineNoInsertFreeGiftLine(SalesLine: Record "Sales Line"; var NewLineNo: Integer)
Raised before assigning the line no. to free gift line. The Line No. can be changed.
Parameters / Return Value
SalesLine
Record "Sales Line"
Current SalesLine with free gift code
NewLineNo
Integer
New line no. that is assigned to the free gift line.
OnBeforeViewMessageAmountNotMatch
local procedure OnBeforeViewMessageAmountNotMatch(var OriginalSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean)
Raised before view the message “The line amounts do not match” on free gift line insert.
Parameters / Return Value
OriginalSalesLine
Record "Sales Line"
Current SalesLine with free gift code
NewSalesLine
Record "Sales Line"
New line that is assigned to the free gift line.
IsHandled
Boolean
if set to true, the message is not displayed
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.