Hi.
In a previous Topic of mine I asked for automatic creation of Tender ( mistake !! I meant Quotation) and Bill. Now I can show you a raw code that I wrote for Quotation
In attachment a QuotationMain with some new methods.
Other minor changes in ObjectButtons.php to handle button
<?php if ($objClass == "Project") { ?>
<span id="createQuotationButtonDiv" >
<button id="createQuotationButton" dojoType="dijit.form.Button" showlabel="false"
title="Crete Quotation"
<?php
if ($noselect) {
echo "disabled";
}
?>
iconClass="dijitButtonIcon dijitButtonIconCreateQuotation" class="detailButton">
<script type="dojo/connect" event="onClick" args="evt">
createQuotationFromProject(<?php echo $objectId; ?>) ;
</script>
</button>
</span>
?>
and in projeqtor.js
It's not internationalized, many checks must be added and some fields in quotation could better set in a dynamic dialog, but it should be enough to explain my idea.
Next step form me is to create Bill from real amounts.
Best regards
In a previous Topic of mine I asked for automatic creation of Tender ( mistake !! I meant Quotation) and Bill. Now I can show you a raw code that I wrote for Quotation
In attachment a QuotationMain with some new methods.
Other minor changes in ObjectButtons.php to handle button
<?php if ($objClass == "Project") { ?>
<span id="createQuotationButtonDiv" >
<button id="createQuotationButton" dojoType="dijit.form.Button" showlabel="false"
title="Crete Quotation"
<?php
if ($noselect) {
echo "disabled";
}
?>
iconClass="dijitButtonIcon dijitButtonIconCreateQuotation" class="detailButton">
<script type="dojo/connect" event="onClick" args="evt">
createQuotationFromProject(<?php echo $objectId; ?>) ;
</script>
</button>
</span>
?>
and in projeqtor.js
It's not internationalized, many checks must be added and some fields in quotation could better set in a dynamic dialog, but it should be enough to explain my idea.
Next step form me is to create Bill from real amounts.
Best regards