Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14025111
D12878.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
908 B
Referenced Files
None
Subscribers
None
D12878.diff
View Options
diff --git a/src/applications/phortune/worker/PhortuneSubscriptionWorker.php b/src/applications/phortune/worker/PhortuneSubscriptionWorker.php
--- a/src/applications/phortune/worker/PhortuneSubscriptionWorker.php
+++ b/src/applications/phortune/worker/PhortuneSubscriptionWorker.php
@@ -15,6 +15,13 @@
return;
}
+ $currency = $subscription->getCostForBillingPeriodAsCurrency(
+ $last_epoch,
+ $next_epoch);
+ if (!$currency->isPositive()) {
+ return;
+ }
+
$account = $subscription->getAccount();
$merchant = $subscription->getMerchant();
@@ -48,10 +55,6 @@
$purchase = $cart->newPurchase($actor, $product);
- $currency = $subscription->getCostForBillingPeriodAsCurrency(
- $last_epoch,
- $next_epoch);
-
$purchase
->setBasePriceAsCurrency($currency)
->setMetadataValue('subscriptionPHID', $subscription->getPHID())
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 2:30 PM (4 d, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6740037
Default Alt Text
D12878.diff (908 B)
Attached To
Mode
D12878: Never generate $0.00 invoices
Attached
Detach File
Event Timeline
Log In to Comment