X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fallocations%2Fsupplier_allocate.php;h=fd617a2903b694765cd6f0391b1ec98ddeee2e1f;hb=2aab14aed5938bc674997cff83c319bdf40490d6;hp=995b2735da945fc3e30bc1645cb38ebd0663bad2;hpb=c16b7a0f7aa17722568a0695e2fd03a362998372;p=fa-stable.git diff --git a/purchasing/allocations/supplier_allocate.php b/purchasing/allocations/supplier_allocate.php index 995b2735..fd617a29 100644 --- a/purchasing/allocations/supplier_allocate.php +++ b/purchasing/allocations/supplier_allocate.php @@ -74,7 +74,7 @@ function handle_process() begin_transaction(); // clear all the allocations for this payment/credit - clear_supp_alloctions($_SESSION['alloc']->type, $_SESSION['alloc']->trans_no); + clear_supp_alloctions($_SESSION['alloc']->type, $_SESSION['alloc']->trans_no, $_SESSION['alloc']->date_); // now add the new allocations $total_allocated = 0; @@ -88,6 +88,14 @@ function handle_process() update_supp_trans_allocation($alloc_item->type, $alloc_item->type_no, $alloc_item->current_allocated); + + // Exchange Variations Joe Hunt 2008-09-20 //////////////////////////////////////// + + exchange_variation($_SESSION['alloc']->type, $_SESSION['alloc']->trans_no, + $alloc_item->type, $alloc_item->type_no, $_SESSION['alloc']->date_, + $alloc_item->current_allocated, payment_person_types::supplier()); + + /////////////////////////////////////////////////////////////////////////// $total_allocated += $alloc_item->current_allocated; }