hm.. i checked that.. no errors
1 03/13/2013 08:19:26 pm
Re: How to Add Column in Direct Invoice (26 replies, posted in FA Modifications)
2 03/13/2013 07:40:57 pm
Re: How to Add Column in Direct Invoice (26 replies, posted in FA Modifications)
can someone pls help me also on similar kind of prob,
i have tried to update almost everything.. but now i think i am facing an prob in
sales\include\ui\sales_order_ui.inc
---------------------------------------------------------------------
Line no: 168 - 183~~
-----------------------------------------------------------------------
view_stock_status_cell($stock_item->stock_id);
//label_cell($stock_item->item_description, "nowrap" );
label_cell($stock_item->item_description );
$dec = get_qty_dec($stock_item->stock_id);
qty_cell($stock_item->qty_dispatched, false, $dec);
if ($order->trans_no!=0)
qty_cell($stock_item->qty_done, false, $dec);
amount_cell($stock_item->price);
amount_cell($stock_item->price);
amount_cell($stock_item->price);
label_cell($stock_item->units);
amount_cell($stock_item->price);
percent_cell($stock_item->discount_percent * 100);
amount_cell($line_total);
if ($editable_items)
{
edit_button_cell("Edit$line_no", _("Edit"),
_('Edit document line'));
delete_button_cell("Delete$line_no", _("Delete"),
_('Remove line from document'));
}
end_row();
}
else
{
sales_order_item_controls($order, $k, $line_no);
}
$total += $line_total;
}
if ($id==-1 && $editable_items)
sales_order_item_controls($order, $k);
$colspan = 10;
if ($order->trans_no!=0)
++$colspan;
start_row();
label_cell(_("Shipping Charge"), "colspan=$colspan align=right");
small_amount_cells(null, 'freight_cost', price_format(get_post('freight_cost',0)));
label_cell('', 'colspan=2');
end_row();
$display_sub_total = price_format($total + input_num('freight_cost'));
label_row(_("Sub-total"), $display_sub_total, "colspan=$colspan align=right","align=right", 2);
$taxes = $order->get_taxes(input_num('freight_cost'));
$tax_total = display_edit_tax_items($taxes, $colspan, $order->tax_included, 2);
$display_total = price_format(($total + input_num('freight_cost') + $tax_total));
start_row();
label_cells(_("Amount Total"), $display_total, "colspan=$colspan align=right","align=right");
submit_cells('update', _("Update"), "colspan=2 align='center'", _("Refresh"), true);
end_row();
end_table();
if ($has_marked) {
display_note(_("Marked items have insufficient quantities in stock as on day of delivery."), 0, 1, "class='stockmankofg'");
if ($order->trans_type!=30 && !$SysPrefs->allow_negative_stock())
display_error(_("The delivery cannot be processed because there is an insufficient quantity for item:")
. '<br>'. $qoh_msg);
}
div_end();
}
somthing is worng in the above code..
the data is not getting entred,
you can try my demo
www.ptsvee.com/simplykool.com/test/1/
user: admin
pass:admin
company: sunrise
Please help of the same