$o->description = $_POST['description']; $o->bpartner_id = $_POST['bpartner_id']; $o->saleagent_id = $_POST['saleagent_id']; $o->bpartneraccounts_id = $_POST['bpartneraccounts_id']; $o->spquotation_prefix = $_POST['spquotation_prefix']; $o->terms_id = $_POST['terms_id']; $o->contacts_id = $_POST['contacts_id']; $o->preparedbyuid = $_POST['preparedbyuid']; $o->address_id = $_POST['address_id']; $o->address_text = $add->getAddressTxt($o->address_id); $o->organization_id = $_POST['organization_id']; $o->track1_name = $_POST['track1_name']; $o->track2_name = $_POST['track2_name']; $o->track3_name = $_POST['track3_name']; $o->organization_id = $defaultorganization_id; if ($o->insertQuotation()) { redirect_header("{$o->quotationfilename}?action=edit"ation_id={$o->quotation_id}", $pausetime, "Your data is created."); } else { echo "0"; } break; case "update": $o->quotation_id = $_POST['quotation_id']; $o->document_no = $_POST['document_no']; $o->document_date = $_POST['document_date']; $o->baseamt = $_POST['baseamt']; $o->currency_id = $_POST['currency_id']; $o->exchangerate = $_POST['exchangerate']; $o->subtotal = $_POST['subtotal']; $o->ref_no = $_POST['ref_no']; $o->description = $_POST['description'];