///
/// 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();
}