Example #1
0
             }
         }
     }
     alloc_redirect($TPL["url_alloc_productSale"] . "productSaleID=" . $productSaleID);
 } else {
     if ($_POST["create_default_transactions"] && $_POST["productSaleItemID"]) {
         $productSaleItem = new productSaleItem();
         $productSaleItem->set_id($_POST["productSaleItemID"]);
         $productSaleItem->select();
         $productSaleItem->create_transactions();
     } else {
         if ($_POST["add_tax"] && $_POST["productSaleItemID"]) {
             $productSaleItem = new productSaleItem();
             $productSaleItem->set_id($_POST["productSaleItemID"]);
             $productSaleItem->select();
             $productSaleItem->create_transactions_tax();
         } else {
             if ($_POST["delete_transactions"] && $_POST["productSaleItemID"]) {
                 $productSaleItem = new productSaleItem();
                 $productSaleItem->set_id($_POST["productSaleItemID"]);
                 $productSaleItem->select();
                 $productSaleItem->delete_transactions();
             } else {
                 if ($_POST["delete_productSale"]) {
                     $productSale->delete();
                     alloc_redirect($TPL["url_alloc_productSaleList"]);
                 }
             }
         }
     }
 }