function (easybill.module) easybill_cron()

  • $client = new SoapClient(„https://soap.easybill.de…)
  • Kunden an easybill übergeben
    • alle, die noch nicht übergeben sind:
      nach {ms_memberships},
      kein Eintrag in {easybill_customer})
    • $client.setCustomer($customer);
    • Eintrag in {easybill_customer}, mit $object['eid'] = $response.customerID;
  • Rechnungen erzeugen
    • Erzeugen, wenn noch nicht erzeugt: kein Eintrag in easybill_payment
    • Beteiligte Tabellen: ms_memberships, ms_membership_plans, easybill_customer, easybill_positions, easybill_payment
    • (?) Rechnung bei $payment['amount'] > 0, Stornierung bei $payment['amount'] < 0
      Unterschied nur in Texten
    • $client.setCustomer($customer) - Korrektur nach Paypal-Einträgen
    • $companyPosition = $client.GetCompanyPosition($posid)
      - $posid aus {easybill_positions}, erstellt nach Übertragung nach easybill (Weiterbildung erstellen)
    • $documentPosition.singlePriceNetto aus {ms_payments}, sonst aus $companyPosition
    • $document.sendasemail = true;
    • $response = $client.CreateDocument($document);
      • (?) ok: Eintrag in {easybill_payment}
afoma/weiterbildung/cron.txt · Zuletzt geändert: 2022/06/06 15:13 von 127.0.0.1
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki