You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localprocedure OnBeforeFillMatchBankPaymentBufferPurchaseAdvance(var PurchAdvLetterHeaderCZZ: Record "Purch. Adv. Letter Header CZZ"; SearchRuleLineCZB: Record "Search Rule Line CZB"; TempMatchBankPaymentBufferCZB: Record "Match Bank Payment Buffer CZB"; GenJournalLine: Record "Gen. Journal Line")
189
+
begin
190
+
end;
191
+
192
+
[IntegrationEvent(false, false)]
193
+
localprocedure OnBeforeFillMatchBankPaymentBufferSalesAdvance(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; SearchRuleLineCZB: Record "Search Rule Line CZB"; TempMatchBankPaymentBufferCZB: Record "Match Bank Payment Buffer CZB"; GenJournalLine: Record "Gen. Journal Line")
localprocedure OnBeforePostDtldCVLedgEntry(sender: Codeunit "Gen. Jnl.-Post Line"; var GenJournalLine: Record "Gen. Journal Line"; var DetailedCVLedgEntryBuffer: Record "Detailed CV Ledg. Entry Buffer"; var AccNo: Code[20]; var IsHandled: Boolean; AddCurrencyCode: Code[10]; MultiplePostingGroups: Boolean)
381
+
var
382
+
CustomerPostingGroup: Record "Customer Posting Group";
localprocedure OnBeforeUpdateVATAmountOnAfterInitVAT(var GenJournalLine: Record "Gen. Journal Line"; var GLEntry: Record "G/L Entry"; var IsHandled: Boolean)
<DataExchColumnDefColumnNo="1"Name="Party"Show="false"DataType="0"Path="/Party[@partyType="PSI" and @partyRole="sender"]"TextPaddingRequired="false"Justification="0"UseNodeNameAsValue="false"BlankZero="false"ExportIfNotBlank="false" />
@@ -321,6 +325,8 @@ codeunit 18001 "GST Base Validation"
321
325
if (Rec."Amount Loaded on Item" <> Rec."GST Amount") and (Rec."Amount Loaded on Item" <> 0) and (Rec."GST Credit" = Rec."GST Credit"::"Non-Availment") then
if (Rec."Transaction Type" = Rec."Transaction Type"::Sales) and (Rec."GST Place of Supply" = Rec."GST Place of Supply"::" ") then
325
331
Rec."GST Place of Supply" := SalesReceivablesSetup."GST Dependency Type";
326
332
@@ -1421,4 +1427,20 @@ codeunit 18001 "GST Base Validation"
1421
1427
localprocedure OnAfterUpdateDetailedGstLedgerEntryOnafterInsertEventOnBeforeModify(var DetailedGSTLedgerEntry: Record "Detailed GST Ledger Entry"; GSTRegistrationNos: Record "GST Registration Nos."; var DetailedGSTLedgerEntryInfo: Record "Detailed GST Ledger Entry Info")
1422
1428
begin
1423
1429
end;
1430
+
1431
+
[IntegrationEvent(false, false)]
1432
+
localprocedure OnAfterUpdateDetailedGstLedgerEntryAmountsField(var DetailedGSTLedgerEntry: Record "Detailed GST Ledger Entry"; SignFactor: Integer)
1433
+
begin
1434
+
end;
1435
+
1436
+
[IntegrationEvent(false, false)]
1437
+
localprocedure OnAfterUpdateDetailedGSTLedgerEntrySignFactor(var DetailedGSTLedgerEntry: Record "Detailed GST Ledger Entry"; var SignFactor: Integer; DocTypeEnum: Enum Microsoft.Finance.GST.Base."Document Type Enum"; TransTypeEnum: Enum Microsoft.Finance.GST.Base."Transaction Type Enum")
1438
+
begin
1439
+
end;
1440
+
1441
+
[IntegrationEvent(false, false)]
1442
+
localprocedure OnAfterUpdateGSTLedgerEntrySignFactor(var GSTLedgerEntry: Record "GST Ledger Entry"; var SignFactor: Integer; DocTypeEnum: Enum Microsoft.Finance.GST.Base."Document Type Enum"; TransTypeEnum: Enum Microsoft.Finance.GST.Base."Transaction Type Enum")
SubOrderCompListVend.SetRange("Document Line No.", "Line No.");
328
329
if SubOrderCompListVend.FindSet() then
329
330
repeat
330
-
SubOrderCompListVend.Validate("Qty. to Consume", "Qty. to Receive" * SubOrderCompListVend."Quantity per" * SubOrderCompListVend."Qty. per Unit of Measure");
331
+
SubOrderCompListVend.Validate("Qty. to Consume", GetQtytoConsumeForSubOrderCompListVend(SubOrderCompListVend, "Qty. to Receive"));
331
332
SubOrderCompListVend.Validate("Qty. to Return (C.E.)", "Qty. to Reject (C.E.)" * SubOrderCompListVend."Quantity per");
332
333
SubOrderCompListVend.Validate("Qty. To Return (V.E.)", (SubOrderCompListVend."Quantity per" * "Qty. to Reject (V.E.)"));
procedure GetQuantityToSendForSubOrderCompList(SubOrderCompList: Record "Sub Order Component List"; DeliverCompFor: Decimal): Decimal
407
+
var
408
+
ProdOrderComponent: Record "Prod. Order Component";
409
+
UOMMgt: Codeunit "Unit of Measure Management";
410
+
CalculatedQuantity: Decimal;
411
+
begin
412
+
Clear(CalculatedQuantity);
413
+
ProdOrderComponent.Get(ProdOrderComponent.Status::Released, SubOrderCompList."Production Order No.", SubOrderCompList."Production Order Line No.", SubOrderCompList."Line No.");
if ProdOrderComponent."Calculation Formula" = ProdOrderComponent."Calculation Formula"::"Fixed Quantity" then
432
+
exit(CalculatedQuantity)
433
+
else
434
+
exit(CalculatedQuantity * DeliverCompFor);
435
+
end;
436
+
437
+
procedure GetQtytoConsumeForSubOrderCompListVend(SubOrderCompListVend: Record "Sub Order Comp. List Vend"; QtytoReceive: Decimal): Decimal
438
+
var
439
+
ProdOrderComponent: Record "Prod. Order Component";
440
+
UOMMgt: Codeunit "Unit of Measure Management";
441
+
CalculatedQuantity: Decimal;
442
+
begin
443
+
Clear(CalculatedQuantity);
444
+
ProdOrderComponent.Get(ProdOrderComponent.Status::Released, SubOrderCompListVend."Production Order No.", SubOrderCompListVend."Production Order Line No.", SubOrderCompListVend."Line No.");
0 commit comments