将字段“ DocumentDate”设置为PurchFormLetter

时间:2018-11-23 14:24:11

标签: x++ dynamics-ax-2009

我正在使用PurchFormLetter开具发票:

 ttsbegin;

 purchTable = PurchTable::find(_deliveryHeader.PurchId, true);

 purchFormLetter = PurchFormLetter::construct(DocumentStatus::Invoice);

 purchFormLetter.update(purchTable, _deliveryHeader.InvoiceId, today(),PurchUpdate::ReceiveNow);

 ttscommit;

发票很完美,但是在VendTrans中,DocumentDate字段为空。

0 个答案:

没有答案