static void GL_ImporttAsset(Args _args)
{
axAssetTable _axAssetTable;
assetBook _assetBook;
AssetId _AsseiId;
;
if (Box::yesNo("Create New Asset ?",DialogButton::No))
{
_axAssetTable = new axAssetTable();
_axAssetTable.parmAssetGroup("INV.00");
_axAssetTable.parmAssetId("008001987001");
_axAssetTable.parmName("NEW ASSET");
_axAssetTable.save();
ttsBegin;
select forUpdate _assetBook
where _assetBook.AssetId == "008001987001" && _assetBook.BookId == "Y02";
_assetBook.Depreciation = NoYes::Yes;
_assetBook.update();
ttsCommit;
}
}
{
axAssetTable _axAssetTable;
assetBook _assetBook;
AssetId _AsseiId;
;
if (Box::yesNo("Create New Asset ?",DialogButton::No))
{
_axAssetTable = new axAssetTable();
_axAssetTable.parmAssetGroup("INV.00");
_axAssetTable.parmAssetId("008001987001");
_axAssetTable.parmName("NEW ASSET");
_axAssetTable.save();
ttsBegin;
select forUpdate _assetBook
where _assetBook.AssetId == "008001987001" && _assetBook.BookId == "Y02";
_assetBook.Depreciation = NoYes::Yes;
_assetBook.update();
ttsCommit;
}
}
No comments:
Post a Comment