';
// var_dump($purchase_item);
$item_id = isset($purchase_item) ? $purchase_item['item_id'] : 0;
$supplier = isset($purchase_item) ? $purchase_item['purchased_from'] : 0;
$purchased_on = isset($purchase_item) ? $purchase_item['purchased_on'] : '';
$qty = isset($purchase_item) ? (int) $purchase_item['qty'] : 1;
$unit_price = isset($purchase_item) ? $purchase_item['unit_price'] : '';
$total_price = isset($purchase_item) ? $purchase_item['total_price'] : '';
$selling_price = isset($purchase_item) ? $purchase_item['selling_price'] : '';
$paid_amount = isset($purchase_item) ? $purchase_item['paid_amount'] : '';
$remaining_amount = isset($purchase_item) ? $purchase_item['remaining_amount'] : '';
$remarks = isset($purchase_item) ? $purchase_item['remarks'] : '';
$submitName = isset($purchase_item) ? 'updatePurchase' : 'addPurchase';
$submitValue = isset($purchase_item) ? 'Update' : 'Add';
?>