Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3716361
D1565.id3994.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
569 B
Referenced Files
None
Subscribers
None
D1565.id3994.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1565: Implement .paypal command
Attached
Detach File
Event Timeline
Log In to Comment