$currency = null;
if ($supp['tax_included'])
- $price = get_tax_free_price_for_item($stock_id, $price, $supp['tax_group_id'],
+ $price = get_tax_free_price_for_item(ST_SUPPINVOICE, // ?
+ $stock_id, $price, $supp['tax_group_id'],
$supp['tax_included']);
if ($currency != null)
{
global $Refs;
- $date_ = $po->orig_order_date;
+ $date_ = $po->tran_date;
$grn = $po->grn_id;
begin_transaction();
{
$order->trans_type = ST_SUPPRECEIVE;
- $order->orig_order_date = sql2date($row["delivery_date"]);
+ $order->tran_date = sql2date($row["delivery_date"]);
$order->Location = $row["loc_code"];
$order->reference = $row["reference"];
$order->grn_id = $grn_batch;