On 04.12.2011 20:26, Jaroslaw Dziubek wrote:
[Sunday, 04 December 2011], Tomasz Chiliński napisał(a):
Mam jedną uwagę odnośnie rabatów - proponuję, aby przy rabacie kwotowym pozwolić wpisywać kwoty ujemne (mam parę takich
On 04.12.2011 19:09, Jaroslaw Dziubek wrote: przypadków,
gdzie klient płaci teoretycznie więcej niż jest w cenniku) - wtedy prosto można to zrobić wprost z interfejsu a nie grzebiąc ręcznie w bazie ;)
Dlaczego by nie. Niech jeszcze inni się wypowiedzą w tym temacie. A może ktoś chętny zrobić taką malutką zmianę i przesłać gotowego patcha? ;-) Mowisz - masz :)
O jak pięknie - teraz już na 100% jestem pewien, że rozumiem o co Ci chodziło, a przedtem na 100% nie byłem pewien :D
Pozdrawiam Jarek Dziubek
Index: customerassignmentadd.php =================================================================== RCS file: /cvsroot/lms/modules/customerassignmentadd.php,v retrieving revision 1.9 diff -u -r1.9 customerassignmentadd.php --- customerassignmentadd.php 1 Dec 2011 17:10:46 -0000 1.9 +++ customerassignmentadd.php 4 Dec 2011 18:25:47 -0000 @@ -220,7 +220,7 @@ $a['pdiscount'] = ($a['discount_type'] == DISCOUNT_PERCENTAGE ? floatval($a['discount']) : 0); $a['vdiscount'] = ($a['discount_type'] == DISCOUNT_AMOUNT ? floatval($a['discount']) : 0); } - if ($a['pdiscount'] < 0 || $a['pdiscount'] > 99.99 || $a['vdiscount'] < 0) + if ($a['pdiscount'] < 0 || $a['pdiscount'] > 99.99 ) $error['discount'] = trans('Wrong discount value!');
// suspending Index: customerassignmentedit.php =================================================================== RCS file: /cvsroot/lms/modules/customerassignmentedit.php,v retrieving revision 1.6 diff -u -r1.6 customerassignmentedit.php --- customerassignmentedit.php 1 Dec 2011 17:10:46 -0000 1.6 +++ customerassignmentedit.php 4 Dec 2011 18:25:47 -0000 @@ -232,7 +232,7 @@ $a['pdiscount'] = ($a['discount_type'] == DISCOUNT_PERCENTAGE ? floatval($a['discount']) : 0); $a['vdiscount'] = ($a['discount_type'] == DISCOUNT_AMOUNT ? floatval($a['discount']) : 0); } - if ($a['pdiscount'] < 0 || $a['pdiscount'] > 99.99 || $a['vdiscount'] < 0) + if ($a['pdiscount'] < 0 || $a['pdiscount'] > 99.99 ) $error['discount'] = trans('Wrong discount value!');
if ($a['tariffid'] == -1) _______________________________________________ lms mailing list lms@lists.lms.org.pl http://lists.lms.org.pl/mailman/listinfo/lms
-- Pozdrawiam Tomasz Chiliński, Chilan