예제 #1
0
check_row(_("Use Paypal Transaction Id:"), 'use_paypal_trn_id', null);
check_row(_("Receipts Date Today:"), 'paypal_recpt_today', null);
table_section_title(_("PayPal File"));
text_row_ex(_("Company Name Column:"), 'paypal_name_col', 25, 55);
table_section_title(_("Customers"));
sales_types_list_row("Sales Type:", 'paypal_sales_type_id', null);
sales_persons_list_row(_("Sales Person:"), 'paypal_salesman', null);
sales_areas_list_row(_("Sales Area:"), 'paypal_area', null);
credit_status_list_row(_("Credit Status:"), 'paypal_credit_status', null);
locations_list_row(_("Default Location:"), 'paypal_location', null);
shippers_list_row(_("Default Shipper:"), 'paypal_shipper', null);
table_section(2);
table_section_title(_("Accounts"));
bank_accounts_list_row(_("Bank Account:"), 'paypal_bank_id', $_POST['paypal_bank_id'], false);
gl_all_accounts_list_row(_("Sales Account:"), 'paypal_sales_act', $_POST['paypal_sales_act']);
gl_all_accounts_list_row(_("Sales Tax Account:"), 'paypal_sales_tax_act', $_POST['paypal_sales_tax_act']);
gl_all_accounts_list_row(_("Shipping Account:"), 'paypal_shipping_act', $_POST['paypal_shipping_act']);
gl_all_accounts_list_row(_("Fee Account:"), 'paypal_fee_act', $_POST['paypal_fee_act']);
gl_all_accounts_list_row(_("Insurance Account:"), 'paypal_insurance_act', $_POST['paypal_insurance_act']);
bank_accounts_list_row(_("Withdrawal Account:"), 'paypal_withdraw_id', $_POST['paypal_withdraw_id'], false);
table_section_title(_("Tax"));
check_row(_("Add Tax to Receipts:"), 'paypal_add_tax', null);
check_row(_("Tax Included in Paypal Amount:"), 'paypal_tax_included', null);
tax_types_list_row("Default Tax Type:", 'paypal_tax_type_id', null);
tax_groups_list_row("Default Tax Group:", 'paypal_tax_group_id', null);
item_tax_types_list_row("Default Item Tax Group:", 'paypal_item_tax_id', null);
end_outer_table(1);
submit_center('submit', _("Update"), true, '', 'default');
end_form();
//-------------------------------------------------------------------------------------------------
end_page();
예제 #2
0
         $_POST['id'] = $myrow["id"];
         $_POST['dest_id'] = $myrow["dest_id"];
         $_POST['actn'] = $myrow["action"];
         $_POST['amount'] = $myrow["amount"];
         $_POST['dimension_id'] = $myrow["dimension_id"];
         $_POST['dimension2_id'] = $myrow["dimension2_id"];
     }
 }
 quick_actions_list_row(_("Posted") . ":", 'actn', null, true);
 if (list_updated('actn')) {
     $Ajax->activate('edit_line');
 }
 $actn = strtolower(substr($_POST['actn'], 0, 1));
 if ($actn == 't') {
     //item_tax_types_list_row(_("Item Tax Type").":",'dest_id', null);
     tax_types_list_row(_("Tax Type") . ":", 'dest_id', null);
 } else {
     gl_all_accounts_list_row(_("Account") . ":", 'dest_id', null, $_POST['type'] == QE_DEPOSIT || $_POST['type'] == QE_PAYMENT);
     if ($actn != '=') {
         if ($actn == '%') {
             small_amount_row(_("Part") . ":", 'amount', price_format(0), null, "%", user_exrate_dec());
         } else {
             amount_row(_("Amount") . ":", 'amount', price_format(0));
         }
     }
 }
 if ($dim >= 1) {
     dimensions_list_row(_("Dimension") . ":", 'dimension_id', null, true, " ", false, 1);
 }
 if ($dim > 1) {
     dimensions_list_row(_("Dimension") . " 2:", 'dimension2_id', null, true, " ", false, 2);
예제 #3
0
}
hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Account"));
br(1);
start_table($table_style2);
if ($selected_account != "") {
    //editing an existing account
    $myrow = get_gl_account($selected_account);
    $_POST['account_code'] = $myrow["account_code"];
    $_POST['account_code2'] = $myrow["account_code2"];
    $_POST['account_name'] = $myrow["account_name"];
    $_POST['account_type'] = $myrow["account_type"];
    $_POST['tax_code'] = $myrow["tax_code"];
    hidden('account_code', $_POST['account_code']);
    hidden('selected_account', $_POST['selected_account']);
    label_row(tr("Account Code:"), $_POST['account_code']);
} else {
    text_row_ex(tr("Account Code:"), 'account_code', 11);
}
text_row_ex(tr("Account Code 2:"), 'account_code2', 11);
text_row_ex(tr("Account Name:"), 'account_name', 60);
gl_account_types_list_row(tr("Account Group:"), 'account_type', null);
tax_types_list_row(tr("Tax Type:"), 'tax_code', null, true, tr('No Tax'));
end_table(1);
if ($selected_account == "") {
    submit_center('add', tr("Add Account"));
} else {
    submit_center_first('update', tr("Update Account"));
    submit_center_last('delete', tr("Delete account"));
}
end_form();
end_page();