https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40445

--- Comment #126 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 193139
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193139&action=edit
Bug 40445: (follow-up) Set branchcode for CASHUP_SURPLUS and CASHUP_DEFICIT
accountlines

When creating CASHUP_SURPLUS and CASHUP_DEFICIT accountlines during
cashup reconciliation, the branchcode was not being set. This resulted
in accountlines with NULL branchcode values, which violates the
expectation that all accountlines should have an associated branch.

This patch:
- Sets branchcode from the cash register's branch for both CASHUP_SURPLUS
  and CASHUP_DEFICIT accountlines
- Adds test coverage to verify branchcode is correctly set

Test plan:
1. Apply patch
2. Run prove t/db_dependent/Koha/Cash/Register.t
3. Verify all tests pass, including new branchcode checks
4. In the staff interface, perform a cashup with a surplus or deficit
5. Verify the created accountline has the correct branchcode matching
   the cash register's branch

Signed-off-by: Jackie Usher <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to