phpBMS

Ticket #232 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

"doc due" field in receipts incorrect with deposit

Reported by: nrieb Owned by: brieb
Priority: minor Milestone: 0.98
Component: phpbms Version: 0.92
Keywords: receipts Cc:

Description

In the receipts edit page(receipts_addedit.php), after adding money to a deposit and then saving the record, the doc due is twice the amount it should be.

For example, if a client wishes to deposit $300, after I apply this amount to the deposit and save, the "doc due" field displays -$600 rather than -$300.

It seems to be that the script is subtracting the applied amount ($300 in this case) from the doc amount (-$300 in this case). Normally, this would be fine since for non-deposit items, the doc amount would be a positive amount, but with this negative result for deposits it does not seem to work.

Change History

Changed 4 years ago by anonymous

Fixed if you update aritems table -> type column: To the ENUM list of items that type can be add 'deposit'.

so types should look like this: enum('deposit', 'invoice', 'credit', 'service charge')

not this: enum('invoice', 'credit', 'service charge')

Changed 2 years ago by brieb

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from unknown to 0.98

should be fixed as of v0.98

Note: See TracTickets for help on using tickets.
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.