Made progress adapting the receipt code onto the latest db changes.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@387 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-24 07:43:42 +00:00
parent 29fe265daa
commit 25b7da57f3
7 changed files with 54 additions and 29 deletions

View File

@@ -42,9 +42,9 @@ function verifyRequest(formData, jqForm, options) {
// formData is an array; here we use $.param to convert it to a string to display it
// but the form plugin does this for you automatically when it submits the data
//var_dump(formData);
$('#request-debug').html('<PRE>'+dump(formData)+'</PRE>');
//$('#request-debug').html('Ommitted');
return false;
//$('#request-debug').html('<PRE>'+dump(formData)+'</PRE>');
$('#request-debug').html('Ommitted');
//return false;
$('#response-debug').html('Loading <BLINK>...</BLINK>');
$('#output-debug').html('Loading <BLINK>...</BLINK>');
@@ -188,6 +188,11 @@ function addPaymentSource(flash) {
$div .= ' STYLE="display:none;"';
$div .= '>';
$div .= ' <INPUT TYPE="hidden"';
$div .= ' NAME="data[Entry][%{id}][type]['.$type['id'].'][tender_type_id]"';
$div .= ' VALUE="'.$type['id'].'"';
$div .= '>';
for ($i=1; $i<=4; ++$i) {
if (!empty($type["data{$i}_name"])) {
$div .= '<DIV CLASS="input text required">';

View File

@@ -82,7 +82,7 @@ echo $this->element('statement_entries', array
'config' => array
('caption' => 'Account',
'filter' => array('Customer.id' => $customer['Customer']['id']),
'exclude' => array('Effective', 'Customer'),
'exclude' => array('Customer'),
)));