Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

worker and position link through DMF

$
0
0

Hi everyone,

i am able to insert record of worker through DMF but not sure how to insert record of position. i.e how many fields should be there in source document and how to link them together? i have tried but with no hope. any help or link would be much appreciated.

Thanks


RE: Address properties

$
0
0

Hi Daxer,

I'm not quite familiar with the Tax registration on addresses. I thought it was mainly used for some countries, like Russia. In the past I had used it to link some registration data on freelancers as vendors.

For the private addresses, you don't have to create a security policy; this is an existing and active one out of the box. You only have to assign the roles on the GAB parameters. PS. System administrators are able to see the private addresses anyway as they are bypassing all security.

Address properties

$
0
0

What's the use of the Primary, Primary for country and Private properties on an address - one by one and in combinations? Eg. when creating the address for a new customer or vendor.

Thanks.

RE: worker and position link through DMF

$
0
0

Entity'HCMPosition which you are using for positions has method 'generateWorker'. You would have to map any of the below given three columns with your source document.

HcmWorker_WorkerPartyName

HcmWorker_WorkerPartyNumber

HcmWorker_WorkerPersonnelNumber

RE: AX7: how to run code before synchronization without LCS (release update)

$
0
0

As a workaround you can do Following steps.

1.Create your field.

2. Synchronize DB which will create field in DB .

3. Run your job to fill that field.

4. Then add that Field in Index

5. Synchronize you database .

AX7: how to run code before synchronization without LCS (release update)

$
0
0

Hi All,

I have created an entity for a table by adding a new Counter (Int) field and creating an alternate key with the new field included.

After I wanted to build and sync the project it has failed with error message about applying unique index is not allowed because of record duplication. It is true, because the newly created field was empty at the time of applying the new unique index.

I have created a code (lets call it FILLER), which is going to fill the existing record's new Counter field before enabling the index. After that I have enabled the index, and it worked.

But I don't want to do this way. I cannot remove the content of the table, so I would like to run the code FILLER before the synchronization to avoid the error mentioned above.

I am a newbie in AX, and I haven't find a solution for this. (I have heard about a solution in AX6 (releaseupdate), but it is not working in AX7 as far as I know, am I right?). I hope you understand the issue and can provide me a solution for this. Thanks!

Regards,

Szabi

RE: Import GL on voucher for invoice through X++

$
0
0

Hi Shubhi,

I have quickly looked at the coding and tried to follow the blogger. I do think the part you are using is intended to use with dimensions. There is a statement in the example evaluating if the outcome was 0. In that case try to use:

cont1 = ['6040020','6040020'];

 offsetledgerDim = AxdDimensionUtil::getLedgerAccountId(cont1);

I haven't tested/verified it myself; only tried to get it out of the blog example.

RE: Import GL on voucher for invoice through X++

$
0
0

can you confirm you account 6040020 exist ?

Also try following code

ledgerDimensions = [_mainAccountNumber, _mainAccountNumber];

   AccountDimension = AxdDimensionUtil::getDefaultAccountId(ledgerDimensions);


Import GL on voucher for invoice through X++

RE: Configure WMDP (Warehouse Mobile Device Portal) on D365/D3FO

RE: Master planning doesn't generate purchase order on service items

$
0
0

No I do not believe planning can pick up a service item generally, or indeed a non-stocked item. However a stocked service item can be seen by planning, but please check. By stocked I mean the flag on the item model group. Ticking this for a service item does then create transactions and alter the posting setup. 

RE: Master planning doesn't generate purchase order on service items

$
0
0

Master planning creates planned Purchase orders only for Non-stock items. BUT, there is a dirty workaround. You can configure the Service items as a stocked item and then in the Item model group you need to uncheck the Post physical and Post financial inventory.

This way you can create planned Purchase orders while not having this item stocked in the warehouse.

RE: Master planning doesn't generate purchase order on service items

$
0
0

Also, you will need to account for the transactions separately. It's a give and take workaround.

RE: Why Refresh data in GridView ???

$
0
0

Son varios métodos (12)

Are methods with a query simple

example

display SalesId obtieneOV(InventSum _InventSum)

{

SalesLine sLine;

select firstOnly SalesId from sLine where sLine.InventRefId == this.inventBatchId;
return sLine.SalesId;
}

RE: Compare Values to Send notification

$
0
0

Hi,

As I wasn't aware of your business process earlier suggested to have code in the update method of inventSum table.Please use the below code as we want to trigger the notification only during Inventmovement journal posting.Add the code that is enclosed between the comments CodeAdded.

Please use the below code:

Path: \Classes\InventMov_Journal\journalPostTrans

public void journalPostTrans(
    LedgerVoucher           _ledgerVoucher,
    InventUpd_Financial     _financial      = null,
    CostAmount              _costAmount     = 0)
{
    //Code added
    InventSum localInventSum;
    InventDim localInventDim;
    ReqItemTable            reqItemTable;
    InventDimParm       inventDimParm;
    InventOnhand        inventOnhand;
    InventQty qty;
    //Code added

    if (!_ledgerVoucher)
    {
        throw error(strFmt("@SYS3458",tablePName(InventJournalTrans)));
    }
    if (_ledgerVoucher.lastVoucher()  != inventJournalTrans.Voucher )
    {
        throw error(strFmt("@SYS3458",tablePName(InventJournalTrans)));
    }

    if (_ledgerVoucher.lastTransDate() != inventJournalTrans.TransDate)
    {
        throw error("@SYS19456");
    }


    if (this.transQty() != 0)
    {
        if (!_financial)
        {
            _financial = InventUpd_Financial::newCheckPostInventJournalTrans(this, _ledgerVoucher, _costAmount);
        }

        _financial.updateNow();

        if (#PdsBatchAttribEnabled
            && inventJournalTrans.PdsCopyBatchAttrib)
        {
            this.pdsCopyBatchAttrib();
        }

        this.handlePallet();    // Check if pallet should be moved

        //Code added
        select * from localInventSum
        where localInventSum.ItemId == inventJournalTrans.ItemId
        join localInventDim
        where localInventDim.inventDimId == localInventSum.InventDimId
        && localInventDim.inventDimId == inventJournalTrans.InventDimId;

        inventDimParm.initFromInventDim(localInventDim);
        InventOnhand = InventOnhand::newParameters(localInventSum.ItemId, localInventDim,inventDimParm);
        qty = InventOnhand.availPhysical();

        select * from reqItemTable
        where reqItemTable.ItemId == inventTable.ItemId
&& reqItemTable.CovInventDimId == inventDim.inventDimId;

        if (qty < ReqItemTable.MinInventOnhand)
        {
            // Send notification;
        }
        else if (qty > ReqItemTable.MaxInventOnhand)
        {
            //  Send notification;
        }
        //Code added
    }
}



Compare Values to Send notification

$
0
0

Hi!

I have been trying to make one customization for last two weeks but can't make it as I am new to AX. Please Help me with this somebody. I am even ready to pay 50$ for this particular customization. Please help Please Please Please.

My requirement is, In this form, there is a field Available Physical. this is the actual quantity in the inventory left for all the products. 

and this is the form where we enter the minimum and maximum quantity of product seperately. means for each product there is a form like this. all the form like these are connected to one table. 

So What we need to do is , we need to compare available physical from that table from the minimum and maximum. and on the update of the available physical quantity, if it gets less then the minimum quantity of any product the notification should be sent to a customized group of people in system administration, else if the physical quantity get more than the maximum quantity notification should be sent to the same group sayingg the inventory increased.

RE: Project transaction show wrong cost from purchase order

$
0
0

Huzaifa

I am one step removed from this issue now but I believe that Microsoft have recognised it as a bug and are working on a fix.

John

Project transaction show wrong cost from purchase order

$
0
0

I have created a project Purchase order, project type time and material, I have created a purchase order from the project for a purchase category.

Purchase line is qty 1 unit price $100.00, Two way matching only.

The invoice is for $96.00 and is posted against the PO.

The project transactions show a cost of $100.00 not $96.00.

Can anyone explain why?

RE: Why Refresh data in GridView ???

$
0
0

This the only large query...

display TransDate GetDateSum(InventSum   _inventSum)

{

   TransDate           fecha, fecha1;

   InventTrans         invTrans;

   InventTransOrigin   invOrigin;

   InventDim           invDim;

   str                 sPallet, sItemId;

   ;

   sPallet = _inventSum.wmsPalletId();

   select    minOf(DatePhysical)

   from      invTrans

   join      invDim

   join      invOrigin

   where     _inventSum.ItemId == invTrans.ItemId &&

             invTrans.InventTransOrigin == invOrigin.RecId &&

             invDim.inventDimId == invTrans.InventDimId &&

             (invTrans.StatusReceipt == StatusReceipt::Purchased ||

             invTrans.StatusReceipt == StatusReceipt::Received ||

             invTrans.StatusReceipt == StatusReceipt::Registered) &&

             invDim.wMSPalletId == _inventSum.wmsPalletId() &&

             (invOrigin.ReferenceCategory == InventTransType::InventTransaction ||

             invOrigin.ReferenceCategory == InventTransType::Purch ||

             invOrigin.ReferenceCategory == InventTransType::InventLossProfit ||

             invOrigin.ReferenceCategory == InventTransType::InventTransfer ||

             invOrigin.ReferenceCategory == InventTransType::InventCounting||

             invOrigin.ReferenceCategory == InventTransType::ProdLine ||

             invOrigin.ReferenceCategory == InventTransType::QuarantineOrder ||

             invOrigin.ReferenceCategory == InventTransType::Production )

             ;

   return invTrans.DatePhysical;

}

RE: Why Refresh data in GridView ???

$
0
0

Hi,

I couldn't find field inventBatchId on InventSum datasource.Could you please move this method obtieneOV to the datasource InventDim.

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>