Page MenuHomeDevCentral

D1565.id3994.diff
No OneTemporary

D1565.id3994.diff

diff --git a/Daeghrefn/Bureautique.tcl b/Daeghrefn/Bureautique.tcl
--- a/Daeghrefn/Bureautique.tcl
+++ b/Daeghrefn/Bureautique.tcl
@@ -186,6 +186,17 @@
# Paypal calculation
#
+proc dcc:paypal {handle idx arg} {
+ set net [::paypal::gross2net $arg]
+ set gross [::paypal::net2gross $arg]
+ set len [strlen $gross]
+
+ if {[isnumber $arg]} {
+ putdcc $idx "Net: [format %${len}s $net]"
+ putdcc $idx "Gross: [format %${len}s $gross]"
+ }
+}
+
namespace eval ::paypal {
# -rate% - 0.35 €
# Default rate: 3.4% for EU

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 14:47 (19 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231866
Default Alt Text
D1565.id3994.diff (569 B)

Event Timeline