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

Company currency conversion AX2009

$
0
0

Hi, if you convert company currency via the standard company currency conversion tool, will the transactions also in closed previous fiscal years be revauled to the new company currency? It feels like it should only convert the transactions in the current fiscal year (if you change in the middle of the year) and all balances in not yet closed stock, AR/AP ledgers  etc. But I get very uncertain...Thanks in advance!

Kind regards

Christopher


RE: The transactions on voucher XXXX do not balance as per . (Company currency: 0.00 - secondary currency: $)

$
0
0

Thank you very much Dasein. It works for me. I was check in PO posting profile, the posting profile is not set based on with vendgroup in our user define setting

The transactions on voucher XXXX do not balance as per . (Company currency: 0.00 - secondary currency: $)

$
0
0

We are trying to post GL journal with project account. When we try to post, following error occurs and posting is cancelled:

"The transactions on voucher XXXX do not balance as per <date>. (Company currency: 0.00 - secondary currency: $<some#>)"

What would be the cause?

Same line posts fine without any errors using ledger accounts.

We are using forced secondary exchange rate.

RE: is there a field "Check Name" in the vendor form

$
0
0

Hi Silvano,

The vendtable does not contain a 'check name' field.

Can you provide some additional details why you need that field and what you current issue is, that is, what do you try to achieve?

Many thanks and best regards,

Ludwig

RE: is there a field "Check Name" in the vendor form

$
0
0

The name of the vendor that needs to be printed on the check is different from the vendor name , so we just need a field where we can put the check vendor name different from the main vendor name

i think i will use the "Known As" (Dirpartytable.knownas) field

but i wanted to check if such a field existed before i use this one , that is all

RE: How to get Accumulated and Total Vendor Account Statement Report in Transaction Currency

$
0
0

Hi Safeer PS,

If you have only two currencies involved modifying the report calculation will work; you simply need to copy/modify the calculation expression from the column that has the amount MST field included.

Yet, before doing that can you record another invoice let's say in GBP? Then your transaction currency column will show GBP and SAR invoices mixed (assuming that USD is your accounting currency) and calculating those values in different currencies won't work anymore.

Best regards,

Ludwig

RE: How to set Field in header to Mandatory with condition from Field in Line

$
0
0

Hi ievgen,

Thanks for replying me,

Yes I found valildateWrite() method in the table, and I guess I need to add validate for my custom field cuz just like you said the I made just adds red line.

Can you show me how to add the method?

Here is the validateWrite() from PurchTable

public boolean validateWrite()
{
    boolean ret;
    List                    purchTable2LineUpdateFields;
    ListEnumerator          purchTable2LineUpdateFieldsEnumerator;
    PurchTable2LineField    purchTable2LineField;

    ret = super();

    copyTaxGroupToMarkupTrans = DialogButton::No;
    if (ret && purchTable.TaxGroup != purchTable.orig().TaxGroup)
    {
        copyTaxGroupToMarkupTrans   = MarkupTrans::promptCopyTaxGroupToMarkupTrans(purchTable.TableId, purchTable.RecId);
        ret                         = copyTaxGroupToMarkupTrans != DialogButton::Cancel;
    }

    if (ret)
    {
        purchTable2LineUpdatePrompt = PurchTable2LineUpdatePrompt::newExecuteExtendedPrompt(purchTable, copyTaxGroupToMarkupTrans);
        // If the purchTable2LineUpdatePrompt object is null no fields are to be updated.
        if(purchTable2LineUpdatePrompt)
        {
            ret = purchTable2LineUpdatePrompt.parmExtendedPromptReturnValue();
        }
    }

    if (isRU
        && ret&& purchTable2LineUpdatePrompt)
    {
        purchTable2LineUpdateFields = List::create(purchTable2LineUpdatePrompt.packedSalesPurchTableToLineUpdateFields());

        purchTable2LineUpdateFieldsEnumerator = purchTable2LineUpdateFields.getEnumerator();

        while (purchTable2LineUpdateFieldsEnumerator.moveNext())
        {
            purchTable2LineField = purchTable2LineUpdateFieldsEnumerator.current();
            if (purchTable2LineField.parmFieldId()          == PurchTable::fieldIdToInternalFieldId_W(fieldNum(PurchTable_RU, InventProfileId_RU), tableNum(PurchTable_RU))
                && purchTable2LineField.parmUpdateLines()   == NoYes::No)
            {
                // must be checked for possible inconsistence if user did not select to propagate inventProfileId to the order lines
                // otherwise it will be checked on sales order validateWrite() method
                ret = purchTable.checkInventProfile_RU(true);
            }
        }
    }


    return ret;
}


I dont quite know where should I put my code.

Thanks and Regards,

Enggar

RE: is there a field "Check Name" in the vendor form

$
0
0

Hi Silvano,

Maybe the best option is asking a developer to create a new field for you just in case that you need the knownas field for something else?!

All the best,

Ludwig


is there a field "Check Name" in the vendor form

$
0
0

Dear 

i am almost positive that there is a field in the vendor form (vendtable) called "Check Name" which i can use to add the vendor check name that i use on the check printout 

now i can simply create one , but i am almost sure that some already exists 

can someone help me out ?

thanks 

RE: get Invent Site (InventSiteId ) from WareHouse and Item by Code X++

$
0
0

Hi Nguyen,

static void _GetInventoryDimensions(Args _args)

{

   InventTable                 inventTable = inventTable::find('Dxxxx);

   InventItemOrderSetupType    setupType   = InventItemOrderSetupType::Invent;

   InventDim                   inventDim;

   ;

   // Default Site

   inventDim.InventSiteId = inventTable.inventItemOrderSetupMap(setupType).inventSiteId(inventDim.InventSiteId, inventTable);

   // Default Location

   inventDim.InventLocationId  = inventTable.inventItemOrderSetupMap(setupType,

                                                                     InventDim::findOrCreate(inventDim).InventDimId)

                                                                     .inventLocationId(inventDim.InventLocationId,

                                                                                       inventTable,

                                                                                       inventDim.InventSiteId);

   // Default ConfigId

   inventDim.ConfigId = inventTable.StandardConfigId;

   // Find Default Item Dimension

   inventDim = InventDim::findOrCreate(inventDim);

   info(strFmt('Invent Dim. Id: %1', inventDim.inventDimId));

   info(strFmt('Site Id: %1', inventDim.InventSiteId));

   info(strFmt('Warehouse Id: %1', inventDim.InventLocationId));

}

get Invent Site (InventSiteId ) from WareHouse and Item by Code X++

$
0
0

Hi all ! I want get auto InventSiteId for WareHouse  ! On Grid , when I select WareHouse then auto get Invent Site of Item. ( I set Default Order settings InventSite and Warehouse for item). Help me by code or solutions. Thanks all !

RE: CheckbyDateAndVendAccount

$
0
0

yes but in aLine.Agreement is the current record that user add..and i need to check the current record with the records from agreementLine by  vendAccount...

CheckbyDateAndVendAccount

$
0
0

how  can i check by VendAccount and put all condition in select ? if there is VendAccount for this itemId then show error mesage...

public boolean checkValuesByDate()
{
AgreementLine agreementLine;

boolean check = true;

while select * from agreementLine where agreementLine.ItemId == aLine.ItemId &&
agreementLine.Agreement != PurchAgreementHeader.RecId

if(PurchAgreementHeader.VendAccount == PurchAgreementHeader::find(aLine.Agreement).VendAccount)
{
if ( (aLine.EffectiveDate < agreementLine.EffectiveDate && aLine.ExpirationDate < agreementLine.EffectiveDate) ||
(aLine.EffectiveDate > agreementLine.ExpirationDate && aLine.ExpirationDate > agreementLine.ExpirationDate) )
{
check = true;
break;
}
else
{
error("This contract already exists in this period with the vend account " + purchAgreementHeader.VendAccount);
check = false;
break;
}
}

return check;
}

RE: How to set Field in header to Mandatory with condition from Field in Line

$
0
0

As far as I understand your requirements you need to validate field base on line amount, so why do you want to do it on purchTable?

RE: Translate Form Template buttons

$
0
0

Hi Andre,

Yes I have translated all relevant label files including: kernel, sysapp, sysappdesigner and all relevant text I could find. I also restarted iis.

I saw these buttons are being translated in Russian so I believe it is a data issue but I can't seem to find it. I also don't understand why I can see the russian language when I don't seem to have it installed on my development env (I can't look for a russian label).

Do you maybe know how I can see the template form for listPage, details master etc. In 2012 it was StyleBP form, but in 365 it's obviously different.

Thanks,

Shimrit.


Translate Form Template buttons

$
0
0

Hello,

I was able to create a translation to hebrew through the LCS and label extensions capabilities.

The only objects not translated are the form template buttons (New, Edit, Delete). I could not find a label file for them.

I assume it is in some application files. Can someone share any information regarding changing form templates?

RE: How to get Accumulated and Total Vendor Account Statement Report in Transaction Currency

RE: How to get Accumulated and Total Vendor Account Statement Report in Transaction Currency

How to get Accumulated and Total Vendor Account Statement Report in Transaction Currency

$
0
0

Dear All,

I need to get Accumulated amount and Sum of total Transaction amount as it is calculating for Company Currency .

Please see attached image.

You can see company set currency' s Total and accumulated Balance amount shown in report. I would like to get Transaction Currency amount like that. 

RE: How to set Field in header to Mandatory with condition from Field in Line

$
0
0

Hi Putri,

 Try to set mandatory fields in Table.

DictTable dictTable;

DictField dictField;

TableId tableId;

FieldId  fieldId;

str result;

#DictField

;

dictTable = new DictTable(tablenum(salestable));

for(fieldId=dictTable.fieldNext(0);fieldId;fieldId=dictTable.fieldNext(fieldId))

{

dictField =dictTable.fieldObject(fieldId);

if(!dictField.isSystem() && bitTest(dictField.flags(),#dbf_visible) &&bitTest(dictField.flags(),#dbf_mandatory))

{

result += dictField.name();

result +='\n';

}

}

info(result);

Viewing all 175888 articles
Browse latest View live