mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix(biling): Subscription billing system.
fix(GeneralLedger): running balance.
This commit is contained in:
@@ -31,10 +31,8 @@ export default class Subscription<PaymentModel> {
|
||||
) {
|
||||
this.validateIfPlanHasPriceNoPayment(plan, paymentModel);
|
||||
|
||||
// @todo
|
||||
if (plan.price > 0) {
|
||||
await this.paymentContext.makePayment(paymentModel, plan);
|
||||
}
|
||||
await this.paymentContext.makePayment(paymentModel, plan);
|
||||
|
||||
const subscription = await tenant.$relatedQuery('subscriptions')
|
||||
.modify('subscriptionBySlug', subscriptionSlug)
|
||||
.first();
|
||||
|
||||
Reference in New Issue
Block a user