X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_payment.php;h=ab98b662a5f9c5951378033d102eac1cce9ee4b0;hb=51b2901d4531d4b4ffe3d7ffc58c0c906e6a57e1;hp=d516070a351f8d528c4831bcaecee677056cf932;hpb=3951d648b98dbd5fdf9e95b858b765b7d52fe8c0;p=fa-stable.git diff --git a/purchasing/supplier_payment.php b/purchasing/supplier_payment.php index d516070a..ab98b662 100644 --- a/purchasing/supplier_payment.php +++ b/purchasing/supplier_payment.php @@ -63,8 +63,9 @@ if (!isset($_POST['bank_account'])) { // first page call $_SESSION['alloc'] = new allocation(ST_SUPPAYMENT, 0, get_post('supplier_id')); if (isset($_GET['PInvoice'])) { + $supp = isset($_POST['supplier_id']) ? $_POST['supplier_id'] : null; // get date and supplier - $inv = get_supp_trans($_GET['PInvoice'], $_GET['trans_type']); + $inv = get_supp_trans($_GET['PInvoice'], $_GET['trans_type'], $supp); if ($inv) { $_SESSION['alloc']->person_id = $_POST['supplier_id'] = $inv['supplier_id']; $_SESSION['alloc']->read();