ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Page 160-161 Global Variables Issue

Open frivadulla opened this issue 8 years ago • 5 comments

Hello everyone!!

I was wondering if its possible to make the global variables "TotalSalesLine" and "TotalPurchLine" accesible from outside the page in order just to do something like the following evento_pagina161

(No problem here if only the previous variables are accesible and not the "TotalAmount2" or "TotalAmount1" because these two ones are filled here:

IF "Prices Including VAT" THEN BEGIN
  TotalAmount2 := TotalPurchLine.Amount;
  TotalAmount1 := TotalAmount2 + VATAmount;
  TotalPurchLine."Line Amount" := TotalAmount1 + TotalPurchLine."Inv. Discount Amount"
    + TotalPurchLine."Pmt. Disc. Rcd. Amount";
END ELSE BEGIN
  TotalAmount1 := TotalPurchLine.Amount;
  TotalAmount2 := TotalPurchLine."Amount Including VAT";
END;

It´s not a big issue because this are only informative fields, but customers also demand those kind of things, so it would be nice to add information to this page in a simply way.

Kind regards!!!

frivadulla avatar Nov 22 '18 10:11 frivadulla

Any notice on this??

frivadulla avatar Mar 13 '19 07:03 frivadulla

@frivadulla There is an event OnAfterCalculateTotals() that is called in the end of CalculateTotals(). OnAfterCalculateTotals(Rec,TotalPurchLine,TotalPurchLineLCY,TempVATAmountLine); Would it be helpful if we include TotalAmount1 and TotalAmount2 as parameters by var?

StanPesotskiy avatar May 14 '19 10:05 StanPesotskiy

@frivadulla There is an event OnAfterCalculateTotals() that is called in the end of CalculateTotals(). OnAfterCalculateTotals(Rec,TotalPurchLine,TotalPurchLineLCY,TempVATAmountLine); Would it be helpful if we include TotalAmount1 and TotalAmount2 as parameters by var?

I think that should be ok for my functionality.

frivadulla avatar May 24 '19 06:05 frivadulla

@frivadulla There is an event OnAfterCalculateTotals() that is called in the end of CalculateTotals(). OnAfterCalculateTotals(Rec,TotalPurchLine,TotalPurchLineLCY,TempVATAmountLine); Would it be helpful if we include TotalAmount1 and TotalAmount2 as parameters by var?

is this confirmed to be done?

Thx and kind regards.

frivadulla avatar Jun 04 '19 07:06 frivadulla

yes, this is the call now:
OnAfterCalculateTotals(Rec, TotalPurchLine, TotalPurchLineLCY, TempVATAmountLine, TotalAmount1, TotalAmount2);

StanPesotskiy avatar Jun 04 '19 08:06 StanPesotskiy