Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bank Account Payments Entry
07-10-2015, 01:49 AM,
#1
Bank Account Payments Entry
I would like to change the Bank Account Payments Entry so it does not default to cash I would like it to default to cheque.
Can anyone guide me to where to change this.
Thanks for all the help.
Reply
07-10-2015, 10:53 PM,
#2
RE: Bank Account Payments Entry
You can change the code in includes/GetPaymentMethods.php to sort by paymentid (Currently sorts by paymentname) and change/setup your paymentmethods table to have cheque as the lowest paymentid method. I believe it is this way by default.
SQL to Load from default.sql is
INSERT INTO `paymentmethods` VALUES (1,'Cheque',1,1,1,0);
INSERT INTO `paymentmethods` VALUES (2,'Cash',1,1,0,0);
INSERT INTO `paymentmethods` VALUES (3,'Direct Credit',1,1,0,0);

Alternatively you can make your payment names something like 1-Cheque, 2-Cash, 3-Credit Card. then it will sort 1,2,3 and not change any code at all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)