Hi There
Facing a weird problem, when we alter the FXRate column on the purchase order lines and then create a shipment for that purchase order, the shipment order lines comes up with a default FXRate all the time. Can you pls advise, thanks
Riyaz wrote:Hi There
Facing a weird problem, when we alter the FXRate column on the purchase order lines and then create a shipment for that purchase order, the shipment order lines comes up with a default FXRate all the time. Can you pls advise, thanks
Riyaz wrote:Yes this is a problem because the value of the order changes when the purchase order is raised and when its being shipped.
Riyaz wrote:am writing a plugin to fix this, but strange thing is that the value wont get, below is the code am using, the message box pop up with correct value but it wont get assigned
Set the FX Rate of the Shipment Invoice instead - this will automatically set the FX Rate of every shipment line associated with that invoice and will cause a recalculation.
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic JiwaBusinessLogic, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
JiwaFinancials.Jiwa.JiwaLandedCost.Shipment.Shipment Shipment = (JiwaFinancials.Jiwa.JiwaLandedCost.Shipment.Shipment)JiwaBusinessLogic;
Shipment.Invoices.Added += Shipment_Invoices_Added;
}
private void Shipment_Invoices_Added(JiwaFinancials.Jiwa.JiwaLandedCost.Shipment.Invoice Invoice)
{
Invoice.FXRate = 1;
}
Return to Technical and or Programming
Users browsing this forum: Google [Bot] and 4 guests