All work

Select view

  • Select search mode

 
37 of 37

Stored procedure usp_JIWA_Creditor_Update_Period_Balances us not calculating FXPeriod2, FXPeriod3 and FXPeriod4 correctly under some circumstances

Done

Description

This stored proc is called as part of the period rollover function.

If there are allocations against transactions in periods 2 or later, then this stored procedure is not setting the CR_Main.FXPeriod2, CR_Main.FXPeriod3 or FXPeriod4 balance fields correctly - it omits the allocated amount from the calculation.

This causes the period balance display on the screen (for FX Creditors) to be incorrect.

FXPeriod1 is, however correct.

Note the difference between the setting of the @FXPeriod1Bal variable in the stored proc and the setting of the @FXPeriod2Bal, @FXPeriod3Bal and @FXPeriod4Bal

Stored proc does not exist in version 8, and so does not apply to that version.

Environment

None

Attachments

2
  • 11 Apr 2024, 02:35 am
  • 11 Apr 2024, 02:33 am

Details

Assignee

Reporter

Components

Fix versions

Priority

Created 11 April 2024 at 02:33
Updated 12 March 2025 at 03:35
Resolved 16 April 2024 at 22:34

Activity

Monica Holliday3 May 2024 at 06:34

Passed testing 07.02.01.00 SR19

Scott Pearce16 April 2024 at 22:34

Data structure change, so cannot be part of an SR. You can deploy the attached sql script on existing 7.2.1 sites to fix the issue, however.

Mike Sheen11 April 2024 at 02:35

Fixed stored proc ALTER script attached.