
Hello guys,
May I know when F&O insert TaxTrans table, basically when processing Sales order invoice, what will be it's default value ? is it based on the invoice date or the current system date? and where (which class) it is define ?
I got a case whereby my sales invoice created with the past date, but in TaxTrans is using system date when processing.
The invoice process I'm using is using X code like this :
SalesFormLetter formLetterObj;
SalesTable salesTableInv = SalesTable::find(MyTable.SalesId);
formLetterObj = SalesFormLetter::construct(DocumentStatus::Invoice);
formLetterObj.update(salesTableInv);
So in X , my code will take a look at a custom table with information of SalesId, then I'm using that command to execute posting invoice. So I know confuse why the TaxTrans table is not following what sales invoice - invoice date ?
Thanks
Hi Lars,
When I look at your coding, you only provide a sales order, but I don't see any other logic to take parameters for posting the invoice from your custom table. Have you used the debugger to find out when and where the date is set or lost?