Set Purch Packing Slip Details Tmp

///


/// Fills the PurchPackingSlipDetailsTmp table with details.
///

private void setPurchPackingSlipDetailsTmp()
{
purchLine purchLineLocal;
PurchTable PurchTableLocal;
PurchtotalsForm totalsForm;
Common _callingTable;

purchPackingSlipTmp.JournalRecId = vendPackingSlipJour.RecId;

purchPackingSlipTmp.ItemId = this.itemId();

purchPackingSlipTmp.Name = vendPackingSlipTrans.itemName();
purchPackingSlipTmp.Ordered = vendPackingSlipTrans.Ordered;
purchPackingSlipTmp.PurchUnitTxt = vendPackingSlipTrans.purchUnitTxt();
PurchPackingSlipTmp.PurchQty = VendPackingSlipTrans.ReceivedQty_IN;
purchPackingSlipTmp.Qty = vendPackingSlipTrans.Qty;
purchPackingSlipTmp.pdsCWQty = vendPackingSlipTrans.ReceivedQty_IN;
purchPackingSlipTmp.Remain = vendPackingSlipTrans.Remain;
purchLineLocal = vendPackingSlipTrans.purchLine();
purchPackingSlipTmp.PurchPrice = purchLineLocal.PurchPrice; // vendPackingSlipTrans.LineAmount_W/vendPackingSlipTrans.Qty;

//purchPackingSlipTmp.PurchLineAmount = vendPackingSlipTrans.LineAmount_W;
purchPackingSlipTmp.PurchLineAmount = purchLineLocal.LineAmount;

PurchPackingSlipTmp.MarkupValue = MarkupTrans::FindExciseDesc(purchLineLocal.PurchId);
PurchPackingSlipTmp.TaxGroupName = PurchTable::find(VendPackingSlipTrans.OrigPurchid).displayTaxGroupName();

//pt sangeetha for grn
PurchTableLocal = PurchTable::find(purchLineLocal.PurchId);
_callingTable= PurchTableLocal;
totalsForm = PurchtotalsForm::newPurchTotalsForm(_callingTable, 1);
totalsForm.calctotals();
totalsForm.doPack();
purchPackingSlipTmp.ExciseAmount =totalsForm.sumMarkUpValue();
purchPackingSlipTmp.VATAmount =totalsForm.sumTaxValue();
PurchPackingSlipTmp.TotalAmount =totalsForm.invoiceAmountValue();
purchPackingSlipTmp.AmountInText =this.AmountInWords(totalsForm.invoiceAmountValue());
//pt sangeetha for grn

this.setPDSFields();

if (inventDim)
{
purchPackingSlipTmp.InventDimProduct = FormLetter::inventDimReport(inventDim, inventDimProductSetup, vendPackingSlipJour.LanguageId);
}
purchPackingSlipTmp.InventDimPrint = this.printInventTrans();

purchPackingSlipTmp.ExternalItemNum = this.externalItemNum();

purchPackingSlipTmp.insert();
}

Missed describing about the issue you are facing or what? Only code snippets won’t give much clue though.

Hi Ranchoo,

I understand your problem, let me check your code.

Thanks & Regards,

Raman Kutala.

HI Ranchoo,

The best way of your problem solution through expressions you can achieve.

Try expression in SSRS reports.

Thanks & Regards,

Raman Kutala

I see that Ranchoo and Raman Kutala have an amazing mind link, the same approach for creating threads consisting only of source code and the same talent for writing unitelligeble posts. They even joined Dynamics User Group at the same time. What a coincidence!