27-Oct-2008 Joe Hunt
! [0000078] Opened Exchange rate for editing (without storing) in sales/purchasing module payment
# Fixed exchange rate display bugs in Supplier Payment (earlier dates).
-$ /gl/includes/db/gl_db.inc
+$ /gl/includes/db/gl_db_trans.inc
/includes/banking.inc
/includes/ui/ui_view.inc
/purchasing/supplier_payment.php
/sales/includes/sales_db.inc
/sales/includes/db/cust_trans_db.inc
/sales/includes/db/payment_db.inc
-# [0000078] Fixed some report with wrong exchange rates.
+# [0000078] Fixed some reports with wrong exchange rates.
$ /reporting/rep101.php
/reporting/rep106.php
/reporting/rep201.php
/reporting/rep203.php
/reporting/rep209.php
++ Added confirm box when admins are about to remove PO GRNs from Supplier Invoice
+$ /purchasing/supplier_invoice.php
24-Oct-2008 Joe Hunt
! [0000077] Added a total before ending balance in trial balance (also in report)
$Ajax->activate('inv_tot');
}
-$id2 = find_submit('void_item_id');
-
if ($_SESSION["wa_current_user"]->access == 2)
{
+ $id3 = find_submit('void_item_id');
+ if ($id3 != -1)
+ {
+ $js = "if(confirm(\""
+ .sprintf(_('You are about to remove all yet non-invoiced items from delivery line #%d. This operation also irreversibly changes related order line. Do you want to continue ?'), $id3)
+ ."\")) {
+ JsHttpRequest.request(\"void_confirm".$id3."\");
+ }";
+ $Ajax->addScript(true,$js);
+ }
+ $id2 = find_submit('void_confirm');
if ($id2 != -1) // Added section 2008-10-18 Joe Hunt for voiding delivery lines
{
begin_transaction();
-$myrow["QtyOstdg"], $myrow['std_cost_unit'], $grn["supplier_id"], 1, $myrow['unit_price']);
commit_transaction();
+ display_notification(sprintf(_('All yet non-invoiced items on delivery line # %d has been removed.'), $id2));
+
}
}