Skip to content

Instantly share code, notes, and snippets.

View ranafaraz's full-sized avatar
:shipit:

Rana Faraz ranafaraz

:shipit:
View GitHub Profile
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:_0="http://idempiere.org/ADInterface/1_0">
<soapenv:Header/>
<soapenv:Body>
<_0:createData>
<_0:ModelCRUDRequest>
<_0:ModelCRUD>
<_0:serviceType>create_payment</_0:serviceType>
<_0:TableName>C_Payment</_0:TableName>
<_0:DataRow>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:_0="http://idempiere.org/ADInterface/1_0">
<soapenv:Header/>
<soapenv:Body>
<_0:setDocAction>
<_0:ModelSetDocActionRequest>
<_0:ModelSetDocAction>
<_0:serviceType>complete_invoice</_0:serviceType>
<_0:tableName>C_Invoice</_0:tableName>
$wsdl = '
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:_0="http://idempiere.org/ADInterface/1_0">
<soapenv:Header/>
<soapenv:Body>
<_0:createData>
<_0:ModelCRUDRequest>
<_0:ModelCRUD>
<_0:serviceType>invoice</_0:serviceType>
<_0:TableName>C_Invoice</_0:TableName>
@ranafaraz
ranafaraz / Create BPartner on iDempiere using SOAP
Last active December 29, 2020 09:17
This GIST contains SOAP Web Service of iDempiere to create Business Partner and its location.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:_0="http://idempiere.org/ADInterface/1_0">
<soapenv:Header/>
<soapenv:Body>
<_0:createData>
<_0:ModelCRUDRequest>
<_0:ModelCRUD>
<_0:serviceType>create_bpartner</_0:serviceType>
<_0:TableName>c_bpartner</_0:TableName>
<_0:DataRow>
@ranafaraz
ranafaraz / UUID.php
Created December 29, 2020 05:47 — forked from dahnielson/UUID.php
Pure PHP UUID generator
<?php
/**
* UUID class
*
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
*
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.
<!DOCTYPE html>
<html>
<head>
<title>University Markers on Open Source Maps</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
@ranafaraz
ranafaraz / Invoice Withholding Callouts
Last active September 21, 2020 07:00
This file contains callouts to calculate withholding taxes per invoice line within iDempiere.
// Call out to calculate GST Base (17% of Income Tax of GST included price)
public String calc_GST_IT (Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
{
// Storing TaxID in a variable.
Integer taxID = (Integer)mTab.getValue("C_Tax_ID");
if (taxID == 1000015 || taxID == 1000016) {
// Resetting values to zero