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
Attachments:
Last edit: 21 Dec 2016 16:46 by antonio.grr. Reason: Attachment corretion
Idea could be interesting but seems very specific to your own needs.
It seems you have one quotation / one bill per project. It is not often the case.
Also, there are many ways existing to generate Bills from projects elements, it would possibly interfere with your proposal.
I recorded the request to keep the ideas and code you propose, but not sure it will be included in community version.
Hi.
I have to point out that I limited Quotation to one as I can't imagine to send more Quotations to client.
I'm not applying the same restriction to Bill, that will be created on Billing Type bases, using Terms and Activity Prices when applicable.Anyway, I will submit the code when it will be ready, possibly submitting Ask Topics on some points that are not evident to me.
Meanwhile,
have great holidays,
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Cookies settings
×
Functional Cookies
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Please login to see yours activities!
Other cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.