Forgot the immediate allocations.
[fa-stable.git] / purchasing / view / view_supp_credit.php
index 64ed9b8cd812e5ec37e57c39ff25c823dea1e9ee..64efdbe5a92bdc4128e4c78d4a9cd5cb9d00c1c0 100644 (file)
@@ -63,8 +63,7 @@ $voided = is_voided_display(21, $trans_no, _("This credit note has been voided."
 
 if (!$voided)
 {
-       $tax_total = 0; // ??????
-       display_allocations_from(payment_person_types::supplier(), $supp_trans->supplier_id, 21, $trans_no, -($supp_trans->ov_amount + $tax_total));
+       display_allocations_from(payment_person_types::supplier(), $supp_trans->supplier_id, 21, $trans_no, -($supp_trans->ov_amount + $supp_trans->ov_gst));
 }
 
 end_page(true);