Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Partial payment can be disabled?

Partial payment can be disabled? 16 years 2 months ago #690

  • aghedia
  • aghedia's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hello, As the thread title says, can this be done? I may not require/want my customer to be able to pay partially. ??? Or can I adjust the partial payment to a fixed quantity? Easy example, you can pay 50% or full and not other? Best.

Please Log in or Create an account to join the conversation.

Partial payment can be disabled? 16 years 2 months ago #691

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Currently, this is not a configurable feature. In the next release, we will add further configuration options so this can be turned on or off. Thanks.

Please Log in or Create an account to join the conversation.

Partial payment can be disabled? 15 years 11 months ago #1338

  • mknz
  • mknz's Avatar
  • Visitor
  • Visitor
Let us know on that. I have some other ideas I\'ll post in the wish list.

Please Log in or Create an account to join the conversation.

Partial payment can be disabled? 15 years 11 months ago #1347

  • mknz
  • mknz's Avatar
  • Visitor
  • Visitor
So, I hacked the file to make this possible. When I say hack...I mean like a dull machete...it aint pretty, but it gets the job done.

on line 473 of dtbilling.html.php you\'ll find this:
<tr>
								<td>
									<?php
										echo DT_PAYMENT_TYPE;
									?>
								</td>
								<td>
									<input type=\"radio\" name=\"payment_type\" value=\"0\" checked> <?php echo  DT_PAY_FULL;?> 
									<input type=\"radio\" name=\"payment_type\" value=\"1\"> <?php echo  DT_PAY_PARTIAL;?> 
									<input type=\"text\" name=\"paid_amount\" size=\"5\" />
								</td>
							</tr>

I changed it to this:
<tr>
								<td>
									<!--< ?php
										echo DT_PAYMENT_TYPE;
									?>-->
								</td>
								<td>
									<input type=\"hidden\" name=\"payment_type\" value=\"1\"> <!--< ?php echo  DT_PAY_FULL;?> 
									<input type=\"radio\" name=\"payment_type\" value=\"1\"> < ?php echo  DT_PAY_PARTIAL;?> -->
									<input type=\"hidden\" name=\"paid_amount\" size=\"5\" value=\"<?= numberFormat($totalAmount-$rowInvoice->paid_amount,2)?>\" />
								</td>
							</tr>

And on line 519 or so, you\'ll find:
var form=document.adminForm;
				if(form.payment_type[0].checked==true)

Replace it with this:
var form=document.adminForm;
				if(form.payment_type == 1)
				//if(form.payment_type[0].checked==true)


None of this looks right...not sure why...so read it good.

Hope it helps!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.217 seconds